def Prepare(self): ShipRenderEffect.Prepare(self) self.gfx.name = self.__gfxName__ shipBall = self.GetEffectShipBall() for binding in self.gfx.curveSet.bindings: if binding.name.startswith('new'): binding.destinationObject = self.sourceObject if binding.name.startswith('old'): binding.destinationObject = shipBall.cachedShip self.sourceObject.clipSphereCenter = (0.0, 0.0, 0.0) shipBall.cachedShip.clipSphereCenter = (0.0, 0.0, 0.0)
def Prepare(self): sourceObject = self.GetEffectShipBall().model for effect in sourceObject.overlayEffects: if effect.name == self.__gfxName__: sourceObject.overlayEffects.remove(effect) ShipRenderEffect.Prepare(self) self.gfx.name = self.__gfxName__ for binding in self.gfx.curveSet.bindings: if binding.name.startswith('self'): binding.destinationObject = self.sourceObject shipBall = self.GetEffectShipBall() if shipBall is not None: if shipBall.id != session.shipid: del self.gfx.additiveEffects[:] del self.gfx.distortionEffects[:] self.sourceObject.clipSphereCenter = random.choice( self.sourceObject.damageLocators)[0]