Ejemplo n.º 1
0
 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()
Ejemplo n.º 3
0
 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
Ejemplo n.º 5
0
 def announceGenerate(self):
     DistributedSmoothNodeAI.announceGenerate(self)
     self.tellZone()
Ejemplo n.º 6
0
 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)
Ejemplo n.º 8
0
 def announceGenerate(self):
     DistributedSmoothNodeAI.announceGenerate(self)
     self.b_setPosHpr(*self.catalogItem.posHpr)