public override void Register() { instance = this; Timing.Init(this); AddEventHandlers(new EventHandler(), Smod2.Events.Priority.High); AddCommands(new string[] { "cis", "cispy" }, new CommandHandler()); AddConfig(new Smod2.Config.ConfigSetting("cis_enabled", true, false, true, "Enables CiSpy.")); AddConfig(new Smod2.Config.ConfigSetting("cis_guard_chance", 50, false, true, "The chance for a facility guard to spawn as a spy at the start of the round.")); AddConfig(new Smod2.Config.ConfigSetting("cis_spy_roles", new[] { 11, 13 }, false, true, "Which roles can be a spy.")); AddConfig(new Smod2.Config.ConfigSetting("cis_spawn_with_grenade", true, false, true, "If spies should be able to spawn with frag grenades")); AddConfig(new Smod2.Config.ConfigSetting("cis_spawn_chance", 40, false, true, "The chance for a CISpy to spawn in an MTF wave.")); AddConfig(new Smod2.Config.ConfigSetting("cis_minimum_size", 6, false, true, "The minimum squad size there must be for a spy to have a chance at spawning.")); }