def delete(self):
        if self.gagMdl:
            self.gagMdl.removeNode()
        self.gagMdl = None
        if self.bodyNP:
            self.ignore("rayenter" + self.bodyNP.getName())
            self.ignore("rayexit" + self.bodyNP.getName())
            self.ignore("enter" + self.bodyNP.getName())
        UseableObject.removeNode(self)
        self.pickupSound = None
        self.pickupState = None
        self.gagId = None
        self.cost = None

        DistributedEntity.delete(self)
Beispiel #2
0
    def delete(self):
        if self.gagMdl:
            self.gagMdl.removeNode()
        self.gagMdl = None
        if self.collNode:
            self.ignore("enter" + self.collNode.getName())
            if self.pickupState == 1:
                base.physicsWorld.remove(self.collNode.node())
            self.collNode.removeNode()
        self.collNode = None
        self.pickupSound = None
        self.pickupState = None
        self.gagId = None

        DistributedEntity.delete(self)
 def delete(self):
     self.gagNode.removeNode()
     self.barrel.removeNode()
     base.physicsWorld.remove(self.collNode)
     self.collNodePath.removeNode()
     del self.barrel
     del self.gagNode
     del self.grabSfx
     del self.rejectSfx
     del self.grabSoundPath
     del self.rejectSoundPath
     del self.animTrack
     del self.barrelScale
     del self.radius
     del self.height
     del self.playSoundForRemoteToons
     del self.gagModel
     del self.collNode
     del self.collNodePath
     del self.collSphere
     DistributedNode.delete(self)
     DistributedEntity.delete(self)
Beispiel #4
0
 def delete(self):
     DistributedEntity.delete(self)
     Avatar.delete(self)