Hi,
so i took a look on this topic (
https://forums.alliedmods.net/showthread.php?t=191171) and the wiki entry regarding vtable offsets. Thing is now i found offsets which i need but i think those offsets are to low to be A) correct and B) working. Game im using is ZPS. I tried using GetMaxSpeed and GetMaxHealth but both crash the server. MaxHealth returns some number which is not the health of the survivor. (100 by default) maybe someone can take me to the correct offsets or atleast tell me where did i do what wrong.
Using m_iMaxHealth and Speed does not work for zps
VTable:
PHP Code:
// Auto reconstructed from vtable block @ 0x01217700
// from "server_i486.so", by ida_vtables.idc
0 CHuman::SetParent(CHL2MP_Player *)
1 CHuman::ReturnTeamID(void)
2 CHuman::Print(void)
3 CHuman::GetClassSpawnPoint(void)
4 CHuman::WaterBreathingCheck(void)
5 CHuman::GetPlayerMaxHealth(void)
6 CHuman::GetPlayerMaxSpeed(void)
7 CHuman::GetPlayerWeight(void)
8 CHuman::GetPlayerHeadHealth(void)
9 CHuman::TakeHeadDamage(float)
10 CHuman::RegenHead(float)
11 CHuman::GiveClassDefaultGear(void)
12 CHuman::CanEquipGear(CBaseCombatWeapon *)
13 CHuman::CanGetItems(void)
14 CHuman::CanUseAmmo(int)
15 CHuman::CanUseItem(int)
16 CHuman::GetPlayerSpeed(void)
17 CHuman::AddWeight(float)
18 CHuman::RemoveWeight(float)
19 CHuman::DropAllWeight(void)
20 CClassManager::AddHandicap(float)
21 CClassManager::RemoveHandicap(void)
22 CClassManager::SetJumping(bool)
23 CClassManager::SetShot(bool)
24 CHuman::AddFatigue(float)
25 CHuman::RemoveFatigue(float)
26 CHuman::StoreFatigue(bool)
27 CHuman::IsFatigueStored(void)
28 CHuman::ProcessDeath(void)