diff --git a/Gamemodes/SCP035/scp035/scp035.cs b/Gamemodes/SCP035/scp035/scp035.cs index 204dff2..2e7b17f 100644 --- a/Gamemodes/SCP035/scp035/scp035.cs +++ b/Gamemodes/SCP035/scp035/scp035.cs @@ -16,10 +16,10 @@ namespace scp035 name = "scp035", description = "", id = "rex.gamemode.scp035", - version = "2.1", + version = "2.2", SmodMajor = 3, SmodMinor = 1, - SmodRevision = 15 + SmodRevision = 17 )] class SCP035 : Plugin { @@ -35,7 +35,7 @@ public override void OnEnable() public override void Register() { this.AddEventHandlers(new SmodEventHandler(this), Priority.Normal); - GamemodeManager.GamemodeManager.RegisterMode(this, "43444404444344434444"); + GamemodeManager.GamemodeManager.RegisterMode(this, "43444404040344434444"); Dictionary translations = new Dictionary { @@ -92,12 +92,15 @@ public SmodEventHandler(Plugin plugin) public void OnSetSCPConfig(SetSCPConfigEvent ev) { - ev.Ban049 = false; - ev.Ban096 = true; - ev.Ban106 = false; - ev.Ban173 = true; - ev.Ban939_53 = true; - ev.Ban939_89 = true; + if (GamemodeManager.GamemodeManager.CurrentMode == plugin) + { + ev.Ban049 = false; + ev.Ban096 = true; + ev.Ban106 = false; + ev.Ban173 = true; + ev.Ban939_53 = false; + ev.Ban939_89 = false; + } } public void OnRoundStart(RoundStartEvent ev) @@ -127,14 +130,14 @@ public void OnRoundStart(RoundStartEvent ev) PlayerList.Remove(scp035); - if (PlayerList.Count > 4) + if (PlayerList.Count > 3) { Player randomplayer = PlayerList[rm.Next(PlayerList.Count)]; randomplayer.GiveItem(ItemType.MP4); PlayerList.Remove(randomplayer); hunter_list.Add(randomplayer.PlayerId); - if (PlayerList.Count > 8) + if (PlayerList.Count > 6) { randomplayer = PlayerList[rm.Next(PlayerList.Count)]; randomplayer.GiveItem(ItemType.MP4); @@ -142,7 +145,7 @@ public void OnRoundStart(RoundStartEvent ev) hunter_list.Add(randomplayer.PlayerId); } - if (PlayerList.Count > 10) + if (PlayerList.Count > 8) { randomplayer = PlayerList[rm.Next(PlayerList.Count)]; randomplayer.GiveItem(ItemType.COM15); @@ -283,14 +286,14 @@ public void OnSetRole(PlayerSetRoleEvent ev) if (ev.Role == Role.SCIENTIST) { - ev.Player.GiveItem(ItemType.E11_STANDARD_RIFLE); - ev.Player.GiveItem(ItemType.DISARMER); - ev.Player.GiveItem(ItemType.RADIO); + ev.Items.Add(ItemType.E11_STANDARD_RIFLE); + ev.Items.Add(ItemType.DISARMER); + ev.Items.Add(ItemType.RADIO); } else if (ev.Role == Role.NTF_SCIENTIST) { - ev.Player.GiveItem(ItemType.FLASHBANG); - ev.Player.GiveItem(ItemType.DISARMER); + ev.Items.Add(ItemType.FLASHBANG); + ev.Items.Add(ItemType.DISARMER); } } //CheckEndCondition(); diff --git a/Gamemodes/SCP035/scp035/scp035.csproj b/Gamemodes/SCP035/scp035/scp035.csproj index 43c73e9..3a0cbce 100644 --- a/Gamemodes/SCP035/scp035/scp035.csproj +++ b/Gamemodes/SCP035/scp035/scp035.csproj @@ -35,7 +35,7 @@ False - E:\SteamLibrary\steamapps\common\SCP Secret Laboratory2\SCPSL_Data\Managed\Smod2.dll + ..\..\..\..\..\Reference\Smod2.dll