Exemple #1
0
    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())
Exemple #2
0
    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()
Exemple #3
0
 def doBigExp(self):
     self.bigGearExp.start(CIGlobals.getParticleRender())
Exemple #4
0
 def doSmallExp(self):
     self.smallGearExp.start(CIGlobals.getParticleRender())
Exemple #5
0
 def doSingleGear(self):
     self.singleGear.start(CIGlobals.getParticleRender())