Skip to content

Commit

Permalink
Set bots to use autoteam instead of random team
Browse files Browse the repository at this point in the history
  • Loading branch information
VickyFrenzy committed Sep 7, 2020
1 parent 320db65 commit 1385185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamemodes/supercookingpanic/gamemode/player/player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function GM:PlayerInitialSpawn(ply, transiton)
if not ply:IsBot() then
ply:SetTeam(TEAM_UNASSIGNED)
else
ply:SetTeam(math.random(1, #self.team_list))
self:AutoTeam(ply)
end

if not game.IsDedicated() and ply:IsListenServerHost() then
Expand Down

0 comments on commit 1385185

Please sign in to comment.