Raised This Month: $ Target: $400
 0% 

[req]how to limit the number of napalm per round?


Post New Thread Reply   
 
Thread Tools Display Modes
takkinyuen
Junior Member
Join Date: Jul 2009
Old 08-13-2010 , 21:13   Re: [req]how to limit the number of napalm per round?
Reply With Quote #11

Quote:
Originally Posted by Shaw View Post
Hey I was wondering if any of you know where it is to set the damage caused by the Infection nade. For example in our server the infection nade causes a user to lose 300 armor before actually infecting them. I was wondering if you could help me find where that is defined as I have been unable to locate it.
i can help you

find
PHP Code:
        // Infected victim's sound
        
ArrayGetString(grenade_infect_playerrandom_num(0ArraySize(grenade_infect_player) - 1), soundcharsmax(sound))
        
emit_sound(victimCHAN_VOICEsound1.0ATTN_NORM0PITCH_NORM)
        
        
// Turn into zombie
        
zombieme(victimattacker011
change to

PHP Code:
        // Infected victim's sound
        
ArrayGetString(grenade_infect_playerrandom_num(0ArraySize(grenade_infect_player) - 1), soundcharsmax(sound))
        
emit_sound(victimCHAN_VOICEsound1.0ATTN_NORM0PITCH_NORM)
        
        
// Turn into zombie
        // Does human armor need to be reduced before infecting?
        
if (get_pcvar_num(cvar_humanarmor))
        {
            
// Get victim armor
            
static Float:armor
            pev
(victimpev_armorvaluearmor)
        
            
// Block the attack if he has some
            
if (armor >= 160.0)
            {
                
emit_sound(victimCHAN_BODYsound_armorhit1.0ATTN_NORM0PITCH_NORM)
                
set_pev(victimpev_armorvaluefloatmax(0.0armor*0.1))
                
g_ammopacks[attacker]++
                
client_print(attackerprint_center,"ammo packs +1")
            }
            else
            {
                
zombieme(victimattacker011)
            }
        } 
takkinyuen 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 12:26.


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