AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Code Snippets/Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=83)
-   -   [Info] Counter-Strike pvPrivateData offsets (https://forums.alliedmods.net/showthread.php?t=68113)

VEN 03-08-2008 15:49

[Info] Counter-Strike pvPrivateData offsets
 
Quote:

Originally Posted by Arkshine (Post 791658)
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!

Arkshine 03-08-2008 15:55

Re: [Info] Counter-Strike pvPrivateData offsets
 
Oh ! Thanks for your sharing ! :)

ConnorMcLeod 03-08-2008 15:56

Re: [Info] Counter-Strike pvPrivateData offsets
 
Yeah, thanks a lot.

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

510 - USES_SHIELD (1<<16)

VEN 03-08-2008 16:33

Re: [Info] Counter-Strike pvPrivateData offsets
 
Quote:

238 - groundspeed
Yeah i thought so as well but when shooting this value will be also changed.

ConnorMcLeod 03-08-2008 18:57

Re: [Info] Counter-Strike pvPrivateData offsets
 
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 :(

Styles 03-08-2008 21:59

Re: [Info] Counter-Strike pvPrivateData offsets
 
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

VEN 03-09-2008 05:33

Re: [Info] Counter-Strike pvPrivateData offsets
 
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))

Alka 03-09-2008 14:31

Re: [Info] Counter-Strike pvPrivateData offsets
 
Oh, cool!Alot of useful things...

VEN 03-15-2008 07:39

Re: [Info] Counter-Strike pvPrivateData offsets
 
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

Cheap_Suit 04-19-2008 03:56

Re: [Info] Counter-Strike pvPrivateData offsets
 
PHP Code:

219 bIsPrimaryFireAllowed (notedisallow in prePlayerPostThink

I need to block players from attacking. Does this also block clientside sounds and animations?


All times are GMT -4. The time now is 02:09.

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