def disable(self):
     for triggerName in self.triggers:
         self.ignore('enter' + triggerName)
     base.localAvatar.createChatInput()
     camera.reparentTo(render)
     camera.setPosHpr(0, 0, 0, 0, 0, 0)
     render.clearFog()
     self.triggers = None
     self.toonOof = None
     self.hitEagleSfx = None
     self.hitObstacleSfx = None
     self.cannonMoveSfx = None
     self.fallSfx = None
     if self.world:
         self.world.removeNode()
         self.world = None
     self.worldModelPath = None
     self.nodesToStash = None
     self.fog = None
     self.round = None
     for platform in self.platforms:
         platform.removeNode()
     self.platforms = None
     self.cannonId = None
     self.cannonBarrel = None
     self.platformPositions = None
     base.setBackgroundColor(CIGlobals.DefaultBackgroundColor)
     self.bgColor = None
     DistributedMinigame.disable(self)
    def disable(self):
        for triggerName in self.triggers:
            self.ignore('enter' + triggerName)

        base.localAvatar.createChatInput()
        camera.reparentTo(render)
        camera.setPosHpr(0, 0, 0, 0, 0, 0)
        render.clearFog()
        self.triggers = None
        self.toonOof = None
        self.hitEagleSfx = None
        self.hitObstacleSfx = None
        self.cannonMoveSfx = None
        self.fallSfx = None
        if self.world:
            self.world.removeNode()
            self.world = None
        self.worldModelPath = None
        self.nodesToStash = None
        self.fog = None
        self.round = None
        for platform in self.platforms:
            platform.removeNode()

        self.platforms = None
        self.cannonId = None
        self.cannonBarrel = None
        self.platformPositions = None
        base.setBackgroundColor(CIGlobals.DefaultBackgroundColor)
        self.bgColor = None
        DistributedMinigame.disable(self)
        return
    def disable(self):
        self.myRemoteAvatar.cleanup()
        self.myRemoteAvatar = None
        for av in self.remoteAvatars:
            av.cleanup()
            del av

        self.remoteAvatars = None
        DistributedMinigame.disable(self)
        return
    def disable(self):
        self.myRemoteAvatar.cleanup()
        self.myRemoteAvatar = None
        for av in self.remoteAvatars:
            av.cleanup()
            del av

        self.remoteAvatars = None
        DistributedMinigame.disable(self)
        return
 def disable(self):
     if self.thisPlayerWinsLbl:
         self.thisPlayerWinsLbl.destroy()
         self.thisPlayerWinsLbl = None
     base.camera.reparentTo(render)
     base.camera.setPos(0, 0, 0)
     base.camera.setHpr(0, 0, 0)
     if self.myRemoteAvatar:
         self.myRemoteAvatar.cleanup()
         del self.myRemoteAvatar
     self.firstPerson.cleanup()
     del self.firstPerson
     self.deleteWorld()
     base.camLens.setMinFov(CIGlobals.DefaultCameraFov / (4.0 / 3.0))
     DistributedMinigame.disable(self)
     return
 def disable(self):
     if self.thisPlayerWinsLbl:
         self.thisPlayerWinsLbl.destroy()
         self.thisPlayerWinsLbl = None
     base.camera.reparentTo(render)
     base.camera.setPos(0, 0, 0)
     base.camera.setHpr(0, 0, 0)
     if self.myRemoteAvatar:
         self.myRemoteAvatar.cleanup()
         del self.myRemoteAvatar
     self.firstPerson.cleanup()
     del self.firstPerson
     self.levelLoader.unload()
     self.levelLoader.cleanup()
     del self.levelLoader
     base.camLens.setMinFov(CIGlobals.DefaultCameraFov / (4./3.))
     DistributedMinigame.disable(self)
Exemple #7
0
 def disable(self):
     for triggerName in self.triggers:
         self.ignore('enter' + triggerName)
     self.ignore('ToonCannon::ready')
     base.localAvatar.getGeomNode().show()
     base.localAvatar.showNametag3d()
     base.localAvatar.createChatInput()
     camera.reparentTo(render)
     camera.setPosHpr(0, 0, 0, 0, 0, 0)
     render.clearFog()
     self.triggers = None
     self.toonOof = None
     self.hitEagleSfx = None
     self.hitObstacleSfx = None
     self.cannonMoveSfx = None
     self.fallSfx = None
     self.cannons = None
     self.cannon = None
     if self.world:
         base.disableAndRemovePhysicsNodes(self.world)
         self.world.removeNode()
         self.world = None
     if self.world2:
         self.world2.removeNode()
         self.world2 = None
     self.worldModelPath = None
     self.nodesToStash = None
     if self.olc:
         self.olc.cleanup()
         self.olc = None
     self.round = None
     for platform in self.platforms:
         platform.removeNode()
     self.platforms = None
     self.cannonId = None
     self.cannonBarrel = None
     self.platformPositions = None
     base.setBackgroundColor(CIGlobals.DefaultBackgroundColor)
     self.bgColor = None
     DistributedMinigame.disable(self)
Exemple #8
0
 def disable(self):
     for av in self.remoteAvatars:
         av.cleanup()
         del av
     self.remoteAvatars = None
     DistributedMinigame.disable(self)