Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions HelpSense/API/Events/CustomEventHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,22 @@ public class CustomEventHandler : CustomEventsHandler
public static TranslateConfig TranslateConfig;
public static SSSSTranslateConfig SSSSTranslateConfig;
public static CommandTranslateConfig CommandTranslateConfig;

public IEnumerator<float> Scp029InfEffect(Player player)
{
while(true)
{
yield return Timing.WaitForSeconds(1f);
if(!player.HasEffect<MovementBoost>())
player.EnableEffect<MovementBoost>(20);
if (!player.HasEffect<Scp1853>())
player.EnableEffect<Scp1853>(2);
if (!player.HasEffect<DamageReduction>())
player.EnableEffect<DamageReduction>(15);
if (player.GetRoleName() != "SCP-029")
yield break;
}
}

public override void OnServerWaitingForPlayers()
{
Expand Down Expand Up @@ -586,6 +602,8 @@ public override void OnServerRoundStarted()
player.EnableEffect<DamageReduction>(15);

player.Health = 120;

Timing.RunCoroutine(Scp029InfEffect(player));
};
});
}
Expand Down
20 changes: 10 additions & 10 deletions HelpSense/Handler/LobbyLocationHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ public static void TowerLocation()
{
LobbyPosition = Random.Range(1, 6) switch
{
1 => new Vector3(162.893f, 1019.470f, -13.430f),
2 => new Vector3(107.698f, 1014.048f, -12.555f),
3 => new Vector3(39.262f, 1014.112f, -31.844f),
4 => new Vector3(-15.854f, 1014.461f, -31.543f),
5 => new Vector3(130.483f, 993.366f, 20.601f),
_ => new Vector3(39.262f, 1014.112f, -31.844f),
1 => new Vector3(162.893f, 319.470f, -13.430f),
2 => new Vector3(107.698f, 314.048f, -12.555f),
3 => new Vector3(39.262f, 314.112f, -31.844f),
4 => new Vector3(-15.854f, 314.461f, -31.543f),
5 => new Vector3(130.483f, 293.366f, 20.601f),
_ => new Vector3(39.262f, 314.112f, -31.844f),
};
}

Expand All @@ -36,13 +36,13 @@ public static void IntercomLocation()

public static void MountainLocation()
{
LobbyPosition = new Vector3(103.492f, 998.946f, 24.672f);
LobbyPosition = new Vector3(103.492f, 298.946f, 24.672f);
}

public static void ChaosLocation()
{
LobbyPosition = new Vector3(-49.074f, 989.055f, -42.844f);
//LobbyPosition = new Vector3(-7.500f, 995.402f, -7.910f);
LobbyPosition = new Vector3(-49.074f, 289.055f, -42.844f);
//LobbyPosition = new Vector3(-7.500f, 295.402f, -7.910f);
}
}
}
}