def announceGenerate(self):
     DistributedAvatar.announceGenerate(self)
     DistributedSmoothNode.announceGenerate(self)
     self.loadChar()
     self.startBlink()
     base.taskMgr.add(self.__monitorRange, self.uniqueName('monitorRange'))
     self.sendUpdate('requestStateData')
     if self.charId == SAILOR_DONALD:
         self.disableRay()
         self.stashBodyCollisions()
         boat = self.cr.playGame.hood.loader.geom.find('**/*donalds_boat*')
         boat.find('**/wheel').hide()
         self.setPos(0, -1, 3.95)
         self.reparentTo(boat)
         self.loop('wheel')
     else:
         self.reparentTo(render)
示例#2
0
 def announceGenerate(self):
     DistributedAvatar.announceGenerate(self)
     self.fsm.request('neutral')
 def announceGenerate(self):
     DistributedAvatar.announceGenerate(self)
     DistributedSmoothNode.announceGenerate(self)
     self.healthLabel.setScale(1.1)
     self.deathEvent = self.uniqueName('DistributedPieTurret-death')
     self.makeTurret()
 def announceGenerate(self):
     DistributedAvatar.announceGenerate(self)
     self.setAnimState('neutral')
     base.taskMgr.add(self.__monitorLocalAvDistance,
                      self.uniqueName('monitorLocalAvDistance'))
 def announceGenerate(self):
     DistributedAvatar.announceGenerate(self)
     if self.animFSM.getCurrentState().getName() == 'off':
         self.setAnimState('neutral')
示例#6
0
 def announceGenerate(self):
     DistributedAvatar.announceGenerate(self)
     if self.animFSM.getCurrentState().getName() == 'off':
         self.setAnimState('neutral')
     self.startBlink()
 def announceGenerate(self):
     DistributedAvatar.announceGenerate(self)
     self.setAnimState('neutral')
	def announceGenerate(self):
		DistributedAvatar.announceGenerate(self)
		DistributedSmoothNode.announceGenerate(self)
		self.healthLabel.setScale(1.1)
		self.makeTurret()