2015-03-03 16:10:12 -06:00
|
|
|
from toontown.safezone import Walk
|
|
|
|
|
|
|
|
class CogThiefWalk(Walk.Walk):
|
|
|
|
notify = directNotify.newCategory('CogThiefWalk')
|
|
|
|
|
|
|
|
def __init__(self, doneEvent):
|
|
|
|
Walk.Walk.__init__(self, doneEvent)
|
|
|
|
|
|
|
|
def enter(self, slowWalk = 0):
|
|
|
|
base.localAvatar.startPosHprBroadcast()
|
|
|
|
base.localAvatar.startBlink()
|
|
|
|
base.localAvatar.showName()
|
|
|
|
base.localAvatar.collisionsOn()
|
|
|
|
base.localAvatar.startGlitchKiller()
|
|
|
|
base.localAvatar.enableAvatarControls()
|
|
|
|
|
|
|
|
def exit(self):
|
|
|
|
self.fsm.request('off')
|
|
|
|
self.ignore('control')
|
|
|
|
base.localAvatar.disableAvatarControls()
|
|
|
|
base.localAvatar.stopPosHprBroadcast()
|
|
|
|
base.localAvatar.stopBlink()
|
|
|
|
base.localAvatar.stopGlitchKiller()
|
|
|
|
base.localAvatar.collisionsOff()
|
2015-06-16 12:26:44 -05:00
|
|
|
base.localAvatar.controlManager.placeOnFloor()
|