Raised This Month: $ Target: $400
 0% 

[Info] Counter-Strike pvPrivateData offsets


Post New Thread Reply   
 
Thread Tools Display Modes
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 09-09-2009 , 12:20   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #101

env_explosion ( CEnvExplosion )

Code:
m_iMagnitude - 96
m_spriteScale - 97
__________________

Last edited by xPaw; 09-09-2009 at 13:05.
xPaw is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-09-2009 , 12:30   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #102

Quote:
Originally Posted by ot_207 View Post
I did that by hooking with Ham_Spawn or with FM_SetModel. Will try more...
If i remember well, nades are not already set @ spawn and at setmodel, if i remember well i tried to set dmgtime to gametime in those 2 forwards, result was nades explodes as flashbang nades for all kind of nades (see VEN's offset about nade types).
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-09-2009 , 12:44   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #103

so 97 is probably m_spriteScale
__________________
Arkshine is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 09-09-2009 , 12:54   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #104

Quote:
Originally Posted by Arkshine View Post
so 97 is probably m_spriteScale
Hm.. need to test, the result should be as this

PHP Code:
    float flSpriteScale;
    
flSpriteScale = ( m_iMagnitude 50) * 0.6;

    if ( 
flSpriteScale 10 )
    {
        
flSpriteScale 10;
    } 
EDIT: Ok tested, yes its 97.
__________________

Last edited by xPaw; 09-09-2009 at 13:05.
xPaw is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 09-13-2009 , 17:46   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #105

Ent speed is 58, 142?
__________________

Last edited by AntiBots; 09-13-2009 at 17:57.
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-13-2009 , 17:52   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #106

"Ent speed" ?
__________________
Arkshine is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 09-13-2009 , 17:58   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #107

Quote:
Originally Posted by Arkshine View Post
"Ent speed" ?
Max Speed From an Ent.
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-14-2009 , 01:05   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #108

pev_maxspeed ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 09-14-2009 , 12:43   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #109

Quote:
Originally Posted by ConnorMcLeod View Post
pev_maxspeed ?
Thanks, But I solved with an Array of Speed, Because I am want to get the speed from an ent. That Give X Weapon in Item deploy.

So I Get Weapon Number

Thanks.

I use v.maxpeed but no work. So I do:
PHP Code:
int Func_VM_Item_Deploy_Player(Hook *hookvoid *pthis)
{
    
int origret=0;
    
#if defined _WIN32
    
origret=reinterpret_cast<int (__fastcall*)(void*,int)>(hook->func)(pthis,0);
#elif defined __linux__
    
origret=reinterpret_cast<int (*)(void*)>(hook->func)(pthis);
#endif

    
static const char *WeaponRealNames[] = { """P228 Compact""Shield""Schmidt Scout""He Grenade""XM1014 M4""C4",
        
"Ingram MAC-10""Steyr AUG A1""Smoke Grenade""Dual Elite Berettas""FiveseveN""UMP 45""SG-550 Auto-Sniper",
        
"IMI Galil""Famas""USP .45 ACP Tactical""Glock 18C""AWP Magnum Sniper""MP5 Navy",
        
"M249 Para Machinegun""M3 Super 90""M4A1 Carbine""Schmidt TMP""G3SG1 Auto-Sniper""FlashBang",
        
"Desert Eagle .50 AE""SG-552 Commando""AK-47 Kalashnikov""Knife""ES P90" };
    static const 
int WeaponRealSpeed[30] = { 02500260250240250250240250250250250210240, \
        
240250250210250220230230250210250250235221250 };

#if defined _WIN32
    
int index PrivateToIndex( *( (void **)( (int *)PrivateToEdict(pthis)->pvPrivateData 41) ) );
    
int weapon = *((int *)PrivateToEdict(pthis)->pvPrivateData 43);
#elif defined __linux__
    
int index PrivateToIndex( *( (void **)( (int *)PrivateToEdict(pthis)->pvPrivateData 45) ) );
    
int weapon = *((int *)PrivateToEdict(pthis)->pvPrivateData 47);
#endif

    
if( !isValidPlayer1(index) || !isValidPlayer2(index) )
        return 
origret;
    
    
KzPlayer *temp getPlayerPointerI(index);

    if( !
temp->isAlive() )
        return 
origret;

    
KZUTIL_HudMessagetemp25500, -1.00.903.0KZ_HUD_CHANNEL"Current Weapon: %s | MaxSpeed: %d"WeaponRealNames[weapon], WeaponRealSpeed[weapon] );

    return 
origret;

Yes i use. temp->pEdict->v.maxspeed
__________________

Last edited by AntiBots; 09-14-2009 at 14:48.
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-15-2009 , 14:05   Re: [Info] Counter-Strike pvPrivateData offsets
Reply With Quote #110

We are offtopic, but correct forward to get weapons maxspeed is :

Code:
	/**
	 * Description:		Gets the maximum speed for whenever a player has the item deployed.
	 * Forward params:	function(this);
	 * Return type:		Float, byrefed in execute.
	 * Execute params:	ExecuteHam(Ham_CS_Item_GetMaxSpeed, this, Float:output);
	 */
	Ham_CS_Item_GetMaxSpeed,
__________________
- 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 01:40.


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