def playCrushMovie(self, crusherId, axis): goonPos = self.getPos() sx = random.uniform(0.3, 0.8) * self.scale sz = random.uniform(0.3, 0.8) * self.scale crushTrack = Sequence(GoonDeath.createGoonExplosion(self.getParent(), goonPos, VBase3(sx, 1, sz)), name=self.uniqueName('crushTrack'), autoFinish=1) self.dead() crushTrack.start()
def playCrushMovie(self, crusherId, axis): goonPos = self.getPos() sx = random.uniform(0.29999999999999999, 0.80000000000000004) * self.scale sz = random.uniform(0.29999999999999999, 0.80000000000000004) * self.scale crushTrack = Sequence(GoonDeath.createGoonExplosion(self.getParent(), goonPos, VBase3(sx, 1, sz)), name = self.uniqueName('crushTrack'), autoFinish = 1) self.dead() crushTrack.start()