def Start(self, duration): if self.gfx is None: return self.gfx.display = False self.hasExploded = False self.hasWind = False self.hasMoreCollisions = True self.findNext = True ShipEffect.Start(self, duration) bp = sm.StartService('michelle').GetBallpark() shipID = self.GetEffectShipID() shipBall = bp.GetBall(shipID) self.shipBall = shipBall self.shipModel = getattr(shipBall, 'model', None) self.shipBall.RegisterModelChangeNotification(self.ModelChangeNotify) slimItem = bp.GetInvItem(shipID) self.warpSpeedModifier = sm.StartService('godma').GetTypeAttribute( slimItem.typeID, const.attributeWarpSpeedMultiplier) if self.warpSpeedModifier is None: self.warpSpeedModifier = 1.0 space = sm.GetService('space') self.SetupTunnelBindings() self.nextCollision = None self.insideSolid = False self.destination = space.warpDestinationCache[3] self.collisions = [] self.collisions = self.GetWarpCollisions(shipBall) self.ControlFlow('NextCollision') uthread.worker('FxSequencer::WarpEffectLoop', self.WarpLoop, shipBall)
def Start(self, duration): shipID = self.ballIDs[0] shipBall = self.fxSequencer.GetBall(shipID) if shipBall is None: self.sfxMgr.LogError(self.__guid__, ' could not find a ball') return ShipEffect.Start(self, duration)
def Start(self, duration): shipID = self.ballIDs[0] shipBall = self.fxSequencer.GetBall(shipID) here = sm.GetService('map').GetItem(session.solarsystemid2) there = sm.GetService('map').GetItem(self.graphicInfo[0]) yaw, pitch = mathCommon.GetYawAndPitchAnglesRad((here.x, here.y, here.z), (there.x, there.y, there.z)) quat = geo2.QuaternionRotationSetYawPitchRoll(yaw, pitch, 0) self.gfxModel.rotation = quat if eve.session.shipid == shipID: self.playerEffect = JumpTransitionCyno() self.playerEffect.Prepare(shipBall, self.graphicInfo[0], quat) self.playerEffect.SetScene(self.fxSequencer.GetScene()) self.playerEffect.Start() ShipEffect.Start(self, duration) uthread.new(self.DelayedHide, shipBall, 180)