vasyyshakov / zombiereloaded

Automatically exported from code.google.com/p/zombiereloaded
0 stars 0 forks source link

zr-dev: Invalid team index when switching team. #242

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When infecting, the following message is displayed in the server console:
CCSPlayer::SwitchTeam( 0 ) - invalid team index.

See teammanager.zrc.inc:ZRCTM_OnClientInfect (and ZRCTM_OnClientHuman)

It's using TLib_GetGameTeamIndex to get a team index that's never initialized 
(0). Probably because the team manager is still a work in progress.

How to fix:
Create cvars for setting teams (zrc_team_humans, zrc_team_zombies). Valid 
values are (depending on game): ct, t, red and blue. In the ZRC team manager 
parse these and set virtual teams.

Original issue reported on code.google.com by richard.helgeby@gmail.com on 9 Dec 2010 at 10:22

GoogleCodeExporter commented 8 years ago
Fixed in zr-dev:794:9caa0fbbdffd.

Original comment by richard.helgeby@gmail.com on 9 Dec 2010 at 7:28