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

[Info] Counter-Strike pvPrivateData offsets


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-05-2009 , 15:57   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #41

Quote:
Originally Posted by vittu View Post
It's nice that you guys are all doing this, I as well as others do appreciate it...
I love their work, also.
I would try to, but I don't know what KeyValues to set and check for when testing certain entities.

EDIT:

Quote:
Originally Posted by VEN View Post
The offsets/values in that post are quite specialized and empirical. I can't guarantee that 96/114 grenade offsets holds an actual grenade type. It may be some different grenade data that game mod is use for different purposes. The fact that we can differentiate grenades with that method doesn't necessarily mean that we doing a direct grenade type check.
What would be the most reliable way to get a grenade type?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 02-05-2009 at 16:57.
Exolent[jNr] is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 02-05-2009 , 16:57   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #42

Try checking out mapping sites for keyvalues.
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-05-2009 , 19:49   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #43

For an entities list ; see : http://twhl.co.za/wiki.php?cat=1 ( Valve ERC Collective seems dead )
Arkshine is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 02-05-2009 , 21:41   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #44

C4
Code:
105 - beep interval
110 - beep type
__________________
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
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-05-2009 , 23:05   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #45

jim_yang: Is the interval a float or an int? Do you know what it's measured in? Also, what exactly is the beep type?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 02-05-2009 , 23:39   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #46

Quote:
Originally Posted by XxAvalanchexX View Post
jim_yang: Is the interval a float or an int? Do you know what it's measured in? Also, what exactly is the beep type?
the interval is float
means the interval between c4 two beep sound
beep type is int, descripe the beep's interval length
sorry for my English
Code:
type - interval - soundname
0 - 1.5 - "weapons/c4_beep1.wav"
1 - 1.0 - "weapons/c4_beep2.wav"
2 - 0.8 - "weapons/c4_beep3.wav"
3 - 0.5 - "weapons/c4_beep4.wav"
4 - 0.2 - "weapons/c4_beep5.wav"
__________________
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
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-05-2009 , 23:56   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #47

Cool, thanks!

And your English is very good. I always feel bad for anyone that has to learn it as a second language. Hang in there! ;)
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-06-2009 , 06:52   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #48

About C4 , but some parts I'm not sure :

Code:
99  - m_flDefuseCountDown ?
100 - m_flC4Blow
101 - m_fAttenu
102 - m_flNextBeep
103 - m_flNextFreq
104 - m_sBeepName
105 - m_flNextFreqInterval
106 - m_flNextBlink
107 - m_flDefuseCountDown ?
108 - m_bJustBlew
109 - ?
110 - ? ( found like jim_yang but don't know the name )
Others names related to the class CGrenade :

m_bIsC4
m_bStartDefuse
m_pentCurBombTarget
m_SGSmoke
m_bLightSmoke
m_usEvent

Last edited by Arkshine; 02-06-2009 at 06:59.
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-07-2009 , 09:46   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #49

"player"

Code:
m_rgItems 
254 - item_antidote
255 - item_security

258  - m_fNextSuicideTime
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 02-14-2009 at 08:44.
ConnorMcLeod is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-11-2009 , 00:57   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #50

Do you guys think it is safe to call get_pdata_int(victim, m_bitsDamageType) in a HamKilled forward. I am trying to detect how the victim was killed (DMG_BULLET, DMG_GRENADE, or DMG_SLASH). My overall objective is to block if the victim is killed by any means other than a primary\secondary weapon. In my tests, it does work but I want it to be 100% stable. If this isn't a good way to go I can just make a global variable and save the bitDamage from my HamTakeDamage forward and reset it on each roundstart. I would prefer the below method since my HamTakeDamage forward isn't enabled at the time I need the dmg info.

Using the below I get the following result, it works although not 100% accurate.

Kill with knife - returns dmg bullet
Kill with any gun - returns dmg bullet
Kill with grenade - returns dmg grenade

PHP Code:
public fw_HamKilled(victimkillershouldgib)
{
    if( !( 
<= killer <= g_MaxPlayers ) )
        return 
HAM_IGNORED

    
new get_pdata_int(victim m_bitsDamageType)
    
    if( 
DMG_BULLET )
        
client_printprint_chat"dmg = bullet" )
    
    if( 
DMG_GRENADE)
        
client_printprint_chat"dmg = grenade" )
        
    if( 
DMG_SLASH )
        
client_printprint_chat"dmg = knife" 
__________________
Bugsy 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 11:56.


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