[hlcoders] Finding the true center point of an entity

2003-09-27 Thread Sniper
Is it somehow possible to determine the exact center point of a brush based entity that has a brush based origin? The usual call to Center() is worthless. Center() returns pev-absmin + pev-absmax * 0.5. Absmin and absmax however are generated by using the model's origin... which would

Re: [hlcoders] Finding the true center point of an entity

2003-09-27 Thread Jason 'Ikkyo' Gripp
pev-origin will be the center of the brush based entity if it has an origin brush. That's the whole point of the origin brush. Ikkyo - Original Message - From: Sniper [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 27, 2003 10:04 AM Subject: [hlcoders] Finding the true

Re: [hlcoders] Finding the true center point of an entity

2003-09-27 Thread Sniper
PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 27, 2003 1:55 PM Subject: Re: [hlcoders] Finding the true center point of an entity pev-origin will be the center of the brush based entity if it has an origin brush. That's the whole point of the origin brush. Ikkyo - Original

RE: [hlcoders] Finding the true center point of an entity

2003-09-27 Thread Tony \omega\ Sergi
an origin brush. -omega http://www.frontline2.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sniper Sent: September 27, 2003 2:22 PM To: [EMAIL PROTECTED] Subject: Re: [hlcoders] Finding the true center point of an entity Exactly. I don't want the origin

Re: [hlcoders] Finding the true center point of an entity

2003-09-27 Thread Jason 'Ikkyo' Gripp
, September 27, 2003 11:21 AM Subject: Re: [hlcoders] Finding the true center point of an entity Exactly. I don't want the origin brush [origin] though. I thought I made that clear. The exact center point of a brush based entity is not necessarily identical to the entity's origin brush. If you

Re: [hlcoders] Finding the true center point of an entity

2003-09-27 Thread Sniper
are calculated WITH the model's origin. The origin brush. -Sniper - Original Message - From: Jason 'Ikkyo' Gripp [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 27, 2003 3:01 PM Subject: Re: [hlcoders] Finding the true center point of an entity I see what you want now, but I

Re: [hlcoders] Finding the true center point of an entity

2003-09-27 Thread Sniper
] Sent: Saturday, September 27, 2003 4:03 PM Subject: Re: [hlcoders] Finding the true center point of an entity Look at where pev-absmin and pev-absmax are calculated. // Initialize absmin absmax to the appropriate box void SetObjectCollisionBox( entvars_t *pev ) In the function, this happens

RE: [hlcoders] Finding the true center point of an entity

2003-09-27 Thread Tony \omega\ Sergi
] Subject: Re: [hlcoders] Finding the true center point of an entity Look at where pev-absmin and pev-absmax are calculated. // Initialize absmin absmax to the appropriate box void SetObjectCollisionBox( entvars_t *pev ) In the function, this happens: pev-absmin[i] = pev-origin[i] - max; pev

RE: [hlcoders] Finding the true center point of an entity

2003-09-27 Thread Tony \omega\ Sergi
That's not for brushes. -omega http://www.frontline2.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sniper Sent: September 27, 2003 4:03 PM To: [EMAIL PROTECTED] Subject: Re: [hlcoders] Finding the true center point of an entity Look at where pev

Re: [hlcoders] Finding the true center point of an entity

2003-09-27 Thread Jason 'Ikkyo' Gripp
the true center point of an entity That's not for brushes. -omega http://www.frontline2.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sniper Sent: September 27, 2003 4:03 PM To: [EMAIL PROTECTED] Subject: Re: [hlcoders] Finding the true center