Skip to content

Commit

Permalink
Uncap prisoners (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS authored Mar 6, 2024
2 parents 8d8f2dc + ccc2dc4 commit 402ee13
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mod/Jailbreak.Teams/Queue/QueueBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ public HookResult OnRequestToJoinTeam(CCSPlayerController? invoked, CommandInfo

if (Utilities.GetPlayers().Find(c => c.GetTeam() == CsTeam.CounterTerrorist) == null)
return HookResult.Continue; // If no CTs, let anyone on CT team

// Force player to prisoner if they attempt to join prisoners
// Allows for uncapped prisoners regardless of mapos
if((CsTeam)team == CsTeam.Terrorist)
invoked.ChangeTeam(CsTeam.Terrorist);

// Player is attempting to join CT and is not a guard?
// If so, stop them!!
Expand Down

0 comments on commit 402ee13

Please sign in to comment.