def announceHealth(self, level, hp):
     DistributedAvatar.announceHealth(self, level, hp)
     if level == 1:
         healthSfx = base.audio3d.loadSfx(SuitGlobals.healedSfx)
         base.audio3d.attachSoundToObject(healthSfx, self)
         SoundInterval(healthSfx, node=self).start()
         del healthSfx
 def announceHealth(self, level, hp):
     DistributedAvatar.announceHealth(self, level, hp)
     if level == 1:
         healthSfx = base.audio3d.loadSfx("phase_3/audio/sfx/health.mp3")
         base.audio3d.attachSoundToObject(healthSfx, self)
         SoundInterval(healthSfx).start()
         del healthSfx
Пример #3
0
 def announceHealthAndPlaySound(self, level, hp):
     DistributedAvatar.announceHealth(self, level, hp)
     hpSfx = base.audio3d.loadSfx('phase_11/audio/sfx/LB_toonup.mp3')
     base.audio3d.attachSoundToObject(hpSfx, self)
     SoundInterval(hpSfx).start()
     del hpSfx
Пример #4
0
 def announceHealthAndPlaySound(self, level, hp):
     DistributedAvatar.announceHealth(self, level, hp)
     hpSfx = base.audio3d.loadSfx('phase_11/audio/sfx/LB_toonup.ogg')
     base.audio3d.attachSoundToObject(hpSfx, self)
     SoundInterval(hpSfx, node=self).start()
     del hpSfx