GoldenEye: Source Forums

Debriefing => Bug Reports & Fixes => Topic started by: Joe on July 08, 2013, 05:14:23 pm

Title: [BUG] 4.2.3: GEUtil.StopSound() isn't stopping directory sounds
Post by: Joe on July 08, 2013, 05:14:23 pm
Hi,

It is failing to stop the "GES_Overtime" mp3 and DAD mode's .wav resurrection sound (http://www.freesound.org/people/ejfortin/sounds/49685/).

It can stop overtime1 in the problem demo code below but not overtime2:
Code: [Select]
class DeathMatch( GEScenario ):
playing = False

def OnRoundBegin(self):
GEUtil.PrecacheSound("player/GES_Overtime.mp3")

def OnPlayerSay(self,player,text):
if text == "!gesrocks":
overtime1 = "GEGamePlay.Overtime"
overtime2 = "player/GES_Overtime.mp3"

if DeathMatch.playing == False:
GEUtil.PlaySoundTo(player,overtime2,True)
DeathMatch.playing = True
else:
GEUtil.StopSound(player,overtime2)
DeathMatch.playing = False

...