Accessing Sub-Properties
Posted: Wed Apr 27, 2016 4:25 am
Code: Select all
CBasePlayer 65535 [33 properties]:
datatable baseclass (offset 0)
datatable pl (offset 2960) [1 properties]:
int deadflag (offset 4)
int m_afPhysicsFlags (offset 3132)
int m_hVehicle (offset 3136)
int m_hUseEntity (offset 3120)
int m_hGroundEntity (offset 348)
int m_iHealth (offset 532)
int m_lifeState (offset 557)
datatable m_iAmmo (offset 1840) [32 properties]:
int 000 (offset 0)
int 001 (offset 4)
int 002 (offset 8)
int 003 (offset 12)
i got this dump from a post by satoon http://forums.sourcepython.com/viewtopic.php?f=10&t=107 .
and am now wondering how to access the datatable "m_iAmmo" or any of its offsets from the server? in satoons post it says "Entity.DumpServerClasses", but could it be that the entire dump contains merely clientsideproperties, that the server received a copy from (@engine compile) but mostly doesnt even have access too now @runtime, in terms of changing data?
how do i get my "CBasePlayer" object from the server anyway? i dont think using a normal player object and "get_property" "m_iAmmo" is the right approach ..