Thread: pb2.6mm + CZ
View Single Post
Re: pb2.6mm + CZ
Old
  (#3)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: pb2.6mm + CZ - 08-06-2004

no.. it's not those..
the problem is the team checking function in podbot checks for what skin they have..
and since it doesn't check for cz skins it cannot tell what team that player is..
[edit]
Code:
int UTIL_GetTeam (edict_t *pEntity)
{
   // return team number 0 through 3 based what MOD uses for team numbers

   char model_name[32];

   strncpy (model_name, (INFOKEY_VALUE (GET_INFOKEYBUFFER (pEntity), "model")), 32);

   if ((model_name[2] == 'b') // urBan
       || (model_name[2] == 'g') // gsG9, giGn
       || (model_name[2] == 's') // saS
       || (model_name[2] == 'p')) // viP
      return (TEAM_CS_COUNTER);

   return (TEAM_CS_TERRORIST); // teRror, leEt, guErilla, arCtic
}
[/edit]

Last edited by sPlOrYgOn; 08-06-2004 at 01:42..
  
Reply With Quote