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]
def Stop(self, reason=STOP_REASON_DEFAULT): self.sourceObject.clipSphereFactor = 0.0 self.sourceObject.activationStrength = 1.0 ShipRenderEffect.Stop(self, reason)
def Stop(self, reason=STOP_REASON_DEFAULT): if reason == STOP_REASON_BALL_REMOVED: ShipRenderEffect.Stop(self, reason)
def Start(self, duration): ShipRenderEffect.Start(self, duration) self.SendAudioEvent(eventName='ship_cloak_play')
def Start(self, duration): ShipRenderEffect.Start(self, duration) if duration < 9000: self.SendAudioEvent('ship_skin_change_play') else: self.SendAudioEvent('ship_skin_change_titan_play')
def Stop(self, reason=STOP_REASON_DEFAULT): ShipRenderEffect.Stop(self, reason) shipID = self.ballIDs[0] shipBall = self.fxSequencer.GetBall(shipID) shipBall.TriggerAnimation('normal')
def Repeat(self, duration): ShipRenderEffect.Repeat(self, duration)
def Start(self, duration): ShipRenderEffect.Start(self, duration) shipID = self.ballIDs[0] shipBall = self.fxSequencer.GetBall(shipID) shipBall.TriggerAnimation('siege')