diff --git a/OpenRa.Game/GameRules/Rules.cs b/OpenRa.Game/GameRules/Rules.cs index ae32557ecd..d4778bdf35 100755 --- a/OpenRa.Game/GameRules/Rules.cs +++ b/OpenRa.Game/GameRules/Rules.cs @@ -16,6 +16,7 @@ namespace OpenRa.Game public static InfoLoader WeaponInfo; public static InfoLoader WarheadInfo; public static InfoLoader ProjectileInfo; + public static InfoLoader VoiceInfo; public static GeneralInfo General; public static TechTree TechTree; public static Map Map; @@ -65,15 +66,17 @@ namespace OpenRa.Game LoadCategories( "Weapon", "Warhead", - "Projectile"); + "Projectile", + "Voice"); WeaponInfo = new InfoLoader( Pair.New>("Weapon", _ => new WeaponInfo())); WarheadInfo = new InfoLoader( Pair.New>("Warhead", _ => new WarheadInfo())); - ProjectileInfo = new InfoLoader( Pair.New>("Projectile", _ => new ProjectileInfo())); + VoiceInfo = new InfoLoader( + Pair.New>("Voice", _ => new VoiceInfo())); TechTree = new TechTree(); Map = new Map( AllRules ); diff --git a/OpenRa.Game/GameRules/UnitInfo.cs b/OpenRa.Game/GameRules/UnitInfo.cs index 88cd30ded6..ad220b5452 100755 --- a/OpenRa.Game/GameRules/UnitInfo.cs +++ b/OpenRa.Game/GameRules/UnitInfo.cs @@ -58,6 +58,7 @@ namespace OpenRa.Game.GameRules public readonly int Passengers = 0; public readonly int Speed = 0; public readonly bool NoMovingFire = false; + public readonly string Voice = "GenericVoice"; public MobileInfo(string name) : base(name) { } } diff --git a/OpenRa.Game/GameRules/VoiceInfo.cs b/OpenRa.Game/GameRules/VoiceInfo.cs new file mode 100644 index 0000000000..333ac8b9bf --- /dev/null +++ b/OpenRa.Game/GameRules/VoiceInfo.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace OpenRa.Game.GameRules +{ + class VoiceInfo + { + public readonly string[] SovietVariants = { ".aud" }; + public readonly string[] AlliedVariants = { ".aud" }; + public readonly string[] Select = {}; + public readonly string[] Move = {}; + public readonly string[] Attack = null; + } +} diff --git a/OpenRa.Game/OpenRa.Game.csproj b/OpenRa.Game/OpenRa.Game.csproj index 647204394d..cbbec31f99 100644 --- a/OpenRa.Game/OpenRa.Game.csproj +++ b/OpenRa.Game/OpenRa.Game.csproj @@ -82,6 +82,7 @@ + diff --git a/units.ini b/units.ini index 89b8bb7586..a4662842e3 100755 --- a/units.ini +++ b/units.ini @@ -554,3 +554,67 @@ WaterImpactSound=splash9 [General] OreChance=.02 + +[VoiceTypes] +GenericVoice +VehicleVoice +EngineerVoice +MedicVoice +TanyaVoice +DogVoice +SpyVoice +ThiefVoice +CivilianMaleVoice +CivilianFemaleVoice +EinsteinVoice + +[GenericVoice] +SovietVariants=.r01,.r03 +AlliedVariants=.v01,.v03 +Select=await1,ready,report1,yessir1 +Move=ackno,affirm1,noprob,overout,ritaway,roger,ugotit + +[VehicleVoice] +SovietVariants=.r00,.r02 +AlliedVariants=.v00,.v02 +Select=vehic1,yessir1,report1,await1 +Move=ackno,affirm1 + +[EngineerVoice] +Select=eengin1,eyessir1 +Move=eaffirm1,emovout1 + +[MedicVoice] +Select=mrespon1,myessir1 +Move=maffirm1,mmovout1 + +[TanyaVoice] +Select=yo1,yes1,yeah +Move=rokroll1,onit1,cmon1 +Attack=tuffguy1,bombit1,gotit1 + +[DogVoice] +Select= +Move=dogy1 +Attack=dogg5p,dogw3px + +[SpyVoice] +Select=syessir1,scomnd1 +Move=sonway1,sindeed1 +Attack=sking1 + +[ThiefVoice] +Select=swhat1,syeah1 +Move=saffirm1,smout1,sokay1 + +[CivilianMaleVoice] +Select=guyyeah1 +Move=guyokay1 + +[CivilianFemaleVoice] +Select=girlyeah +Move=girlokay + +[EinsteinVoice] +Select=einah1,einok1,einyes1 +Move=einah1,einok1,einyes1 \ No newline at end of file