Raised This Month: $ Target: $400
 0% 

Useful Stock(S) [Any Game]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 12-06-2010 , 17:35   Re: Useful Stock(S) [Any Game]
Reply With Quote #2

PHP Code:
stock SetEntitySpeed(ClientFloat:fSpeed)
{

    
//Set Prop Data:
    
SetEntPropFloat(ClientProp_Data"m_flLaggedMovementValue"fSpeed);    
}

stock SetSpeed(ClientFloat:Speed)
{

    
//Declare:
    
new SpeedOffset = -1;

    
//Initialize:
    
SpeedOffset FindSendPropOffs("CHL2MP_Player""m_flMaxspeed");

    
//Set Speed:
    
if(SpeedOffset 0SetEntData(ClientSpeedOffsetSpeed4true);

Some of these are really mis-named. SetEntityTimeScale and SetEntityMaxSpeed would be much better.

Also the second might work better if you get the clients netclass instead of using a specific one.
AtomicStryker is offline
 



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:40.


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