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

HitZones Manager v0.0.4 ( 09/06/2014 )


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 06-08-2014 , 19:44   Re: HitZones Manager ( 07/06/2014 )
Reply With Quote #12

Quote:
Originally Posted by Backstabnoob View Post
PHP Code:
new Float:flDamage;
            
if( 
get_user_teamindex ) == 
{
    
flDamage = ( Dmg g_iCvarsTR ][ iHitGroup ] / 100 );
}
else if( 
get_user_teamindex ) == )
{
    
flDamage = ( Dmg g_iCvarsCT ][ iHitGroup ] / 100 );
}                        
SetHamParamFloat4flDamage  ); 
=>
PHP Code:
SetHamParamFloat4Dmg g_iCvarsget_user_teamindex ) == TR CT ][ iHitGroup ] / 100 ); 

You don't need to cache the cvars, but I'll leave that up to you as it doesn't matter at all here.
Thanks you know I never thought of that lol. Will add to update.

EDIT:

might keep the cache as im going to add TK, and Self damage % to hitzones in next update and also a cfg file for cvars
__________________

Last edited by Blizzard_87; 06-08-2014 at 20:08.
Blizzard_87 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 20:39.


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