Skip to content

Commit

Permalink
assign human class to those who joined late
Browse files Browse the repository at this point in the history
  • Loading branch information
EasterLee committed Oct 18, 2023
1 parent 265c51c commit d4a0af3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/vscripts/ZombieReborn.lua
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ function OnPlayerSpawn(event)
InfectAsync(hPlayer, false)
return
end

-- assign human class for those who missed the human class assignment
if ZR_ROUND_STARTED and not ZR_ZOMBIE_SPAWNED and hPlayer:GetTeam() == CS_TEAM_CT then
InjectPlayerClass(PickRandomHumanDefaultClass(), hPlayer)
end

-- force switch team for player who tries to join the T side
-- if not ZR_ZOMBIE_SPAWN_READY and hPlayer:GetTeam() == CS_TEAM_T then
-- --print("Forcing player to ct")
-- CureAsync(hPlayer, false)
-- end
end

function OnItemEquip(event)
Expand Down

0 comments on commit d4a0af3

Please sign in to comment.