So I’m working on some auto detection for my bot for CTF flag type goals such as the radar parts in the radar map. I’ve noticed the BotCarryingFlag function, as well as the BG_CanItemBeGrabbed function. These work alright, but BG_CanItemBeGrabbed fails when the parts are dropped somewhere. I’ve looked at BotFlagAtBase, and tried to look at the ent->flags & FL_DROPPED_ITEM but it doesn’t seem to be set. Anyone know of some other variable in the entity that ties a flag to its carrier? Or one that ties a carried to a specific flag?
The best I can find is the poweups flags like if(pEnt->client->ps.powerups[PW_REDFLAG] || pEnt->client->ps.powerups[PW_BLUEFLAG]) , but that gives no info as to what flag the guy is carrying.
Anyone got any ideas?