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)
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)
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)