Exemplo n.º 1
0
 protected override void VehicleSeat_onPassengerExit(GameObject passenger)
 {
     if (isServer)
     {
         PersonalizePodPlugin.BuffTeam(passenger, RoR2Content.Buffs.ElephantArmorBoost, 11f);
     }
 }
        // enfucker

        public void Start()
        {
            instance           = this;
            _logger            = Logger;
            genericPodPrefab   = RoR2Content.Survivors.Commando.bodyPrefab.GetComponent <CharacterBody>().preferredPodPrefab;
            roboCratePodPrefab = RoR2Content.Survivors.Toolbot.bodyPrefab.GetComponent <CharacterBody>().preferredPodPrefab;
            SetupBattery();

            Hooks();
        }
Exemplo n.º 3
0
            protected override void VehicleSeat_onPassengerExit(GameObject passenger)
            {
                var characterBody = passenger.GetComponent <CharacterBody>();

                if (characterBody)
                {
                    SpawnAcidPools(characterBody);
                    if (cfgShouldDropVolatileBattery)
                    {
                        PersonalizePodPlugin.SpawnBattery(characterBody.footPosition);
                    }
                }
            }
Exemplo n.º 4
0
            protected override void VehicleSeat_onPassengerExit(GameObject passenger)
            {
                var characterBody = passenger.GetComponent <CharacterBody>();

                if (characterBody && isServer)
                {
                    characterBody.AddTimedBuff(RoR2Content.Buffs.LifeSteal, 8f);
                    if (cfgShouldDropVolatileBattery)
                    {
                        PersonalizePodPlugin.SpawnBattery(characterBody.footPosition);
                    }
                }
            }