View Single Post
G-Dog
Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
Old 01-08-2011 , 16:59   Re: Hero: Deva Path (Exploited/Fr33m@n)
Reply With Quote #6

minor optimization: instead of duplicating
PHP Code:
        user_slap(victimdamage)
        
user_slap(victim0)
        
#if defined USE_FOUR_SLAPS             
        
user_slap(victim0)
        
user_slap(victim0)
        
#endif
        
if ( cooldown 0.0 sh_set_cooldown(attackercooldown)
        
sh_chat_message(victimgHeroID"You repelled an enemy!"
either move that to a function and call that function in the 2 spots or combine the 2 if statements
__________________
If at first you don't succeed, then skydiving isn't for you.
G-Dog is offline
Send a message via AIM to G-Dog