This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[Info] Counter-Strike pvPrivateData offsets


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
artist
Member
Join Date: Nov 2013
Old 09-15-2014 , 12:59   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #1

Ok, thank you )
artist is offline
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 01-19-2015 , 18:46   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #2

https://github.com/Arkshine/CSSDK/bl.../dlls/player.h

How can i "transform" offset numbers from here to an amxmodx working version ?

Current list from connor have outdated offset, so i'm asking.
Fr33m@n is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-19-2015 , 19:42   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #3

These are linux full offsets.

To get windows offset, depending the natives/stocks you're using:

- If it says it uses full offset or offset is char-based, then you just need to care about extra offset: "windows full offset = linux full offset - extra_full_offset". extra_full_offset is either 20 (aka 5 * 4) if related to player, or 16 (aka 4 * 4) if related to weapon. So yes the usual extra offset * 4. E.g: "random_seed" is 404. Windows full offset = 404 - 20 = 384.

- If it says nothing, it's probably int-based, so you need to do: "windows offset = (linux full offset - extra_full_offset) / 4". E.g: "random_seed" is 404. Windows offset = (404 - 20) / 4 = 96.


If you retrieve value where the data type are for example bool, short, etc (so not based on 4 bytes), to avoid to play with flags (because conversion gives you a floating point number), use the full offset with the connor's stock or 1.8.3 new natives.
__________________

Last edited by Arkshine; 07-21-2016 at 17:13.
Arkshine is offline
Zer0_CooL
Junior Member
Join Date: Jul 2012
Old 02-25-2016 , 23:29   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #4

Please, any one show example how to use m_fIsDeployed_AK47 offset ?
Zer0_CooL is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 02-26-2016 , 18:00   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #5

Quote:
Originally Posted by Zer0_CooL View Post
Please, any one show example how to use m_fIsDeployed_AK47 offset ?
Tell first what are you trying to do. There can be a better solution for it.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Zer0_CooL
Junior Member
Join Date: Jul 2012
Old 02-26-2016 , 23:21   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #6

I just want to know, how to use this offset.

PHP Code:
stock some_function(iPlayer)
{
    new 
iWeapon fm_get_user_weapon_entity(iPlayer);
    
    
// isAk47Deployed - always 0. Why?
    
new isAk47Deployed get_pdata_int(iWeaponm_fIsDeployed_AK47XO_CBASEPLAYERWEAPON);

Zer0_CooL 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 22:24.


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