예제 #1
0
 def disable(self):
     try:
         del self.DistributedAvatar_announced
     except:
         return None
     self.reparentTo(hidden)
     self.disableBodyCollisions()
     DistributedActor.disable(self)
    def disable(self):
        try:
            del self.DistributedAvatar_announced
        except:
            return

        self.reparentTo(hidden)
        self.removeActive()
        self.disableBodyCollisions()
        self.hideHpText()
        self.hp = None
        self.ignore('nameTagShowAvId')
        self.ignore('nameTagShowName')
        DistributedActor.disable(self)
예제 #3
0
    def disable(self):
        try:
            del self.DistributedAvatar_announced
        except:
            return

        self.reparentTo(hidden)
        self.removeActive()
        self.disableBodyCollisions()
        self.hideHpText()
        self.hp = None
        self.ignore('nameTagShowAvId')
        self.ignore('nameTagShowName')
        DistributedActor.disable(self)
        return
    def disable(self):
        """
        This method is called when the DistributedObject is removed from
        active duty and stored in a cache.
        """
        try:
            del self.DistributedAvatar_announced
        except:
            return
        self.reparentTo(hidden)
        self.removeActive()
        self.disableBodyCollisions()
        self.hideHpText()
        # By setting hp to None, when the distributed avatar is "uncached",
        # and the hp gets set, it will be as if the avatar is new, and no
        # number will appear over his head. If we don't set this to None,
        # the setHp call might think that the number has changed and call
        # showHpText, which we don't want.
        self.hp = None
        self.ignore("nameTagShowAvId")
        self.ignore("nameTagShowName")

        DistributedActor.disable(self)
예제 #5
0
 def disable(self):
     DistributedActor.disable(self)
     self.stopMovingHealthLabel()
     self.detachNode()
 def disable(self):
     DistributedActor.disable(self)
     self.stopMovingHealthLabel()
     self.detachNode()
     return