def disable(self):
        base.taskMgr.remove(self.uniqueName('monitorRange'))
        self.stopBlink()
        self.fsm.requestFinalState()
        self.fsm = None
        self.neutralFSM.requestFinalState()
        self.neutralFSM = None
        self.charId = None
        self.geoEyes = None
        self.avatarType = None
        self.isInRange = None
        self.currentPointLetter = None
        self.walkIval = None
        self.currentChat = None
        self.talkEnabled = None
        self.speechSound = None
        self.chatsSinceLastNoise = None

        self.eyes = None
        self.lpupil = None
        self.rpupil = None
        self.eyesOpen = None
        self.eyesClosed = None
        DistributedAvatar.disable(self)
        Avatar.disable(self)
        DistributedSmoothNode.disable(self)
	def disable(self):
		self.fsm.requestFinalState()
		del self.fsm
		for projs in self.piesInFlight:
			projs.cleanup()
		self.piesInFlight = None
		if self.explosion:
			self.explosion.removeNode()
			self.explosion = None
		self.removeTurret()
		DistributedSmoothNode.disable(self)
		DistributedAvatar.disable(self)
 def disable(self):
     base.taskMgr.remove(self.uniqueName('monitorLocalAvDistance'))
     self.anim = None
     self._state = None
     self.dept = None
     self.variant = None
     self.suitPlan = None
     if self.hpFlash:
         self.hpFlash.finish()
         self.hpFlash = None
     if self.moveIval:
         self.moveIval.pause()
         self.moveIval = None
     Suit.disable(self)
     DistributedAvatar.disable(self)
 def disable(self):
     self.anim = None
     self.state = None
     self.dept = None
     self.variant = None
     self.suitPlan = None
     if self.hpFlash:
         self.hpFlash.finish()
         self.hpFlash = None
     if self.moveIval:
         self.moveIval.pause()
         self.moveIval = None
     Suit.disable(self)
     DistributedAvatar.disable(self)
     return
Exemplo n.º 5
0
 def disable(self):
     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
     Toon.Toon.disable(self)
     DistributedAvatar.disable(self)
     return
Exemplo n.º 6
0
    def disable(self):
        self.fsm.requestFinalState()
        del self.fsm
        if self.track:
            self.track.pause()
            self.track = None
        for ent in self.entities:
            ent.cleanup()

        self.entities = None
        if self.explosion:
            self.explosion.removeNode()
            self.explosion = None
        self.removeTurret()
        DistributedSmoothNode.disable(self)
        DistributedAvatar.disable(self)
        return
 def disable(self):
     if self.suitTrack != None:
         self.suitTrack.finish()
         DelayDelete.cleanupDelayDeletes(self.suitTrack)
         self.suitTrack = None
     self.stopSmooth()
     self.suitFSM.requestFinalState()
     self.suitFSM = None
     self.suitState2stateIndex = None
     self.stateIndex2suitState = None
     self.anim = None
     self.state = None
     self.health = None
     self.type = None
     self.team = None
     self.head = None
     self.skeleton = None
     self.battle = None
     Suit.disable(self)
     DistributedAvatar.disable(self)
    def disable(self):
        self.fsm.requestFinalState()
        del self.fsm

        # This should fix crashes related to Sequences.
        if self.track:
            self.track.pause()
            self.track = None

        # Cleanup entities.
        for ent in self.entities:
            ent.cleanup()
        self.entities = None

        # Get rid of explosions.
        if self.explosion:
            self.explosion.removeNode()
            self.explosion = None

        self.removeTurret()
        DistributedSmoothNode.disable(self)
        DistributedAvatar.disable(self)
Exemplo n.º 9
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)
Exemplo n.º 10
0
 def disable(self):
     VicePresident.destroy(self)
     DistributedAvatar.disable(self)