mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-25 12:42:41 -06:00
27 lines
1.2 KiB
Python
27 lines
1.2 KiB
Python
|
from pandac.PandaModules import *
|
||
|
import DistributedCCharBase
|
||
|
from direct.directnotify import DirectNotifyGlobal
|
||
|
from direct.fsm import ClassicFSM, State
|
||
|
from direct.fsm import State
|
||
|
from toontown.classicchars import DistributedPluto
|
||
|
import CharStateDatas
|
||
|
from toontown.toonbase import ToontownGlobals
|
||
|
from toontown.toonbase import TTLocalizer
|
||
|
import DistributedCCharBase
|
||
|
|
||
|
class DistributedWesternPluto(DistributedPluto.DistributedPluto):
|
||
|
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedWesternPluto')
|
||
|
|
||
|
def __init__(self, cr):
|
||
|
try:
|
||
|
self.DistributedPluto_initialized
|
||
|
except:
|
||
|
self.DistributedPluto_initialized = 1
|
||
|
DistributedCCharBase.DistributedCCharBase.__init__(self, cr, TTLocalizer.WesternPluto, 'wp')
|
||
|
self.fsm = ClassicFSM.ClassicFSM('DistributedWesternPluto', [State.State('Off', self.enterOff, self.exitOff, ['Neutral']), State.State('Neutral', self.enterNeutral, self.exitNeutral, ['Walk']), State.State('Walk', self.enterWalk, self.exitWalk, ['Neutral'])], 'Off', 'Off')
|
||
|
self.fsm.enterInitialState()
|
||
|
self.nametag.setText(TTLocalizer.Pluto)
|
||
|
|
||
|
def walkSpeed(self):
|
||
|
return ToontownGlobals.WesternPlutoSpeed
|