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

[Info] Counter-Strike pvPrivateData offsets


Post New Thread Reply   
 
Thread Tools Display Modes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-02-2009 , 14:41   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #31

ambient_sound

Code:
34 - m_flAttenuation
35 - m_dpv.preset
36 - m_dpv.pitchrun
37 - m_dpv.pitchstart
38 - m_dpv.spinup
39 - m_dpv.spindown
40 - m_dpv.volrun
41 - m_dpv.volstart
42 - m_dpv.fadein
43 - m_dpv.fadeout
44 - m_dpv.lfotype
45 - m_dpv.lforate
46 - m_dpv.lfomodpitch
47 - m_dpv.lfomodvol
48 - m_dpv.cspinup
49 - m_dpv.cspincount
50 - m_dpv.pitch
51 - m_dpv.spinupsav
52 - m_dpv.spindownsav
53 - m_dpv.pitchfrac
54 - m_dpv.vol
55 - m_dpv.fadeinsav
56 - m_dpv.fadeoutsav
57 - m_dpv.volfrac
58 - m_dpv.lfofrac
59 - m_dpv.lfomult
???
m_fActive
m_fLooping
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 02-02-2009 , 23:32   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #32

Quote:
Originally Posted by ConnorMcLeod View Post
ambient_sound
???
m_fActive - 60
m_fLooping - 61
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 02-03-2009 , 01:14   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #33

How do you guys find these offsets? If you have anything on grenades, let me know.
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-03-2009 , 07:57   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #34

If it can hepls you, that's how i found ambien_generic offsets values :

Create a ambient_generic entity with specifi values that will be easy to identify later.
Then, dump all offsets values after Spawn forward.
At last, compare the dumped file with values i've set, look at HLSDK (dlls/sound.cpp) for offsets names.
PHP Code:
/*    Copyright © 2009, ConnorMcLeod

    Ambien Generic Test is free software;
    you can redistribute it and/or modify it under the terms of the
    GNU General Public License as published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Ambien Generic Test; if not, write to the
    Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.
*/

#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define PLUGIN "Ambien Generic Test"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.1"

public plugin_precache()
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    
RegisterHam(Ham_Spawn"ambien_generic""CAmbientGeneric_Spawn")

    
create_ambient()

}

stock create_ambient()
{
    new 
iEnt

    iEnt 
engfuncEngFunc_CreateNamedEntityengfuncEngFunc_AllocString "ambient_generic" ) )

    
set_pev(iEntpev_message"ambience/lv_jubilee.wav")

    
    
SetKeyValue(iEnt"preset""0""ambient_generic")

    
SetKeyValue(iEnt"pitch""95""ambient_generic")
    
SetKeyValue(iEnt"pitchstart""91""ambient_generic")
    
SetKeyValue(iEnt"spinup""13""ambient_generic")
    
SetKeyValue(iEnt"spindown""17""ambient_generic")

    
SetKeyValue(iEnt"health""9""ambient_generic")    
    
SetKeyValue(iEnt"volstart""8""ambient_generic")
    
SetKeyValue(iEnt"fadein""24""ambient_generic")
    
SetKeyValue(iEnt"fadeout""26""ambient_generic")

    
SetKeyValue(iEnt"lfotype""3""ambient_generic")
    
SetKeyValue(iEnt"lforate""777""ambient_generic")

    
SetKeyValue(iEnt"lfomodpitch""71""ambient_generic")
    
SetKeyValue(iEnt"lfomodvol""69""ambient_generic")

    
SetKeyValue(iEnt"cspinup""4""ambient_generic")

    
SetKeyValue(iEnt"spawnflags""32""ambient_generic")



    
ExecuteHamB(Ham_SpawniEnt)
}

/*#define AMBIENT_SOUND_STATIC            0    // medium radius attenuation
#define AMBIENT_SOUND_EVERYWHERE        1
#define AMBIENT_SOUND_SMALLRADIUS        2
#define AMBIENT_SOUND_MEDIUMRADIUS        4
#define AMBIENT_SOUND_LARGERADIUS        8
#define AMBIENT_SOUND_START_SILENT        16
#define AMBIENT_SOUND_NOT_LOOPING        32*/

public CAmbientGeneric_SpawniEnt )
{
    
dumpiEnt )
}

dumpiEnt )
{
    static 
logfile[192], fp
    
if(logfile[0] == 0)
    {
        new 
basedir[64], date[16]
        
get_localinfo("amxx_basedir"basedircharsmax(basedir))
        
get_time("%m%d"datecharsmax(date))
        
formatex(logfilecharsmax(logfile), "%s/logs/CAmbientGeneric_%s.log"basedirdate)
    }

    
fp fopen(logfile"a")

    static 
Float:flTime flTime get_gametime()

    static 
szBuffer[64], iOffSetiCbaseFloat:flOffsetnszOffset[128]
    for(new 
i=0i<=1024i++)
    {
        
0
        iOffSet 
get_pdata_int(iEnt,i)
        
iCbase get_pdata_cbase_safe(iEnti)
        
flOffset get_pdata_float(iEnt,i)
        
get_pdata_string(iEntiszOffset12714)
        
        
+= formatex(szBuffer[n], charsmax(szBuffer)-n"^nEnt(%d) #%i: "iEnti)

        
        if( 
iCbase > -)
        {
            
+= formatex(szBuffer[n], charsmax(szBuffer)-n"Cbase<%d>"iCbase)
        }

        
+= formatex(szBuffer[n], charsmax(szBuffer)-n"Int<%d>"iOffSet)

        
+= formatex(szBuffer[n], charsmax(szBuffer)-n"Float<%f><%.3f>"flOffsetflTime)

        
+= formatex(szBuffer[n], charsmax(szBuffer)-n"<%s>"szOffset)

        
fprintf(fpszBuffer)
    }    
    
fclose(fp)
}

stock SetKeyValue(iEnt, const szKey[], const szValue[], const szClassName[])
{
    
set_kvd(0KV_ClassNameszClassName)
    
set_kvd(0KV_KeyNameszKey)
    
set_kvd(0KV_ValueszValue)
    
set_kvd(0KV_fHandled0)
    
dllfunc(DLLFunc_KeyValueiEnt0)

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 02-03-2009 , 23:11   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #35

Code:
CBaseDelay
    34 - m_flDelay
    35 - m_iszKillTarget
CBaseAnimating
    36 - m_flFrameRate
    37 - m_flGroundSpeed
    38 - m_flLastEventCheck
    39 - m_fSequenceFinished
    40 - m_fSequenceLoops
CBaseToggle
    41 - m_toggle_state
    42 - m_flActivateFinished
    43 - m_flMoveDistance
    44 - m_flWait
    45 - m_flLip
    46 - m_flTWidth
    47 - m_flTLength
    48 - m_vecPosition1.x
    49 - m_vecPosition1.y
    50 - m_vecPosition1.z
    51 - m_vecPosition2.x
    52 - m_vecPosition2.y
    53 - m_vecPosition2.z
    54 - m_vecAngle1.x
    55 - m_vecAngle1.y
    56 - m_vecAngle1.z
    57 - m_vecAngle2.x
    58 - m_vecAngle2.y
    59 - m_vecAngle2.z
    60 - m_cTriggersLeft
    61 - m_flHeight
    62 - m_hActivator
    64 - m_pfnCallWhenMoveDone
    65 - m_vecFinalDest.x
    66 - m_vecFinalDest.y
    67 - m_vecFinalDest.z
    68 - m_vecFinalAngle.x
    69 - m_vecFinalAngle.y
    70 - m_vecFinalAngle.z
    71 - m_bitsDamageInflict
    72 - m_sMaster
CBaseMonster
    73 - m_Activity
    74 - m_IdealActivity
    75 - m_LastHitGroup
    76 - m_bitsDamageType
    77 - m_rgbTimeBasedDamage[CDMG_TIMEBASED]
    79 - m_MonsterState
    80 - m_IdealMonsterState
    81 - m_afConditions
    82 - m_afMemory
    83 - m_flNextAttack
    84 - m_hEnemy
    86 - m_hTargetEnt
    88 - m_flFieldOfView
    89 - m_bloodColor
    90 - m_HackedGunPos.x
    91 - m_HackedGunPos.y
    92 - m_HackedGunPos.z
    93 - m_vecEnemyLKP.x
    94 - m_vecEnemyLKP.y
    95 - m_vecEnemyLKP.z
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>

Last edited by jim_yang; 02-19-2009 at 01:48.
jim_yang is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-04-2009 , 04:50   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #36

I was about to post some of them but you're the fastest. Good job.
Arkshine is offline
Old 02-05-2009, 04:03
jim_yang
This message has been deleted by jim_yang.
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-05-2009 , 12:46   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #37

Quote:
Originally Posted by jim_yang View Post
armoury_entity
Code:
34 - iItem
This is already implemented in cstrike module ;)

35 - iCount (number of items)
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 02-05-2009 at 13:00.
ConnorMcLeod is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 02-05-2009 , 13:54   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #38

It's nice that you guys are all doing this, I as well as others do appreciate it, but it's kinda scattered all about. Wouldn't be easier to collaborate your efforts in the amwiki? It'd be easier to look/search thru and easier to maintain.
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-05-2009 , 14:05   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #39

I've started to put all known offset together in a file ( excel ) and I can create a pdf ; but using the wiki would me convenient, indeed. Hope someone will start the page.
Arkshine is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-05-2009 , 14:49   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #40

PM me if you want a page created in the wiki for this. Just let me know where to create it and I will do it for you.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Reply


Thread Tools
Display Modes

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 19:15.


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