def announceGenerate(self): pos = self.getPos(render) self.doInitCollider() self.setPythonTag("projectile", self) self.reparentTo(render) self.setPos(pos) DistributedSmoothNodeAI.announceGenerate(self) self.stopPosHprBroadcast() self.start() self.onSpawn()
def announceGenerate(self): DistributedAvatarAI.announceGenerate(self) DistributedSmoothNodeAI.announceGenerate(self) if self.parentId != self.getDefaultShard(): self.b_setDefaultShard(self.parentId) if self.__class__.__name__ == "DistributedToonAI": # TEMPORARY: Any new gags that we make have to be given to toons automatically. newGags = GagGlobals.gagIds.keys() currentGags = self.backpack.gags needsToUpdate = False for newGag in newGags: if not newGag in currentGags.keys(): print 'This player is missing {0}'.format(GagGlobals.getGagByID(newGag)) self.backpack.addGag(newGag) if not needsToUpdate: needsToUpdate = True if needsToUpdate: self.backpack.updateNetAmmo()
def announceGenerate(self): DistributedAvatarAI.announceGenerate(self) DistributedSmoothNodeAI.announceGenerate(self)
def announceGenerate(self): self.doSetupPhysics() DistributedSmoothNodeAI.announceGenerate(self) self.startPosHprBroadcast(0.1) # every 100 ms we should broadcast pos
def announceGenerate(self): DistributedSmoothNodeAI.announceGenerate(self) self.tellZone()
def announceGenerate(self): DistributedSmoothNodeAI.announceGenerate(self) self.tellZone()
def announceGenerate(self): DistributedAvatarAI.announceGenerate(self) DistributedSmoothNodeAI.announceGenerate(self) if self.parentId != self.getDefaultShard(): self.b_setDefaultShard(self.parentId)
def announceGenerate(self): DistributedSmoothNodeAI.announceGenerate(self) self.b_setPosHpr(*self.catalogItem.posHpr)