Thread: entity origin?
View Single Post
Re: entity origin?
Old
  (#3)
SteveC
Member
 
Status: Offline
Posts: 37
Join Date: Jan 2005
Location: UK
Default Re: entity origin? - 24-01-2005

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 )
  
Reply With Quote