bot: add basic support to play as zombie bot

aim: check that we're actually hit the target in body checks
This commit is contained in:
jeefo 2023-05-08 00:44:14 +03:00
commit 3009b4f50a
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
8 changed files with 101 additions and 26 deletions

View file

@ -260,6 +260,7 @@ CR_EXPORT int GetEntityAPI (gamefuncs_t *table, int) {
// team changes, recounting the teams population, etc...
ctrl.assignAdminRights (ent, infobuffer);
bots.checkBotModel (ent, infobuffer);
if (game.is (GameFlags::Metamod)) {
RETURN_META (MRES_IGNORED);