def playOuch(self, skillId, ammoSkillId, targetEffects, attacker, pos, itemEffects = [], multihit = 0, targetBonus = 0, skillResult = 0):
     if self.damageSound and not (self.recentlyPlayedDamage):
         self.recentlyPlayedDamage = True
         base.playSfx(self.damageSound, node = self, cutoff = 60)
         taskMgr.doMethodLater(15.0, self.restoreDamageSounds, self.uniqueName('restoreDamageSounds'))
     
     DistributedGhost.playOuch(self, skillId, ammoSkillId, targetEffects, attacker, pos, itemEffects = itemEffects, multihit = multihit, targetBonus = targetBonus)
 def playOuch(self, skillId, ammoSkillId, targetEffects, attacker, pos, itemEffects = [], multihit = 0, targetBonus = 0, skillResult = 0):
     if self.damageSound and not (self.recentlyPlayedDamage):
         self.recentlyPlayedDamage = True
         base.playSfx(self.damageSound, node = self, cutoff = 60)
         taskMgr.doMethodLater(15.0, self.restoreDamageSounds, self.uniqueName('restoreDamageSounds'))
     
     DistributedGhost.playOuch(self, skillId, ammoSkillId, targetEffects, attacker, pos, itemEffects = itemEffects, multihit = multihit, targetBonus = targetBonus)
 def __init__(self, cr):
     DistributedGhost.__init__(self, cr)
     Boss.__init__(self, cr)
     self.enemyColor = 13
     self.attackGhostMode = 2
     self.peaceGhostMode = 2
     self.runawaySound = None
     self.killSound = None
     self.damageSound = None
     self.recentlyPlayedDamage = False
 def __init__(self, cr):
     DistributedGhost.__init__(self, cr)
     Boss.__init__(self, cr)
     self.enemyColor = 13
     self.attackGhostMode = 2
     self.peaceGhostMode = 2
     self.runawaySound = None
     self.killSound = None
     self.damageSound = None
     self.recentlyPlayedDamage = False
Пример #5
0
 def disable(self):
     self.removeBossEffect()
     taskMgr.remove(self.uniqueName('restoreDamageSounds'))
     if self.runawaySound:
         self.runawaySound.stop()
         loader.unloadSfx(self.runawaySound)
         self.runawaySound = None
     if self.killSound:
         self.killSound.stop()
         loader.unloadSfx(self.killSound)
         self.killSound = None
     if self.damageSound:
         self.damageSound.stop()
         loader.unloadSfx(self.damageSound)
         self.damageSound = None
     DistributedGhost.disable(self)
     return
 def disable(self):
     self.removeBossEffect()
     taskMgr.remove(self.uniqueName('restoreDamageSounds'))
     if self.runawaySound:
         self.runawaySound.stop()
         loader.unloadSfx(self.runawaySound)
         self.runawaySound = None
     
     if self.killSound:
         self.killSound.stop()
         loader.unloadSfx(self.killSound)
         self.killSound = None
     
     if self.damageSound:
         self.damageSound.stop()
         loader.unloadSfx(self.damageSound)
         self.damageSound = None
     
     DistributedGhost.disable(self)
Пример #7
0
 def setAvatarType(self, avatarType):
     DistributedGhost.setAvatarType(self, avatarType)
     self.loadBossData(self.getUniqueId(), avatarType)
Пример #8
0
 def announceGenerate(self):
     DistributedGhost.announceGenerate(self)
     self.addBossEffect(AvatarTypes.Navy)
     self.runawaySound = loadSfx(SoundGlobals.SFX_MONSTER_EP_RUNAWAY)
     self.killSound = loadSfx(SoundGlobals.SFX_MONSTER_EP_LAUGHTER)
     self.damageSound = loadSfx(SoundGlobals.SFX_MONSTER_EP_SHORT_LAUGH)
 def setAvatarType(self, avatarType):
     DistributedGhost.setAvatarType(self, avatarType)
     self.loadBossData(self.getUniqueId(), avatarType)
 def announceGenerate(self):
     DistributedGhost.announceGenerate(self)
     self.addBossEffect(AvatarTypes.Navy)
     self.runawaySound = loadSfx(SoundGlobals.SFX_MONSTER_EP_RUNAWAY)
     self.killSound = loadSfx(SoundGlobals.SFX_MONSTER_EP_LAUGHTER)
     self.damageSound = loadSfx(SoundGlobals.SFX_MONSTER_EP_SHORT_LAUGH)