GoldenEye: Source Forums

  • Welcome, Guest

News:

Author Topic: [BUG] 4.2.3: GEUtil.StopSound() isn't stopping directory sounds  (Read 13494 times)

Joe

  • Secret Agent
  • **
  • Posts: 139
  • Reputation Power: 54
  • Joe has an aura about them.Joe has an aura about them.Joe has an aura about them.Joe has an aura about them.Joe has an aura about them.Joe has an aura about them.Joe has an aura about them.Joe has an aura about them.Joe has an aura about them.Joe has an aura about them.

Hi,

It is failing to stop the "GES_Overtime" mp3 and DAD mode's .wav resurrection sound.

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

...
Logged
Free games:FPS + RTS: Renegade X & Battlezone 1.5,RTS: 7 Kingdoms & Open Red Alert, TBS:Hedgewars, playcatan.com & www.wesnoth.org