mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-26 21:22:27 -06:00
35 lines
1.2 KiB
Python
35 lines
1.2 KiB
Python
|
from pandac.PandaModules import *
|
||
|
from direct.interval.IntervalGlobal import *
|
||
|
from toontown.suit import DistributedBossbotBoss
|
||
|
from direct.directnotify import DirectNotifyGlobal
|
||
|
from toontown.coghq import CogHQBossBattle
|
||
|
|
||
|
class BossbotHQBossBattle(CogHQBossBattle.CogHQBossBattle):
|
||
|
notify = DirectNotifyGlobal.directNotify.newCategory('BossbotHQBossBattle')
|
||
|
|
||
|
def __init__(self, loader, parentFSM, doneEvent):
|
||
|
CogHQBossBattle.CogHQBossBattle.__init__(self, loader, parentFSM, doneEvent)
|
||
|
self.teleportInPosHpr = (88, -214, 0, 210, 0, 0)
|
||
|
for stateName in ['movie']:
|
||
|
state = self.fsm.getStateNamed(stateName)
|
||
|
state.addTransition('crane')
|
||
|
|
||
|
state = self.fsm.getStateNamed('finalBattle')
|
||
|
state.addTransition('finalBattle')
|
||
|
|
||
|
def load(self):
|
||
|
CogHQBossBattle.CogHQBossBattle.load(self)
|
||
|
|
||
|
def unload(self):
|
||
|
CogHQBossBattle.CogHQBossBattle.unload(self)
|
||
|
|
||
|
def enter(self, requestStatus):
|
||
|
CogHQBossBattle.CogHQBossBattle.enter(self, requestStatus, DistributedBossbotBoss.OneBossCog)
|
||
|
|
||
|
def exit(self):
|
||
|
CogHQBossBattle.CogHQBossBattle.exit(self)
|
||
|
|
||
|
def exitCrane(self):
|
||
|
CogHQBossBattle.CogHQBossBattle.exitCrane(self)
|
||
|
messenger.send('exitCrane')
|