GoldenEye: Source Forums

  • November 28, 2024, 02:29:14 am
  • Welcome, Guest
Advanced search  

News:

Pages: [1]   Go Down

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

0 Members and 1 Guest are viewing this topic.

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.
  • Offline Offline

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
Pages: [1]   Go Up