oldschool-toontown/toontown/coghq/SellbotHQBossBattle.py

39 lines
1.2 KiB
Python
Raw Normal View History

from panda3d.core import *
2019-11-02 17:27:54 -05:00
from direct.interval.IntervalGlobal import *
from toontown.suit import DistributedSellbotBoss
from direct.directnotify import DirectNotifyGlobal
from toontown.coghq import CogHQBossBattle
class SellbotHQBossBattle(CogHQBossBattle.CogHQBossBattle):
notify = DirectNotifyGlobal.directNotify.newCategory('SellbotHQBossBattle')
def __init__(self, loader, parentFSM, doneEvent):
CogHQBossBattle.CogHQBossBattle.__init__(self, loader, parentFSM, doneEvent)
self.teleportInPosHpr = (0, 61, 18, 180, 0, 0)
2019-11-02 17:27:54 -05:00
def load(self):
CogHQBossBattle.CogHQBossBattle.load(self)
def unload(self):
CogHQBossBattle.CogHQBossBattle.unload(self)
def enter(self, requestStatus):
CogHQBossBattle.CogHQBossBattle.enter(self, requestStatus, DistributedSellbotBoss.OneBossCog)
self.__setupHighSky()
def exit(self):
CogHQBossBattle.CogHQBossBattle.exit(self)
self.__cleanupHighSky()
def __setupHighSky(self):
self.loader.hood.startSky()
sky = self.loader.hood.sky
sky.setH(150)
sky.setZ(-100)
def __cleanupHighSky(self):
self.loader.hood.stopSky()
sky = self.loader.hood.sky
sky.setH(0)
sky.setZ(0)