Raised This Month: $87 Target: $400
 21% 

Anyone knows how painshock works actually ?


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-14-2017 , 12:13   Re: Anyone knows how painshock works actually ?
Reply With Quote #11

What do you mean by "to not have to define them in every plugin"?

Did not you see you have an API available to use the offset from gamedata? See https://github.com/alliedmodders/amx...emeta.inc#L560
__________________
Working on : CS Weapon Mod (72%) , MonsterAI (PAUSED),

Arkshine is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-14-2017 , 12:24   Re: Anyone knows how painshock works actually ?
Reply With Quote #12

Quote:
Originally Posted by Depresie View Post
I was thinking about an include file with them defined as stock constants, to not have to define them in every plugin
That's exactly what gamedata is for.
__________________

Last edited by HamletEagle; 10-14-2017 at 12:24.
HamletEagle is offline
Depresie
AlliedModders Donor
Join Date: Nov 2013
Old 10-14-2017 , 12:49   Re: Anyone knows how painshock works actually ?
Reply With Quote #13

No, i didn't know, that's great
I feel sorry for the guy who has to write the documentation for the new amxx with so many changes done lol
__________________

Last edited by Depresie; 10-14-2017 at 12:53.
Depresie is online now
[email protected]
Veteran Member
Join Date: May 2008
Location: France Marne
Old 10-18-2017 , 08:34   Re: Anyone knows how painshock works actually ?
Reply With Quote #14

With the new API, you don't have to bother with diffs, everything is well documented and so handy.

The main problem i found is when i read a custom plugin where someone wrote a crappy offset name, i have an hard time converting it to the new API form. I often need ConnorMcLeod offset list to guess it. And it's only for cs. With half-life, it's much more a pain in the ass.
Fr33m@n is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-18-2017 , 09:25   Re: Anyone knows how painshock works actually ?
Reply With Quote #15

It can't be helped, the data on GitHub is directly from a dump of the game binary. It uses the real name. But it's easy to figure out from the offset anyway.
__________________
Working on : CS Weapon Mod (72%) , MonsterAI (PAUSED),

Arkshine 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:45.


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