Raised This Month: $32 Target: $400
 8% 

Get Height of Entity ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Razmo51
Senior Member
Join Date: Aug 2011
Location: Event "player_death
Old 03-08-2013 , 12:43   Get Height of Entity ?
Reply With Quote #1

all is in the title; I want to get the height of an entity ...

I searched in EntControl or Om_PropSPawn, but the height is included in the KV file.

Can anyone help me ?

thanks in advance
__________________
Sorry for my bad English, I'm Belgian
Razmo51 is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 03-08-2013 , 14:00   Re: Get Height of Entity ?
Reply With Quote #2

m_vecMins m_vecMaxs (Prop_Send) contain the prop Length/Width/Height. If memory serves me correctly, vecMins will be negative in the [2] index if the prop is underneath the spawning plane.
__________________

Last edited by thetwistedpanda; 03-08-2013 at 14:02.
thetwistedpanda is offline
blodia
Veteran Member
Join Date: Sep 2009
Location: UK
Old 03-08-2013 , 14:11   Re: Get Height of Entity ?
Reply With Quote #3

i wouldn't rely too much on m_vecMins/m_vecMaxs as they are just the coordinates for the opposite corners of the entities bounding box, they're relative to the entities world coordinates. the bounding box doesn't have to be the same size as the model or even be anywhere near the model, you can make it whatever size you want and stick it where you want.
blodia is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 03-08-2013 , 14:13   Re: Get Height of Entity ?
Reply With Quote #4

But short of manipulating the bounding box or a bugged prop, it's enough to use without having to hardcode.
__________________
thetwistedpanda is offline
Razmo51
Senior Member
Join Date: Aug 2011
Location: Event "player_death
Old 03-08-2013 , 19:01   Re: Get Height of Entity ?
Reply With Quote #5

thanks for answers.
__________________
Sorry for my bad English, I'm Belgian
Razmo51 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode