internal override void InitializeEvent(IEventPlugin plugin, EventManager.EventConfig config) { playerLives = config.GetParameter <int>("playerLives"); rounds = config.GetParameter <int>("rounds"); maxHelicopters = config.GetParameter <int>("maxHelicopters"); heliHealth = config.GetParameter <int>("heliHealth"); damageScaler = config.GetParameter <float>("damageScaler"); eventHelicopters = Facepunch.Pool.GetList <EventHelicopter>(); winners = Facepunch.Pool.GetList <EventManager.BaseEventPlayer>(); base.InitializeEvent(plugin, config); }
internal override void InitializeEvent(IEventPlugin plugin, EventManager.EventConfig config) { string downgradeShortname = config.GetParameter <string>("downgradeWeapon"); if (!string.IsNullOrEmpty(downgradeShortname)) { downgradeWeapon = ItemManager.FindItemDefinition(downgradeShortname); } weaponSet = GetWeaponSet(config.GetParameter <string>("weaponSet")); base.InitializeEvent(plugin, config); }
internal override void InitializeEvent(IEventPlugin plugin, EventManager.EventConfig config) { torchItem = ItemManager.FindItemDefinition(config.GetParameter <string>("torchItem")); slasherWeapon = ItemManager.FindItemDefinition(config.GetParameter <string>("slasherWeapon")); slasherKit = config.GetParameter <string>("slasherClothing"); slasherTime = config.GetParameter <int>("slasherTime"); playerTime = config.GetParameter <int>("playerTime"); remainingSlashers = Facepunch.Pool.GetList <EventManager.BaseEventPlayer>(); base.InitializeEvent(plugin, config); }
internal override void InitializeEvent(IEventPlugin plugin, EventManager.EventConfig config) { flagRespawnTime = config.GetParameter <int>("flagRespawnTimer"); base.InitializeEvent(plugin, config); TeamAFlag = FlagController.Create(this, EventManager.Team.A, _spawnSelectorA.ReserveSpawnPoint(0)); TeamBFlag = FlagController.Create(this, EventManager.Team.B, _spawnSelectorB.ReserveSpawnPoint(0)); }