added VoiceInfo stuff
This commit is contained in:
@@ -16,6 +16,7 @@ namespace OpenRa.Game
|
||||
public static InfoLoader<WeaponInfo> WeaponInfo;
|
||||
public static InfoLoader<WarheadInfo> WarheadInfo;
|
||||
public static InfoLoader<ProjectileInfo> ProjectileInfo;
|
||||
public static InfoLoader<VoiceInfo> 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<WeaponInfo>(
|
||||
Pair.New<string, Func<string, WeaponInfo>>("Weapon", _ => new WeaponInfo()));
|
||||
WarheadInfo = new InfoLoader<WarheadInfo>(
|
||||
Pair.New<string, Func<string, WarheadInfo>>("Warhead", _ => new WarheadInfo()));
|
||||
|
||||
ProjectileInfo = new InfoLoader<ProjectileInfo>(
|
||||
Pair.New<string, Func<string, ProjectileInfo>>("Projectile", _ => new ProjectileInfo()));
|
||||
VoiceInfo = new InfoLoader<VoiceInfo>(
|
||||
Pair.New<string, Func<string, VoiceInfo>>("Voice", _ => new VoiceInfo()));
|
||||
|
||||
TechTree = new TechTree();
|
||||
Map = new Map( AllRules );
|
||||
|
||||
@@ -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) { }
|
||||
}
|
||||
|
||||
16
OpenRa.Game/GameRules/VoiceInfo.cs
Normal file
16
OpenRa.Game/GameRules/VoiceInfo.cs
Normal file
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -82,6 +82,7 @@
|
||||
<Compile Include="Exts.cs" />
|
||||
<Compile Include="GameRules\GeneralInfo.cs" />
|
||||
<Compile Include="GameRules\TechTree.cs" />
|
||||
<Compile Include="GameRules\VoiceInfo.cs" />
|
||||
<Compile Include="IEffect.cs" />
|
||||
<Compile Include="IOrderSource.cs" />
|
||||
<Compile Include="LocalOrderSource.cs" />
|
||||
|
||||
64
units.ini
64
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
|
||||
Reference in New Issue
Block a user