Skip to content

Commit

Permalink
Remove redundant team setting at round start (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vauff authored Oct 19, 2023
1 parent 4e49590 commit 28ecbb2
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions scripts/vscripts/ZombieReborn.lua
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,6 @@ function OnPreRestart(event)
ZR_ZOMBIE_SPAWN_READY = false
end

function OnPreStart(event)
for i = 1, 64 do
local hController = EntIndexToHScript(i)
if hController ~= nil and hController:GetTeam() == CS_TEAM_T then
hController:SetTeam(CS_TEAM_CT)
end
end
end

function OnPlayerTeam(event)
--__DumpScope(0, event)
local hPlayer = EHandleToHScript(event.userid_pawn)
Expand All @@ -200,5 +191,4 @@ tListenerIds = {
ListenToGameEvent("item_equip", OnItemEquip, nil),
ListenToGameEvent("cs_pre_restart", OnPreRestart, nil),
ListenToGameEvent("player_team", OnPlayerTeam, nil),
ListenToGameEvent("round_prestart", OnPreStart, nil),
}

0 comments on commit 28ecbb2

Please sign in to comment.