@@ -17,6 +17,7 @@ namespace OpenRA.GameRules
|
|||||||
public class VoiceInfo
|
public class VoiceInfo
|
||||||
{
|
{
|
||||||
public readonly Dictionary<string,string[]> Variants;
|
public readonly Dictionary<string,string[]> Variants;
|
||||||
|
public readonly string DefaultVariant = ".aud" ;
|
||||||
public readonly string[] Select = { };
|
public readonly string[] Select = { };
|
||||||
public readonly string[] Move = { };
|
public readonly string[] Move = { };
|
||||||
public readonly string[] Attack = null;
|
public readonly string[] Attack = null;
|
||||||
|
|||||||
@@ -202,8 +202,15 @@ namespace OpenRA
|
|||||||
Play(clip);
|
Play(clip);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (vi.Variants.Count == 0)
|
||||||
|
{
|
||||||
|
Play(clip + vi.DefaultVariant);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
var variantext = vi.Variants[variant][voicedUnit.ActorID % vi.Variants.Count];
|
var variantext = vi.Variants.ContainsKey(variant)?
|
||||||
|
vi.Variants[variant][voicedUnit.ActorID % vi.Variants.Count] : vi.DefaultVariant;
|
||||||
Play(clip + variantext);
|
Play(clip + variantext);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,21 +1,24 @@
|
|||||||
# Classic Red Alert Mod -- Package Manifest
|
# Classic Red Alert Mod -- Package Manifest
|
||||||
|
|
||||||
GenericVoice:
|
GenericVoice:
|
||||||
SovietVariants: .r01,.r03
|
Variants:
|
||||||
AlliedVariants: .v01,.v03
|
soviet: .r01,.r03
|
||||||
|
allies: .v01,.v03
|
||||||
Select: await1,ready,report1,yessir1
|
Select: await1,ready,report1,yessir1
|
||||||
Move: ackno,affirm1,noprob,overout,ritaway,roger,ugotit
|
Move: ackno,affirm1,noprob,overout,ritaway,roger,ugotit
|
||||||
Die: dedman1.aud,dedman2.aud,dedman3.aud,dedman4.aud,dedman5.aud,dedman6.aud,dedman7.aud,dedman8.aud,dedman10.aud
|
Die: dedman1.aud,dedman2.aud,dedman3.aud,dedman4.aud,dedman5.aud,dedman6.aud,dedman7.aud,dedman8.aud,dedman10.aud
|
||||||
|
|
||||||
VehicleVoice:
|
VehicleVoice:
|
||||||
SovietVariants: .r00,.r02
|
Variants:
|
||||||
AlliedVariants: .v00,.v02
|
soviet: .r00,.r02
|
||||||
|
allies: .v00,.v02
|
||||||
Select: vehic1,yessir1,report1,await1
|
Select: vehic1,yessir1,report1,await1
|
||||||
Move: ackno,affirm1
|
Move: ackno,affirm1
|
||||||
|
|
||||||
ShipVoice:
|
ShipVoice:
|
||||||
SovietVariants: .r00,.r02
|
Variants:
|
||||||
AlliedVariants: .v00,.v02
|
soviet: .r00,.r02
|
||||||
|
allies: .v00,.v02
|
||||||
Select: vehic1,yessir1,report1,await1
|
Select: vehic1,yessir1,report1,await1
|
||||||
Move: ackno,affirm1
|
Move: ackno,affirm1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user