I have found that not all entities work in the same way, much like you say the entity collision origin doesn't quite seem right all the time. But for 'box' like entities e.g. the bomb_zone entity, the line
Quote:
pEdict->GetCollideable()->WorldSpaceSurroundingBounds(&vMins, &vMaxs);
|
Works well.
If it returns vMins==vMaxs then the ->GetCollisionOrigin() is normally correct.
As to traking an entity, I don't know, especailly for 'created' entities. For map entities I just keep track of them in the list passed here, which seems to work so far;
Quote:
void CSCBotPlugin::ServerActivate( edict_t *pEdictList, int edictCount, int clientMax )
|