Ejemplo n.º 1
0
    def suitExplode(self):
        pos = self.getPart('body').find('**/joint_head').getPos(render) + (0, 0, 2)

        # Force the loser suit to use UnlitGeneric shader, workaround for the has_mat() assertion
        BSPUtility.applyUnlitOverride(self)

        CIGlobals.makeExplosion(pos, 0.5, soundVol = 0.32)
Ejemplo n.º 2
0
 def makeExplosion(self, dgi):
     pos = CIGlobals.getVec3(dgi)
     scale = dgi.getFloat64()
     sound = bool(dgi.getUint8())
     shakeCam = bool(dgi.getUint8())
     duration = dgi.getFloat64()
     soundVol = dgi.getFloat64()
     CIGlobals.makeExplosion(pos, scale, sound, shakeCam, duration,
                             soundVol)
Ejemplo n.º 3
0
 def explode(self):
     self.tntSound.stop()
     self.hide()
     self.particle.softStop()
     self.cleanupPhysics()
     CIGlobals.makeExplosion(self.getPos(render) + (0, 0, 5.0), 0.7, True)