View Single Post
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 06-08-2014 , 19:44   Re: HitZones Manager ( 07/06/2014 )
Reply With Quote #11

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