Raised This Month: $66 Target: $400
 16% 

[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
Old 10-15-2015 , 06: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.
__________________
Hi, 7 years ago i run nosteam servers and i support nosteam community. So please ban me. Thank you legitmodders.
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-15-2015 , 06: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 06:31.
Arkshine is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Old 10-15-2015 , 06: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.
__________________
Hi, 7 years ago i run nosteam servers and i support nosteam community. So please ban me. Thank you legitmodders.
yokomo is offline
Reply


Thread Tools
Display Modes

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 20:18.


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