0bot: allow bots to check breakable team (fix #693)

This commit is contained in:
jeefo 2025-06-19 00:21:34 +03:00
commit 1394d08a28
No known key found for this signature in database
GPG key ID: D696786B81B667C8
3 changed files with 21 additions and 2 deletions

View file

@ -366,7 +366,12 @@ public:
return util.getClient (indexOfPlayer (ent)).team2;
}
// sets the precache to uninitialize
// get real gamedll team (matches gamedll indices)
int getGameTeam (edict_t *ent) const {
return getRealTeam (ent) + 1;
}
// sets the precache to uninitialized
void setUnprecached () {
m_precached = false;
}