mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 12:12:36 -06:00
25 lines
849 B
Python
Executable file
25 lines
849 B
Python
Executable file
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()
|
|
base.localAvatar.controlManager.placeOnFloor()
|