Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ShingekiNoRex committed Sep 15, 2018
1 parent b584d2f commit effb8aa
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
37 changes: 20 additions & 17 deletions Gamemodes/SCP035/scp035/scp035.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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<string, string> translations = new Dictionary<string, string>
{
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -127,22 +130,22 @@ 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);
PlayerList.Remove(randomplayer);
hunter_list.Add(randomplayer.PlayerId);
}

if (PlayerList.Count > 10)
if (PlayerList.Count > 8)
{
randomplayer = PlayerList[rm.Next(PlayerList.Count)];
randomplayer.GiveItem(ItemType.COM15);
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion Gamemodes/SCP035/scp035/scp035.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</Reference>
<Reference Include="Smod2, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>E:\SteamLibrary\steamapps\common\SCP Secret Laboratory2\SCPSL_Data\Managed\Smod2.dll</HintPath>
<HintPath>..\..\..\..\..\Reference\Smod2.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down

0 comments on commit effb8aa

Please sign in to comment.