Poodletooth-iLand/toontown/building/DistributedCFOElevator.py

25 lines
999 B
Python
Raw Normal View History

2015-03-03 22:10:12 +00:00
import DistributedElevator
import DistributedBossElevator
from ElevatorConstants import *
from direct.directnotify import DirectNotifyGlobal
from toontown.toonbase import TTLocalizer
class DistributedCFOElevator(DistributedBossElevator.DistributedBossElevator):
def __init__(self, cr):
DistributedBossElevator.DistributedBossElevator.__init__(self, cr)
self.type = ELEVATOR_CFO
self.countdownTime = ElevatorData[self.type]['countdown']
def setupElevator(self):
self.elevatorModel = loader.loadModel('phase_10/models/cogHQ/CFOElevator')
self.leftDoor = self.elevatorModel.find('**/left_door')
self.rightDoor = self.elevatorModel.find('**/right_door')
geom = base.cr.playGame.hood.loader.geom
locator = geom.find('**/elevator_locator')
self.elevatorModel.reparentTo(locator)
DistributedElevator.DistributedElevator.setupElevator(self)
def getDestName(self):
return TTLocalizer.ElevatorCashBotBoss