hi hi everyone
I'm planning to add a sound when the trader time 30 seconds left, the sound is "civil defense alarm" the silent hill. This gives it a more tense in the game and gives a bit scary haha.
But when I try to compile the mutator was as follows:
AlarmTrader class extends KFGameType;
# exec AUDIO IMPORT FILE = "Sounds \ AlarmT.WAV" NAME = "AlarmT"
function Timer ()
KFGameReplicationInfo (GameReplicationInfo). TimeToNextWave = WaveCountDown;
if (WaveCountDown == 30)
{
for (C = Level.ControllerList; C! = None, C = C. NextController)
{
if (KFPlayerController (C)! = None)
{
/ / tell players Trader Have That They've got 30 seconds
KFPlayerController (C). ClientLocationalVoiceMessage (C. PlayerReplicationInfo, none, 'Trade', 4);
PlaySound (Sound'AlarmT 'SLOT_Misc, 30.0);
}
}
}
defaultProperties
{
bAlwaysRelevant = True
GroupName = "KFAlarmTrader"
FriendlyName = "AlarmTrader"
Description = "AlarmTrader last 30 seconds"
fails to compile, I'm doing wrong? I am very new to this, if anyone can help me on this idea, I appreciate.
This is the sound:
http://www.mediafire.com/?4ieu85c18ea8ns9
thanks
I'm planning to add a sound when the trader time 30 seconds left, the sound is "civil defense alarm" the silent hill. This gives it a more tense in the game and gives a bit scary haha.
But when I try to compile the mutator was as follows:
AlarmTrader class extends KFGameType;
# exec AUDIO IMPORT FILE = "Sounds \ AlarmT.WAV" NAME = "AlarmT"
function Timer ()
KFGameReplicationInfo (GameReplicationInfo). TimeToNextWave = WaveCountDown;
if (WaveCountDown == 30)
{
for (C = Level.ControllerList; C! = None, C = C. NextController)
{
if (KFPlayerController (C)! = None)
{
/ / tell players Trader Have That They've got 30 seconds
KFPlayerController (C). ClientLocationalVoiceMessage (C. PlayerReplicationInfo, none, 'Trade', 4);
PlaySound (Sound'AlarmT 'SLOT_Misc, 30.0);
}
}
}
defaultProperties
{
bAlwaysRelevant = True
GroupName = "KFAlarmTrader"
FriendlyName = "AlarmTrader"
Description = "AlarmTrader last 30 seconds"
fails to compile, I'm doing wrong? I am very new to this, if anyone can help me on this idea, I appreciate.
This is the sound:
http://www.mediafire.com/?4ieu85c18ea8ns9
thanks