def __init__(self, cr):
     DistCogdoCraneObject.__init__(self, cr)
     NodePath.__init__(self, 'object')
     self.index = None
     self.flyToMagnetSfx = loader.loadSfx('phase_5/audio/sfx/TL_rake_throw_only.ogg')
     self.hitMagnetSfx = loader.loadSfx('phase_5/audio/sfx/AA_drop_safe.ogg')
     self.toMagnetSoundInterval = Parallel(SoundInterval(self.flyToMagnetSfx, duration=ToontownGlobals.CashbotBossToMagnetTime, node=self), Sequence(Wait(ToontownGlobals.CashbotBossToMagnetTime - 0.02), SoundInterval(self.hitMagnetSfx, duration=1.0, node=self)))
     self.hitFloorSfx = loader.loadSfx('phase_5/audio/sfx/AA_drop_bigweight_miss.ogg')
     self.hitFloorSoundInterval = SoundInterval(self.hitFloorSfx, node=self)
예제 #2
0
 def __init__(self, cr):
     DistCogdoCraneObject.__init__(self, cr)
     NodePath.__init__(self, 'object')
     self.index = None
     self.flyToMagnetSfx = loader.loadSfx('phase_5/audio/sfx/TL_rake_throw_only.mp3')
     self.hitMagnetSfx = loader.loadSfx('phase_5/audio/sfx/AA_drop_safe.mp3')
     self.toMagnetSoundInterval = Parallel(SoundInterval(self.flyToMagnetSfx, duration=ToontownGlobals.CashbotBossToMagnetTime, node=self), Sequence(Wait(ToontownGlobals.CashbotBossToMagnetTime - 0.02), SoundInterval(self.hitMagnetSfx, duration=1.0, node=self)))
     self.hitFloorSfx = loader.loadSfx('phase_5/audio/sfx/AA_drop_bigweight_miss.mp3')
     self.hitFloorSoundInterval = SoundInterval(self.hitFloorSfx, node=self)
     return
예제 #3
0
 def announceGenerate(self):
     DistCogdoCraneObject.announceGenerate(self)
     self.name = 'moneyBag-%s' % self.doId
     self.setName(self.name)
     self.craneGame.moneyBag.copyTo(self)
     self.shadow = NodePath('notAShadow')
     self.collisionNode.setName('moneyBag')
     cs = CollisionSphere(0, 0, 4, 4)
     self.collisionNode.addSolid(cs)
     self.craneGame.moneyBags[self.index] = self
     self.setupPhysics('moneyBag')
     self.resetToInitialPosition()
예제 #4
0
 def announceGenerate(self):
     DistCogdoCraneObject.announceGenerate(self)
     self.name = 'moneyBag-%s' % self.doId
     self.setName(self.name)
     self.craneGame.moneyBag.copyTo(self)
     self.shadow = NodePath('notAShadow')
     self.collisionNode.setName('moneyBag')
     cs = CollisionSphere(0, 0, 4, 4)
     self.collisionNode.addSolid(cs)
     self.craneGame.moneyBags[self.index] = self
     self.setupPhysics('moneyBag')
     self.resetToInitialPosition()
예제 #5
0
 def setObjectState(self, state, avId, craneId):
     if state == 'I':
         self.demand('Initial')
     else:
         DistCogdoCraneObject.setObjectState(self, state, avId, craneId)
예제 #6
0
 def disable(self):
     del self.craneGame.moneyBags[self.index]
     DistCogdoCraneObject.disable(self)
예제 #7
0
 def setObjectState(self, state, avId, craneId):
     if state == 'I':
         self.demand('Initial')
     else:
         DistCogdoCraneObject.setObjectState(self, state, avId, craneId)
예제 #8
0
 def disable(self):
     del self.craneGame.moneyBags[self.index]
     DistCogdoCraneObject.disable(self)