mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
RIP unused animated props
This commit is contained in:
parent
ab10d5f05f
commit
11122c2486
10 changed files with 0 additions and 269 deletions
|
@ -1,32 +0,0 @@
|
||||||
from toontown.hood import ZeroAnimatedProp
|
|
||||||
from toontown.toonbase import ToontownGlobals
|
|
||||||
from direct.directnotify import DirectNotifyGlobal
|
|
||||||
|
|
||||||
class HydrantOneAnimatedProp(ZeroAnimatedProp.ZeroAnimatedProp):
|
|
||||||
notify = DirectNotifyGlobal.directNotify.newCategory('HydrantOneAnimatedProp')
|
|
||||||
PauseTimeMult = base.config.GetFloat('zero-pause-mult', 1.0)
|
|
||||||
PhaseInfo = {0: ('tt_a_ara_ttc_hydrant_firstMoveArmUp1', 40 * PauseTimeMult),
|
|
||||||
1: ('tt_a_ara_ttc_hydrant_firstMoveStruggle', 20 * PauseTimeMult),
|
|
||||||
2: ('tt_a_ara_ttc_hydrant_firstMoveArmUp2', 10 * PauseTimeMult),
|
|
||||||
3: ('tt_a_ara_ttc_hydrant_firstMoveJump', 8 * PauseTimeMult),
|
|
||||||
4: ('tt_a_ara_ttc_hydrant_firstMoveJumpBalance', 6 * PauseTimeMult),
|
|
||||||
5: ('tt_a_ara_ttc_hydrant_firstMoveArmUp3', 4 * PauseTimeMult),
|
|
||||||
6: ('tt_a_ara_ttc_hydrant_firstMoveJumpSpin', 2 * PauseTimeMult)}
|
|
||||||
PhaseWeStartAnimating = 3
|
|
||||||
|
|
||||||
def __init__(self, node):
|
|
||||||
ZeroAnimatedProp.ZeroAnimatedProp.__init__(self, node, 'hydrant', self.PhaseInfo, ToontownGlobals.HYDRANT_ZERO_HOLIDAY)
|
|
||||||
|
|
||||||
def startIfNeeded(self):
|
|
||||||
try:
|
|
||||||
self.curPhase = self.getPhaseToRun()
|
|
||||||
if self.curPhase >= self.PhaseWeStartAnimating:
|
|
||||||
self.request('DoAnim')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def handleNewPhase(self, newPhase):
|
|
||||||
if newPhase < self.PhaseWeStartAnimating:
|
|
||||||
self.request('Off')
|
|
||||||
else:
|
|
||||||
self.startIfNeeded()
|
|
|
@ -1,32 +0,0 @@
|
||||||
from toontown.hood import ZeroAnimatedProp
|
|
||||||
from toontown.toonbase import ToontownGlobals
|
|
||||||
from direct.directnotify import DirectNotifyGlobal
|
|
||||||
|
|
||||||
class HydrantTwoAnimatedProp(ZeroAnimatedProp.ZeroAnimatedProp):
|
|
||||||
notify = DirectNotifyGlobal.directNotify.newCategory('HydrantTwoAnimatedProp')
|
|
||||||
PauseTimeMult = base.config.GetFloat('zero-pause-mult', 1.0)
|
|
||||||
PhaseInfo = {0: ('tt_a_ara_ttc_hydrant_firstMoveArmUp1', 40 * PauseTimeMult),
|
|
||||||
1: ('tt_a_ara_ttc_hydrant_firstMoveStruggle', 20 * PauseTimeMult),
|
|
||||||
2: ('tt_a_ara_ttc_hydrant_firstMoveArmUp2', 10 * PauseTimeMult),
|
|
||||||
3: ('tt_a_ara_ttc_hydrant_firstMoveJump', 8 * PauseTimeMult),
|
|
||||||
4: ('tt_a_ara_ttc_hydrant_firstMoveJumpBalance', 6 * PauseTimeMult),
|
|
||||||
5: ('tt_a_ara_ttc_hydrant_firstMoveArmUp3', 4 * PauseTimeMult),
|
|
||||||
6: ('tt_a_ara_ttc_hydrant_firstMoveJumpSpin', 2 * PauseTimeMult)}
|
|
||||||
PhaseWeStartAnimating = 5
|
|
||||||
|
|
||||||
def __init__(self, node):
|
|
||||||
ZeroAnimatedProp.ZeroAnimatedProp.__init__(self, node, 'hydrant', self.PhaseInfo, ToontownGlobals.HYDRANT_ZERO_HOLIDAY)
|
|
||||||
|
|
||||||
def startIfNeeded(self):
|
|
||||||
try:
|
|
||||||
self.curPhase = self.getPhaseToRun()
|
|
||||||
if self.curPhase >= self.PhaseWeStartAnimating:
|
|
||||||
self.request('DoAnim')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def handleNewPhase(self, newPhase):
|
|
||||||
if newPhase < self.PhaseWeStartAnimating:
|
|
||||||
self.request('Off')
|
|
||||||
else:
|
|
||||||
self.startIfNeeded()
|
|
|
@ -1,17 +0,0 @@
|
||||||
from toontown.hood import ZeroAnimatedProp
|
|
||||||
from toontown.toonbase import ToontownGlobals
|
|
||||||
from direct.directnotify import DirectNotifyGlobal
|
|
||||||
|
|
||||||
class HydrantZeroAnimatedProp(ZeroAnimatedProp.ZeroAnimatedProp):
|
|
||||||
notify = DirectNotifyGlobal.directNotify.newCategory('HydrantZeroAnimatedProp')
|
|
||||||
PauseTimeMult = base.config.GetFloat('zero-pause-mult', 1.0)
|
|
||||||
PhaseInfo = {0: ('tt_a_ara_ttc_hydrant_firstMoveArmUp1', 40 * PauseTimeMult),
|
|
||||||
1: ('tt_a_ara_ttc_hydrant_firstMoveStruggle', 20 * PauseTimeMult),
|
|
||||||
2: ('tt_a_ara_ttc_hydrant_firstMoveArmUp2', 10 * PauseTimeMult),
|
|
||||||
3: ('tt_a_ara_ttc_hydrant_firstMoveJump', 8 * PauseTimeMult),
|
|
||||||
4: ('tt_a_ara_ttc_hydrant_firstMoveJumpBalance', 6 * PauseTimeMult),
|
|
||||||
5: ('tt_a_ara_ttc_hydrant_firstMoveArmUp3', 4 * PauseTimeMult),
|
|
||||||
6: ('tt_a_ara_ttc_hydrant_firstMoveJumpSpin', 2 * PauseTimeMult)}
|
|
||||||
|
|
||||||
def __init__(self, node):
|
|
||||||
ZeroAnimatedProp.ZeroAnimatedProp.__init__(self, node, 'hydrant', self.PhaseInfo, ToontownGlobals.HYDRANT_ZERO_HOLIDAY)
|
|
|
@ -1,32 +0,0 @@
|
||||||
from toontown.hood import ZeroAnimatedProp
|
|
||||||
from toontown.toonbase import ToontownGlobals
|
|
||||||
from direct.directnotify import DirectNotifyGlobal
|
|
||||||
|
|
||||||
class MailboxOneAnimatedProp(ZeroAnimatedProp.ZeroAnimatedProp):
|
|
||||||
notify = DirectNotifyGlobal.directNotify.newCategory('MailboxOneAnimatedProp')
|
|
||||||
PauseTimeMult = base.config.GetFloat('zero-pause-mult', 1.0)
|
|
||||||
PhaseInfo = {0: ('tt_a_ara_dod_mailbox_firstMoveFlagSpin1', 40 * PauseTimeMult),
|
|
||||||
1: (('tt_a_ara_dod_mailbox_firstMoveStruggle', 'tt_a_ara_dod_mailbox_firstMoveJump'), 20 * PauseTimeMult),
|
|
||||||
2: ('tt_a_ara_dod_mailbox_firstMoveFlagSpin2', 10 * PauseTimeMult),
|
|
||||||
3: ('tt_a_ara_dod_mailbox_firstMoveFlagSpin3', 8 * PauseTimeMult),
|
|
||||||
4: ('tt_a_ara_dod_mailbox_firstMoveJumpSummersault', 6 * PauseTimeMult),
|
|
||||||
5: ('tt_a_ara_dod_mailbox_firstMoveJumpFall', 4 * PauseTimeMult),
|
|
||||||
6: ('tt_a_ara_dod_mailbox_firstMoveJump3Summersaults', 2 * PauseTimeMult)}
|
|
||||||
PhaseWeStartAnimating = 3
|
|
||||||
|
|
||||||
def __init__(self, node):
|
|
||||||
ZeroAnimatedProp.ZeroAnimatedProp.__init__(self, node, 'mailbox', self.PhaseInfo, ToontownGlobals.MAILBOX_ZERO_HOLIDAY)
|
|
||||||
|
|
||||||
def startIfNeeded(self):
|
|
||||||
try:
|
|
||||||
self.curPhase = self.getPhaseToRun()
|
|
||||||
if self.curPhase >= self.PhaseWeStartAnimating:
|
|
||||||
self.request('DoAnim')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def handleNewPhase(self, newPhase):
|
|
||||||
if newPhase < self.PhaseWeStartAnimating:
|
|
||||||
self.request('Off')
|
|
||||||
else:
|
|
||||||
self.startIfNeeded()
|
|
|
@ -1,32 +0,0 @@
|
||||||
from toontown.hood import ZeroAnimatedProp
|
|
||||||
from toontown.toonbase import ToontownGlobals
|
|
||||||
from direct.directnotify import DirectNotifyGlobal
|
|
||||||
|
|
||||||
class MailboxTwoAnimatedProp(ZeroAnimatedProp.ZeroAnimatedProp):
|
|
||||||
notify = DirectNotifyGlobal.directNotify.newCategory('MailboxTwoAnimatedProp')
|
|
||||||
PauseTimeMult = base.config.GetFloat('zero-pause-mult', 1.0)
|
|
||||||
PhaseInfo = {0: ('tt_a_ara_dod_mailbox_firstMoveFlagSpin1', 40 * PauseTimeMult),
|
|
||||||
1: (('tt_a_ara_dod_mailbox_firstMoveStruggle', 'tt_a_ara_dod_mailbox_firstMoveJump'), 20 * PauseTimeMult),
|
|
||||||
2: ('tt_a_ara_dod_mailbox_firstMoveFlagSpin2', 10 * PauseTimeMult),
|
|
||||||
3: ('tt_a_ara_dod_mailbox_firstMoveFlagSpin3', 8 * PauseTimeMult),
|
|
||||||
4: ('tt_a_ara_dod_mailbox_firstMoveJumpSummersault', 6 * PauseTimeMult),
|
|
||||||
5: ('tt_a_ara_dod_mailbox_firstMoveJumpFall', 4 * PauseTimeMult),
|
|
||||||
6: ('tt_a_ara_dod_mailbox_firstMoveJump3Summersaults', 2 * PauseTimeMult)}
|
|
||||||
PhaseWeStartAnimating = 5
|
|
||||||
|
|
||||||
def __init__(self, node):
|
|
||||||
ZeroAnimatedProp.ZeroAnimatedProp.__init__(self, node, 'mailbox', self.PhaseInfo, ToontownGlobals.MAILBOX_ZERO_HOLIDAY)
|
|
||||||
|
|
||||||
def startIfNeeded(self):
|
|
||||||
try:
|
|
||||||
self.curPhase = self.getPhaseToRun()
|
|
||||||
if self.curPhase >= self.PhaseWeStartAnimating:
|
|
||||||
self.request('DoAnim')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def handleNewPhase(self, newPhase):
|
|
||||||
if newPhase < self.PhaseWeStartAnimating:
|
|
||||||
self.request('Off')
|
|
||||||
else:
|
|
||||||
self.startIfNeeded()
|
|
|
@ -1,17 +0,0 @@
|
||||||
from toontown.hood import ZeroAnimatedProp
|
|
||||||
from toontown.toonbase import ToontownGlobals
|
|
||||||
from direct.directnotify import DirectNotifyGlobal
|
|
||||||
|
|
||||||
class MailboxZeroAnimatedProp(ZeroAnimatedProp.ZeroAnimatedProp):
|
|
||||||
notify = DirectNotifyGlobal.directNotify.newCategory('MailboxZeroAnimatedProp')
|
|
||||||
PauseTimeMult = base.config.GetFloat('zero-pause-mult', 1.0)
|
|
||||||
PhaseInfo = {0: ('tt_a_ara_dod_mailbox_firstMoveFlagSpin1', 40 * PauseTimeMult),
|
|
||||||
1: (('tt_a_ara_dod_mailbox_firstMoveStruggle', 'tt_a_ara_dod_mailbox_firstMoveJump'), 20 * PauseTimeMult),
|
|
||||||
2: ('tt_a_ara_dod_mailbox_firstMoveFlagSpin2', 10 * PauseTimeMult),
|
|
||||||
3: ('tt_a_ara_dod_mailbox_firstMoveFlagSpin3', 8 * PauseTimeMult),
|
|
||||||
4: ('tt_a_ara_dod_mailbox_firstMoveJumpSummersault', 6 * PauseTimeMult),
|
|
||||||
5: ('tt_a_ara_dod_mailbox_firstMoveJumpFall', 4 * PauseTimeMult),
|
|
||||||
6: ('tt_a_ara_dod_mailbox_firstMoveJump3Summersaults', 2 * PauseTimeMult)}
|
|
||||||
|
|
||||||
def __init__(self, node):
|
|
||||||
ZeroAnimatedProp.ZeroAnimatedProp.__init__(self, node, 'mailbox', self.PhaseInfo, ToontownGlobals.MAILBOX_ZERO_HOLIDAY)
|
|
|
@ -1,26 +0,0 @@
|
||||||
import AnimatedProp
|
|
||||||
from direct.interval.IntervalGlobal import *
|
|
||||||
from direct.task import Task
|
|
||||||
import math
|
|
||||||
|
|
||||||
class SleepingHydrantAnimatedProp(AnimatedProp.AnimatedProp):
|
|
||||||
|
|
||||||
def __init__(self, node):
|
|
||||||
AnimatedProp.AnimatedProp.__init__(self, node)
|
|
||||||
self.task = None
|
|
||||||
return
|
|
||||||
|
|
||||||
def bobTask(self, task):
|
|
||||||
self.node.setSz(1.0 + 0.08 * math.sin(task.time))
|
|
||||||
return Task.cont
|
|
||||||
|
|
||||||
def enter(self):
|
|
||||||
AnimatedProp.AnimatedProp.enter(self)
|
|
||||||
self.task = taskMgr.add(self.bobTask, self.uniqueName('bobTask'))
|
|
||||||
|
|
||||||
def exit(self):
|
|
||||||
AnimatedProp.AnimatedProp.exit(self)
|
|
||||||
if self.task:
|
|
||||||
taskMgr.remove(self.task)
|
|
||||||
self.task = None
|
|
||||||
return
|
|
|
@ -1,32 +0,0 @@
|
||||||
from toontown.hood import ZeroAnimatedProp
|
|
||||||
from toontown.toonbase import ToontownGlobals
|
|
||||||
from direct.directnotify import DirectNotifyGlobal
|
|
||||||
|
|
||||||
class TrashcanOneAnimatedProp(ZeroAnimatedProp.ZeroAnimatedProp):
|
|
||||||
notify = DirectNotifyGlobal.directNotify.newCategory('TrashcanOneAnimatedProp')
|
|
||||||
PauseTimeMult = base.config.GetFloat('zero-pause-mult', 1.0)
|
|
||||||
PhaseInfo = {0: ('tt_a_ara_dga_trashcan_firstMoveLidFlip1', 40 * PauseTimeMult),
|
|
||||||
1: ('tt_a_ara_dga_trashcan_firstMoveStruggle', 20 * PauseTimeMult),
|
|
||||||
2: ('tt_a_ara_dga_trashcan_firstMoveLidFlip2', 10 * PauseTimeMult),
|
|
||||||
3: ('tt_a_ara_dga_trashcan_firstMoveJump', 8 * PauseTimeMult),
|
|
||||||
4: ('tt_a_ara_dga_trashcan_firstMoveLidFlip3', 6 * PauseTimeMult),
|
|
||||||
5: ('tt_a_ara_dga_trashcan_firstMoveJumpHit', 4 * PauseTimeMult),
|
|
||||||
6: ('tt_a_ara_dga_trashcan_firstMoveJumpJuggle', 2 * PauseTimeMult)}
|
|
||||||
PhaseWeStartAnimating = 3
|
|
||||||
|
|
||||||
def __init__(self, node):
|
|
||||||
ZeroAnimatedProp.ZeroAnimatedProp.__init__(self, node, 'trashcan', self.PhaseInfo, ToontownGlobals.TRASHCAN_ZERO_HOLIDAY)
|
|
||||||
|
|
||||||
def startIfNeeded(self):
|
|
||||||
try:
|
|
||||||
self.curPhase = self.getPhaseToRun()
|
|
||||||
if self.curPhase >= self.PhaseWeStartAnimating:
|
|
||||||
self.request('DoAnim')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def handleNewPhase(self, newPhase):
|
|
||||||
if newPhase < self.PhaseWeStartAnimating:
|
|
||||||
self.request('Off')
|
|
||||||
else:
|
|
||||||
self.startIfNeeded()
|
|
|
@ -1,32 +0,0 @@
|
||||||
from toontown.hood import ZeroAnimatedProp
|
|
||||||
from toontown.toonbase import ToontownGlobals
|
|
||||||
from direct.directnotify import DirectNotifyGlobal
|
|
||||||
|
|
||||||
class TrashcanTwoAnimatedProp(ZeroAnimatedProp.ZeroAnimatedProp):
|
|
||||||
notify = DirectNotifyGlobal.directNotify.newCategory('TrashcanTwoAnimatedProp')
|
|
||||||
PauseTimeMult = base.config.GetFloat('zero-pause-mult', 1.0)
|
|
||||||
PhaseInfo = {0: ('tt_a_ara_dga_trashcan_firstMoveLidFlip1', 40 * PauseTimeMult),
|
|
||||||
1: ('tt_a_ara_dga_trashcan_firstMoveStruggle', 20 * PauseTimeMult),
|
|
||||||
2: ('tt_a_ara_dga_trashcan_firstMoveLidFlip2', 10 * PauseTimeMult),
|
|
||||||
3: ('tt_a_ara_dga_trashcan_firstMoveJump', 8 * PauseTimeMult),
|
|
||||||
4: ('tt_a_ara_dga_trashcan_firstMoveLidFlip3', 6 * PauseTimeMult),
|
|
||||||
5: ('tt_a_ara_dga_trashcan_firstMoveJumpHit', 4 * PauseTimeMult),
|
|
||||||
6: ('tt_a_ara_dga_trashcan_firstMoveJumpJuggle', 2 * PauseTimeMult)}
|
|
||||||
PhaseWeStartAnimating = 5
|
|
||||||
|
|
||||||
def __init__(self, node):
|
|
||||||
ZeroAnimatedProp.ZeroAnimatedProp.__init__(self, node, 'trashcan', self.PhaseInfo, ToontownGlobals.TRASHCAN_ZERO_HOLIDAY)
|
|
||||||
|
|
||||||
def startIfNeeded(self):
|
|
||||||
try:
|
|
||||||
self.curPhase = self.getPhaseToRun()
|
|
||||||
if self.curPhase >= self.PhaseWeStartAnimating:
|
|
||||||
self.request('DoAnim')
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def handleNewPhase(self, newPhase):
|
|
||||||
if newPhase < self.PhaseWeStartAnimating:
|
|
||||||
self.request('Off')
|
|
||||||
else:
|
|
||||||
self.startIfNeeded()
|
|
|
@ -1,17 +0,0 @@
|
||||||
from toontown.hood import ZeroAnimatedProp
|
|
||||||
from toontown.toonbase import ToontownGlobals
|
|
||||||
from direct.directnotify import DirectNotifyGlobal
|
|
||||||
|
|
||||||
class TrashcanZeroAnimatedProp(ZeroAnimatedProp.ZeroAnimatedProp):
|
|
||||||
notify = DirectNotifyGlobal.directNotify.newCategory('TrashcanZeroAnimatedProp')
|
|
||||||
PauseTimeMult = base.config.GetFloat('zero-pause-mult', 1.0)
|
|
||||||
PhaseInfo = {0: ('tt_a_ara_dga_trashcan_firstMoveLidFlip1', 40 * PauseTimeMult),
|
|
||||||
1: ('tt_a_ara_dga_trashcan_firstMoveStruggle', 20 * PauseTimeMult),
|
|
||||||
2: ('tt_a_ara_dga_trashcan_firstMoveLidFlip2', 10 * PauseTimeMult),
|
|
||||||
3: ('tt_a_ara_dga_trashcan_firstMoveJump', 8 * PauseTimeMult),
|
|
||||||
4: ('tt_a_ara_dga_trashcan_firstMoveLidFlip3', 6 * PauseTimeMult),
|
|
||||||
5: ('tt_a_ara_dga_trashcan_firstMoveJumpHit', 4 * PauseTimeMult),
|
|
||||||
6: ('tt_a_ara_dga_trashcan_firstMoveJumpJuggle', 2 * PauseTimeMult)}
|
|
||||||
|
|
||||||
def __init__(self, node):
|
|
||||||
ZeroAnimatedProp.ZeroAnimatedProp.__init__(self, node, 'trashcan', self.PhaseInfo, ToontownGlobals.TRASHCAN_ZERO_HOLIDAY)
|
|
Loading…
Reference in a new issue