def __doFakeStuff(self): self.__cleanupFakeStuff() self.lightSound = base.audio3d.loadSfx("phase_14/audio/sfx/tnt_snap.ogg") base.audio3d.attachSoundToObject(self.lightSound, self.getVMGag()) self.lightSound.play() self.tntSound = base.audio3d.loadSfx("phase_14/audio/sfx/dynamite_loop.ogg") self.tntSound.setLoop(True) base.audio3d.attachSoundToObject(self.tntSound, self.getVMGag()) self.tntSound.play() self.particle = ParticleLoader.loadParticleEffect("phase_14/etc/tnt_spark.ptf") self.particle.start(self.getVMGag().find('**/joint_attachEmitter'), CIGlobals.getParticleRender())
def announceGenerate(self): self.tnt = Actor('phase_14/models/props/cog_bomb.bam', {'chan': 'phase_5/models/props/tnt-chan.bam'}) self.tnt.reparentTo(self) self.tnt.play('chan') self.tntSound = base.loadSfxOnNode( "phase_14/audio/sfx/dynamite_loop.ogg", self.tnt) self.tntSound.setLoop(True) self.particle = loader.loadParticleEffect("phase_14/etc/tnt_spark.ptf") self.particle.start(self.tnt.find('**/joint_attachEmitter'), CIGlobals.getParticleRender()) DistributedPhysicsEntity.announceGenerate(self) self.tntSound.play()
def doBigExp(self): self.bigGearExp.start(CIGlobals.getParticleRender())
def doSmallExp(self): self.smallGearExp.start(CIGlobals.getParticleRender())
def doSingleGear(self): self.singleGear.start(CIGlobals.getParticleRender())