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

[Info] Counter-Strike pvPrivateData offsets


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-07-2013 , 02:49   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #151

CC4 :

Code:
bool    m_bStartedArming;       /*   336     1 */
bool    m_bBombPlacedAnimation; /*   337     1 */
float   m_fArmedTime;           /*   340     4 */
bool    m_bHasShield;           /*   344     1 */
In comment, full offset linux.
__________________

Last edited by Arkshine; 06-07-2013 at 02:50.
Arkshine is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 06-08-2013 , 04:00   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #152

don't know any more about the offsets,
but I test the following code and it seem work with my server

Code:
Console initialized.
Protocol version 48
Exe version 1.1.2.7 (cstrike)
Exe build: 14:59:51 Feb 13 2013 (5956)
STEAM Auth Server
Server IP address 192.168.1.100:27015
   Metamod version 1.20-am  Copyright (c) 2001-2006 Will Day <[email protected]>
   Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'.
   This is free software, and you are welcome to redistribute it
   under certain conditions; type `meta gpl' for details.
 
   AMX Mod X version 1.8.2 Copyright (c) 2004-2006 AMX Mod X Development Team
   AMX Mod X comes with ABSOLUTELY NO WARRANTY; for details type `amxx gpl'.
   This is free software and you are welcome to redistribute it under
   certain conditions; type 'amxx gpl' for details.
client is steam.

orhpeu 2.5.1

Code:
#include <amxmodx> #include <orpheu> #include <hamsandwich> #include <fakemeta> #define PLUGIN_NAME "NewPlugin" #define PLUGIN_VERSION  "0.1" #define PLUGIN_AUTHOR   "LittleKu-Lv" const m_bStartedArming = 78; const m_fArmedTime = 79; const m_bOnBombZone = 235; const m_pPlayer = 41; new g_iBomb; public plugin_init() {     register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);         RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_c4", "fwBombPlantingPre", false); } public fwBombPlantingPre(const bomb) {     if (!get_pdata_bool(bomb, m_bStartedArming, 4))     {         new id = get_pdata_cbase(bomb, m_pPlayer, 4);         if ( (pev(id, pev_flags) & FL_ONGROUND)         && ( get_pdata_int(id, m_bOnBombZone, 5) & (1<<1) ) )         {             g_iBomb = bomb;             OrpheuRegisterHook(OrpheuGetFunction("SetProgressBarTime", "CBasePlayer"), "OnSetProgressBarTime");         }     } } stock bool:get_pdata_bool(ent, charbased_offset, intbase_linuxdiff = 5) {     return !!( get_pdata_int(ent, charbased_offset / 4, intbase_linuxdiff) & (0xFF<<((charbased_offset % 4) * 8)) ) } public OrpheuHookReturn:OnSetProgressBarTime(id, iTime) {     set_pdata_float(g_iBomb, m_fArmedTime, get_gametime() + 12, 4);     OrpheuSetParam(2, 12);     return OrpheuIgnored; }

and I use
Code:
const m_fArmedTime = 79;
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-08-2013 , 04:35   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #153

Not sure why you say it's working, but offset is for sure wrong.
__________________
Arkshine is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 11-27-2013 , 05:07   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #154

Can those natives be added to the official release of next amxx version?

Quote:
[g/s]set_pdata_[char/bool/short/vector]
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-27-2013 , 06:15   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #155

It has been already added.

I suggest you take a look to the changelog since 1.8.2 : http://hg.alliedmods.net/amxmodx-central/shortlog
__________________
Arkshine is offline
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 01-01-2014 , 08:57   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #156

m_bStartedArming 312, m_bBombPlacedAnimation 313, m_flArmedTime 79 seems not working for win 6027 build.
I tried to find the new offset, and what I found(by guess) is m_bStartedArming 320, m_bBombPlacedAnimation 321, m_flArmedTime 81, I've tested it and working fine (so far), but is that the really correct offset?

I was wondering how did they find the offsets? any tools or something else?
__________________
youtube:
@holla16

Last edited by 11922911; 01-01-2014 at 09:28.
11922911 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-01-2014 , 09:36   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #157

Yes, there are 2 new pdatas at the end of CBasePlayerWeapon

m_flPrevPrimaryAttack 78
m_flLastFireTime 79

So all specific weapons pdata are displaced from 2 (2*4 for bools)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 01-01-2014 , 10:43   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #158

Quote:
Originally Posted by ConnorMcLeod View Post
Yes, there are 2 new pdatas at the end of CBasePlayerWeapon

m_flPrevPrimaryAttack 78
m_flLastFireTime 79

So all specific weapons pdata are displaced from 2 (2*4 for bools)
Oh! Thank you for telling me that!
Now I see when some weapons pdata are not working, I can try with what you said.
__________________
youtube:
@holla16
11922911 is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 01-01-2014 , 11:32   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #159

Anyone knows m_flDisplayHistory offset value? I tried to find it on list in page 14, but either its missing or named differently
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-01-2014 , 14:24   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #160

const m_flDisplayHistory = 204;
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 08:10.


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