Exemplo n.º 1
0
 public override void Start()
 {
     base.Start();
     mRaceable    = GetComponent <RaceableObject>();
     mMessage     = GetComponent <MmoMessageComponent>();
     mCurrentRace = mRaceable.race;
 }
Exemplo n.º 2
0
        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>();
        }
Exemplo n.º 3
0
 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>();
 }
Exemplo n.º 4
0
 public override void Start()
 {
     if (!m_StartCalled)
     {
         m_StartCalled = true;
         mMessage      = GetComponent <MmoMessageComponent>();
     }
 }
Exemplo n.º 5
0
 public override void Start()
 {
     if (!m_StartCalled)
     {
         m_StartCalled = true;
         base.Start();
         m_Message  = GetComponent <MmoMessageComponent>();
         m_Raceable = GetComponent <RaceableObject>();
         OnZoneVisited(nebulaObject.mmoWorld().GetID());
     }
 }
Exemplo n.º 6
0
 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>();
 }
Exemplo n.º 7
0
 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>();
 }
Exemplo n.º 8
0
        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();
        }
Exemplo n.º 9
0
 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>();
 }
Exemplo n.º 10
0
        //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;
        }
Exemplo n.º 11
0
 public override void Start()
 {
     InitVariables();
     m_Mmo    = GetComponent <MmoMessageComponent>();
     m_Target = GetComponent <PlayerTarget>();
 }