public override void Start() { base.Start(); mRaceable = GetComponent <RaceableObject>(); mMessage = GetComponent <MmoMessageComponent>(); mCurrentRace = mRaceable.race; }
public override void Start() { base.Start(); mShip = RequireComponent <BaseShip>(); mBonuses = RequireComponent <PlayerBonuses>(); if (GetComponent <PlayerLoaderObject>()) { log.Info("load before destructable"); GetComponent <PlayerLoaderObject>().Load(); } float initHealth = maximumHealth; if (initHealth <= 0.0f) { initHealth = 1000000; } //log.InfoFormat("Set health at start to {0}", initHealth); ForceSetHealth(initHealth); mpcHPRegenNonCombatPerSec = nebulaObject.resource.ServerInputs.GetValue <float>("hp_regen_non_combat"); player = GetComponent <MmoActor>(); mTarget = GetComponent <PlayerTarget>(); mSkills = GetComponent <PlayerSkills>(); mPassiveBonuses = GetComponent <PassiveBonusesComponent>(); //mEventedObject = GetComponent<EventedObject>(); m_Message = GetComponent <MmoMessageComponent>(); }
public override void Start() { base.Start(); mAI = GetComponent <AIState>(); mShiftSpeedFactor = nebulaObject.world.Resource().ServerInputs.GetValue <float>("accelerated_motion_speed_factor"); m_PassiveBonuses = GetComponent <PassiveBonusesComponent>(); m_Mmo = GetComponent <MmoMessageComponent>(); }
public override void Start() { if (!m_StartCalled) { m_StartCalled = true; mMessage = GetComponent <MmoMessageComponent>(); } }
public override void Start() { if (!m_StartCalled) { m_StartCalled = true; base.Start(); m_Message = GetComponent <MmoMessageComponent>(); m_Raceable = GetComponent <RaceableObject>(); OnZoneVisited(nebulaObject.mmoWorld().GetID()); } }
public override void Start() { cachedTarget = RequireComponent <PlayerTarget>(); cachedCharacter = RequireComponent <CharacterObject>(); cachedBonuses = GetComponent <PlayerBonuses>(); cachedSkills = GetComponent <PlayerSkills>(); cachedDamagable = GetComponent <DamagableObject>(); mPassiveBonuses = GetComponent <PassiveBonusesComponent>(); mMessage = GetComponent <MmoMessageComponent>(); m_Achievments = GetComponent <AchievmentComponent>(); m_CachedBot = GetComponent <BotObject>(); }
public override void Start() { mPlayer = RequireComponent <MmoActor>(); mShip = RequireComponent <PlayerShip>(); mLoader = GetComponent <PlayerLoaderObject>(); mMessage = GetComponent <MmoMessageComponent>(); mBonuses = GetComponent <PlayerBonuses>(); mRace = GetComponent <RaceableObject>(); m_PetManager = GetComponent <PetManager>(); m_Achivments = GetComponent <AchievmentComponent>(); //m_QuestManager = GetComponent<QuestManager>(); }
public override void Start() { this.fsm = new BaseFSM <PirateStationState>(); this.fsm.AddState(new FSMState <PirateStationState>(PirateStationState.Idle, () => { }, () => { }, () => { })); this.fsm.AddState(new FSMState <PirateStationState>(PirateStationState.Dead, () => { }, () => { }, () => { })); this.fsm.ForceState(PirateStationState.Idle, true); mDamagable = RequireComponent <DamagableObject>(); mMessage = RequireComponent <MmoMessageComponent>(); Move(nebulaObject.transform.position, nebulaObject.transform.rotation); (nebulaObject as Item).UpdateInterestManagement(); }
public override void Start() { //damagers = new Dictionary<string, DamageInfo>(); props.SetProperty((byte)PS.IgnoreDamage, ignoreDamage); props.SetProperty((byte)PS.IgnoreDamageTimer, mIgnoreDamageTimer); mIgnoreDamageTimer = ignoreDamageInterval; mBonuses = GetComponent <PlayerBonuses>(); timedDamage = new TimedDamage(this); m_Skills = GetComponent <PlayerSkills>(); m_Achievments = GetComponent <AchievmentComponent>(); m_Bot = GetComponent <BotObject>(); m_Mmo = GetComponent <MmoMessageComponent>(); m_Character = GetComponent <CharacterObject>(); }
//private Dictionary<string, float> energyBuffs; public override void Start() { mShip = RequireComponent <BaseShip>(); mAI = GetComponent <AIState>(); mPlayer = GetComponent <MmoActor>(); mDamagable = GetComponent <ShipBasedDamagableObject>(); mBonuses = GetComponent <PlayerBonuses>(); m_Mmo = GetComponent <MmoMessageComponent>(); //energyBuffs = new Dictionary<string, float>(); mEnergyCostPerShiftMoving = nebulaObject.world.Resource().ServerInputs.GetValue <float>("accelerated_motion_energy_cost"); mMaxEnergyFromResource = resource.ServerInputs.GetValue <float>("max_energy"); mEnergyRestoration = resource.ServerInputs.GetValue <float>("energy_restoration"); //log.InfoFormat("MAX EENRGY FROM RESOURCE: {0}, ENERGY RESTORATION: {1}", mMaxEnergyFromResource, mEnergyRestoration); mPassiveBonuses = GetComponent <PassiveBonusesComponent>(); m_CurrentEnergy = maximumEnergy; }
public override void Start() { InitVariables(); m_Mmo = GetComponent <MmoMessageComponent>(); m_Target = GetComponent <PlayerTarget>(); }