Skip to content

Commit

Permalink
Uncap prisoners
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Mar 6, 2024
1 parent 9af8d2d commit ccc2dc4
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 ccc2dc4

Please sign in to comment.