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

[Info] Counter-Strike pvPrivateData offsets


Post New Thread Reply   
 
Thread Tools Display Modes
artist
Member
Join Date: Nov 2013
Old 09-15-2014 , 08:58   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #161

Is it possible to create a module that displays a table of all offsets?

Or is he just going to intercept registered in memory...

Simply nowhere to be found these offsets:

bool m_bMapHasBombTarget;
bool m_bMapHasBombZone;
bool m_bMapHasBuyZone;
bool m_bMapHasRescueZone;
bool m_bMapHasEscapeZone;

Last edited by artist; 09-15-2014 at 09:12.
artist is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-15-2014 , 09:22   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #162

Look here: https://forums.alliedmods.net/showth...=123078&page=1 ( note that there are full offsets, so you will need to use orpheu/do some math to be able to use them with [g/s]et_pdata_[int/float] )
__________________

Last edited by HamletEagle; 09-15-2014 at 09:23.
HamletEagle is offline
artist
Member
Join Date: Nov 2013
Old 09-15-2014 , 12:59   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #163

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 #164

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 #165

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 #166

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 #167

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 #168

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 06:50.


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