Raised This Month: $51 Target: $400
 12% 

Entitiy properties


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shaman
Senior Member
Join Date: Dec 2006
Location: Istanbul, Turkey
Old 09-13-2007 , 07:04   Entitiy properties
Reply With Quote #1

Quote:
Originally Posted by BAILOPAN View Post
If it's "m_bDucked" then it's probably boolean...
How about the others?
Code:
m_b     -> bool:x         (m_bDucked)
m_i      -> integer:x      (m_iAmmo)
m_fl     -> float:x         (m_flSimulationTime )
m_f      -> ?               (m_fEffects)
m_       -> ?               (m_CollisionGroup)
m_clr    -> ?               (m_clrRender)
m_ang  -> ?               (m_angRotation)
m_us    -> ?               (m_usSolidFlags)
m_vec  -> float:x[3]    (m_vecOrigin)
m_n     -> ?               (m_nModelIndex)
m_h     -> ?               (m_hOwnerEntity)
Are there other types and how can I get them from an entity?
__________________

Last edited by Shaman; 09-13-2007 at 07:07.
Shaman is offline
Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman
BAILOPAN
Join Date: Jan 2004
Old 09-13-2007 , 07:26   Re: Entitiy properties
Reply With Quote #2

float (m_f/m_fl), vectors, angles, etc aren't set using GetEntData, there are separate properties.

sizeof(bool) == 1
sizeof(int) == 4

m_n usually means integer. m_us probably means "unsigned short" (sizeof(short) == 2) and would use GetEntData that size.

m_h usually means "CBaseHandle" and you must use GetEntDataEnt().

When in doubt, check the SDK.
__________________
egg
BAILOPAN 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 08:52.


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