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

[Amxmodx] CBasePlayer > m_flPainShock is missing from gamedata.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 10-15-2015 , 05:13   [Amxmodx] CBasePlayer > m_flPainShock is missing from gamedata.
Reply With Quote #1

Hi,
Where is m_flPainShock located? i can't find it.

#define m_flPainShock 108

Error:
Code:
L 10/15/2015 - 16:57:13: [FAKEMETA] Could not find class "CBasePlayer" and/or member "m_flPainShock" in gamedata
Amxmodx version: git4915.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-15-2015 , 05:27   Re: [Amxmodx] CBasePlayer > m_flPainShock is missing from gamedata.
Reply With Quote #2

https://github.com/alliedmodders/amx....txt#L122-L129

All offsets file have been generated from "pahole" output (linux tool which can generate class header from DWARF debug infos), so what you see in the gamedata files are the real name used by game. (Btw, since get/set_pdata_int takes a int-based offset, and gamedata hardcodes char-based offset, you could have found it easily: 108 * 4 = 432).
__________________

Last edited by Arkshine; 10-15-2015 at 05:31.
Arkshine is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 10-15-2015 , 05:45   Re: [Amxmodx] CBasePlayer > m_flPainShock is missing from gamedata.
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
https://github.com/alliedmodders/amx....txt#L122-L129

All offsets file have been generated from "pahole" output (linux tool which can generate class header from DWARF debug infos), so what you see in the gamedata files are the real name used by game. (Btw, since get/set_pdata_int takes a int-based offset, and gamedata hardcodes char-based offset, you could have found it easily: 108 * 4 = 432).
Oh sorry my bad, i thought m_flPainShock is the real name.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo 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 07:00.


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