def exitSquish(self):
     if self.track:
         self.ignore(self.track.getName())
         DelayDelete.cleanupDelayDeletes(self.track)
         self.track.finish()
         self.track = None
     self.playingAnim = 'neutral'
     return
 def exitDied(self):
     if self.track != None:
         self.ignore(self.track.getDoneEvent())
         self.track.finish()
         DelayDelete.cleanupDelayDeletes(self.track)
         self.track = None
     self.rescaleToon()
     self.playingAnim = 'neutral'
     return
 def disable(self):
     if self.suitTrack:
         self.suitTrack.finish()
         DelayDelete.cleanupDelayDeletes(self.suitTrack)
         self.suitTrack = None
     self.animFSM.requestFinalState()
     self.cleanup()
     Avatar.disable(self)
     return
 def exitFlyAway(self):
     if self.suitTrack:
         self.ignore(self.suitTrack.getDoneEvent())
         self.suitTrack.finish()
         DelayDelete.cleanupDelayDeletes(self.suitTrack)
         self.suitTrack = None
     self.cleanupPropeller()
     self.exitGeneral()
     return
 def exitFlyDown(self):
     self.initializeRay(self.avatarType, 2)
     if self.suitTrack != None:
         self.ignore(self.suitTrack.getDoneEvent())
         self.suitTrack.finish()
         DelayDelete.cleanupDelayDeletes(self.suitTrack)
         self.suitTrack = None
     self.exitGeneral()
     self.cleanupPropeller()
     return
 def cleanup(self):
     if self.suitTrack != None:
         self.ignore(self.suitTrack.getDoneEvent())
         self.suitTrack.finish()
         DelayDelete.cleanupDelayDeletes(self.suitTrack)
         self.suitTrack = None
     self.attack = None
     self.suit = None
     self.attacksClass = None
     self.attackName2attackId = None
     return
 def exitTeleportOut(self):
     self.notify.info(
         str(self.doId) + '-' + str(self.zoneId) + ': exitTeleportOut')
     if self.track != None:
         self.ignore(self.track.getName())
         self.track.finish()
         DelayDelete.cleanupDelayDeletes(self.track)
         self.track = None
     if self.portal1:
         self.portal1.cleanup()
         self.portal1 = None
     self.playingAnim = 'neutral'
     return
 def stopAnimations(self):
     if hasattr(self, 'animFSM'):
         if not self.animFSM.isInternalStateInFlux():
             self.animFSM.request('off')
         else:
             notify.warning(
                 'animFSM in flux, state=%s, not requesting off' %
                 self.animFSM.getCurrentState().getName())
     else:
         notify.warning('animFSM has been deleted')
     if self.track != None:
         self.track.finish()
         DelayDelete.cleanupDelayDeletes(self.track)
         self.track = None
     return
 def exitTeleportIn(self):
     if self.track != None:
         self.ignore(self.track.getName())
         self.track.finish()
         DelayDelete.cleanupDelayDeletes(self.track)
         self.track = None
     if self.portal2:
         self.portal2.cleanup()
         self.portal2 = None
     if self.getGeomNode():
         self.getGeomNode().show()
     if self.nametag3d:
         self.nametag3d.show()
     self.playingAnim = 'neutral'
     return
 def exitDie(self):
     if self.suitTrack != None:
         self.ignore(self.suitTrack.getName())
         self.suitTrack.finish()
         DelayDelete.cleanupDelayDeletes(self.suitTrack)
         self.suitTrack = None
     if hasattr(self, 'singleGear'):
         self.singleGear.cleanup()
         del self.singleGear
     if hasattr(self, 'smallGears'):
         self.smallGears.cleanup()
         del self.smallGears
     if hasattr(self, 'smallGearExp'):
         self.smallGearExp.cleanup()
         del self.smallGearExp
     if hasattr(self, 'bigGearExp'):
         self.bigGearExp.cleanup()
         del self.bigGearExp
     self.__cleanupExplosion()
     return
예제 #11
0
 def disable(self):
     if self.tunnelTrack:
         self.ignore(self.tunnelTrack.getDoneEvent())
         self.tunnelTrack.finish()
         self.tunnelTrack = None
     if self.dmgFadeIval:
         self.dmgFadeIval.finish()
         self.dmgFadeIval = None
     self.busy = None
     taskMgr.remove(self.uniqueName('sBAL'))
     taskMgr.remove(self.uniqueName('blinkOnTurn'))
     if self.track != None:
         self.track.finish()
         DelayDelete.cleanupDelayDeletes(self.track)
         self.track = None
     self.stopBlink()
     self.__removeHeadMeter()
     self.ignore('showAvId')
     self.ignore('showName')
     self.token = None
     self.stopSmooth()
     Toon.Toon.disable(self)
     DistributedAvatar.disable(self)
     return
예제 #12
0
 def _deleteTransitionTrack(self):
     if self.transitionTrack:
         DelayDelete.cleanupDelayDeletes(self.transitionTrack)
         self.transitionTrack = None
     return