Raised This Month: $32 Target: $400
 8% 

[Info] Counter-Strike pvPrivateData offsets


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
VEN
Veteran Member
Join Date: Jan 2005
Old 03-08-2008 , 15:49   [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #1

Quote:
Originally Posted by Arkshine View Post
Alright. Here we go.

The current CS Class List attached to the Scripting section.

I know it's quite ugly the page name in the category page but I had to do that since there are already some pages for Source. If someome knows how to use piped link in this case, tell me.

As notes, I've not finished. There are few classes to add yet and others to complete like CBasePlayer.

I post here to know if you have some comments, suggestions or others while I'm still working on it.


EDIT : New links, will explain more anothe day.
http://forums.alliedmods.net/showthr...658#post791658

Thanks to all contributors!

Last edited by Emp`; 09-11-2011 at 23:59.
VEN is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-08-2008 , 15:55   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #2

Oh ! Thanks for your sharing !
__________________
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-08-2008 , 15:56   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #3

Yeah, thanks a lot.

113 - alive player
238 - ( groundspeed ) -see next post

510 - USES_SHIELD (1<<16)
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 03-08-2008 at 18:58.
ConnorMcLeod is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-08-2008 , 16:33   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #4

Quote:
238 - groundspeed
Yeah i thought so as well but when shooting this value will be also changed.
VEN is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-08-2008 , 18:57   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #5

What to do with cbase values ?
I've already found some of those you provided in first post (368-375) without being able to "convert" values
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 03-08-2008 , 21:59   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #6

ahaha dude scripting is going to be all about Data offsets next.. It was FM now its going even more hardcore...

But nice ven +karma
Styles is offline
Send a message via AIM to Styles
VEN
Veteran Member
Join Date: Jan 2005
Old 03-09-2008 , 05:33   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #7

Quote:
What to do with cbase values ?
Use [g|s]et_pdata_cbase[_safe] from HS module.

Example #1:
Code:
new ent = get_pdata_cbase(id, 375) if (pev_valid(ent) && get_pdata_int(ent, 43) == CSW_KNIFE)         engclient_cmd(id, "lastinv")

Example #2:
Code:
if (get_pdata_cbase(ent, 375) == get_pdata_cbase(ent, 372))         set_pdata_cbase(ent, 375, get_pdata_cbase(ent, 370))

Last edited by VEN; 03-09-2008 at 05:36.
VEN is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 03-09-2008 , 14:31   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #8

Oh, cool!Alot of useful things...
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-15-2008 , 07:39   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #9

Updated "weapon_*" section: renamed iAmmoType into m_iPrimaryAmmoType, added m_pPlayer and m_fInReload.

You can review the use of m_flNextAttack, m_pPlayer and m_fInReload here: http://forums.alliedmods.net/showpos...8&postcount=24

Last edited by VEN; 03-15-2008 at 13:40.
VEN is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 04-19-2008 , 03:56   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #10

PHP Code:
219 bIsPrimaryFireAllowed (notedisallow in prePlayerPostThink
I need to block players from attacking. Does this also block clientside sounds and animations?
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit 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 18:29.


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