
Posts
560
Respect
430Add +1
Forum Rank
Zombie Enslaver
Primary Group
Mapper
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!
![]() | Has released one or more maps to the UGX-Mods community. |
award_grenades_for_survivors()
{
players = get_players();
for (i = 0; i < players.size; i++)
{
if (!players[i].is_zombie)
{
if( !players[i] HasWeapon( "stielhandgranate" ) )
{
players[i] GiveWeapon( "stielhandgranate" );
players[i] SetWeaponAmmoClip( "stielhandgranate", 0 );
}
if ( players[i] GetFractionMaxAmmo( "stielhandgranate") < .25 )
{
players[i] SetWeaponAmmoClip( "stielhandgranate", 2 );
}
else if (players[i] GetFractionMaxAmmo( "stielhandgranate") < .5 )
{
players[i] SetWeaponAmmoClip( "stielhandgranate", 2 );
}
else
{
players[i] SetWeaponAmmoClip( "stielhandgranate", 2 );
}
}
}
}// Grenades
//add_zombie_weapon( "fraggrenade", &"ZOMBIE_WEAPON_FRAGGRENADE_250", 250, "" , 0 );
//add_zombie_weapon( "molotov", &"ZOMBIE_WEAPON_MOLOTOV_200", 200, "vox_crappy", 8 );
//add_zombie_weapon( "molotov_zombie", &"ZOMBIE_WEAPON_MOLOTOV_200", 200, "vox_crappy", 8 );
//add_zombie_weapon( "stick_grenade", &"ZOMBIE_WEAPON_STICKGRENADE_250", 250, "" , 0 );
add_zombie_weapon( "stielhandgranate", &"ZOMBIE_WEAPON_STIELHANDGRANATE_250", 250, "" , 0, 250 );
//add_zombie_weapon( "type97_frag", &"ZOMBIE_WEAPON_TYPE97FRAG_250", 250, "" , 0 );// Grenade
include_weapon( "stielhandgranate" );