Added amb30 - csstats_rankbots will stop bots from showing in /top15
This commit is contained in:
@ -58,7 +58,8 @@ struct CPlayer {
|
||||
void restartStats(bool all = true);
|
||||
inline bool IsBot(){
|
||||
const char* auth= (*g_engfuncs.pfnGetPlayerAuthId)(pEdict);
|
||||
return ( auth && !strcmp( auth , "BOT" ) );
|
||||
return ( (auth && !strcmp( auth , "BOT" )) || // AuthID of "BOT"
|
||||
(pEdict->v.flags & FL_FAKECLIENT)); // FL_FAKECLIENT flag set
|
||||
}
|
||||
inline bool IsAlive(){
|
||||
return ((pEdict->v.deadflag==DEAD_NO)&&(pEdict->v.health>0));
|
||||
|
Reference in New Issue
Block a user