Skip to content

Commit effb8aa

Browse files
committed
Update
1 parent b584d2f commit effb8aa

2 files changed

Lines changed: 21 additions & 18 deletions

File tree

Gamemodes/SCP035/scp035/scp035.cs

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ namespace scp035
1616
name = "scp035",
1717
description = "",
1818
id = "rex.gamemode.scp035",
19-
version = "2.1",
19+
version = "2.2",
2020
SmodMajor = 3,
2121
SmodMinor = 1,
22-
SmodRevision = 15
22+
SmodRevision = 17
2323
)]
2424
class SCP035 : Plugin
2525
{
@@ -35,7 +35,7 @@ public override void OnEnable()
3535
public override void Register()
3636
{
3737
this.AddEventHandlers(new SmodEventHandler(this), Priority.Normal);
38-
GamemodeManager.GamemodeManager.RegisterMode(this, "43444404444344434444");
38+
GamemodeManager.GamemodeManager.RegisterMode(this, "43444404040344434444");
3939

4040
Dictionary<string, string> translations = new Dictionary<string, string>
4141
{
@@ -92,12 +92,15 @@ public SmodEventHandler(Plugin plugin)
9292

9393
public void OnSetSCPConfig(SetSCPConfigEvent ev)
9494
{
95-
ev.Ban049 = false;
96-
ev.Ban096 = true;
97-
ev.Ban106 = false;
98-
ev.Ban173 = true;
99-
ev.Ban939_53 = true;
100-
ev.Ban939_89 = true;
95+
if (GamemodeManager.GamemodeManager.CurrentMode == plugin)
96+
{
97+
ev.Ban049 = false;
98+
ev.Ban096 = true;
99+
ev.Ban106 = false;
100+
ev.Ban173 = true;
101+
ev.Ban939_53 = false;
102+
ev.Ban939_89 = false;
103+
}
101104
}
102105

103106
public void OnRoundStart(RoundStartEvent ev)
@@ -127,22 +130,22 @@ public void OnRoundStart(RoundStartEvent ev)
127130

128131
PlayerList.Remove(scp035);
129132

130-
if (PlayerList.Count > 4)
133+
if (PlayerList.Count > 3)
131134
{
132135
Player randomplayer = PlayerList[rm.Next(PlayerList.Count)];
133136
randomplayer.GiveItem(ItemType.MP4);
134137
PlayerList.Remove(randomplayer);
135138
hunter_list.Add(randomplayer.PlayerId);
136139

137-
if (PlayerList.Count > 8)
140+
if (PlayerList.Count > 6)
138141
{
139142
randomplayer = PlayerList[rm.Next(PlayerList.Count)];
140143
randomplayer.GiveItem(ItemType.MP4);
141144
PlayerList.Remove(randomplayer);
142145
hunter_list.Add(randomplayer.PlayerId);
143146
}
144147

145-
if (PlayerList.Count > 10)
148+
if (PlayerList.Count > 8)
146149
{
147150
randomplayer = PlayerList[rm.Next(PlayerList.Count)];
148151
randomplayer.GiveItem(ItemType.COM15);
@@ -283,14 +286,14 @@ public void OnSetRole(PlayerSetRoleEvent ev)
283286

284287
if (ev.Role == Role.SCIENTIST)
285288
{
286-
ev.Player.GiveItem(ItemType.E11_STANDARD_RIFLE);
287-
ev.Player.GiveItem(ItemType.DISARMER);
288-
ev.Player.GiveItem(ItemType.RADIO);
289+
ev.Items.Add(ItemType.E11_STANDARD_RIFLE);
290+
ev.Items.Add(ItemType.DISARMER);
291+
ev.Items.Add(ItemType.RADIO);
289292
}
290293
else if (ev.Role == Role.NTF_SCIENTIST)
291294
{
292-
ev.Player.GiveItem(ItemType.FLASHBANG);
293-
ev.Player.GiveItem(ItemType.DISARMER);
295+
ev.Items.Add(ItemType.FLASHBANG);
296+
ev.Items.Add(ItemType.DISARMER);
294297
}
295298
}
296299
//CheckEndCondition();

Gamemodes/SCP035/scp035/scp035.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
</Reference>
3636
<Reference Include="Smod2, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
3737
<SpecificVersion>False</SpecificVersion>
38-
<HintPath>E:\SteamLibrary\steamapps\common\SCP Secret Laboratory2\SCPSL_Data\Managed\Smod2.dll</HintPath>
38+
<HintPath>..\..\..\..\..\Reference\Smod2.dll</HintPath>
3939
</Reference>
4040
<Reference Include="System" />
4141
<Reference Include="System.Core" />

0 commit comments

Comments
 (0)