UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

How to remove grenades at start?

broken avatar :(
Created 9 years ago
by whippytrout
0 Members and 1 Guest are viewing this topic.
1,003 views
broken avatar :(
×
broken avatar :(
Location: usgeorgia
Date Registered: 24 April 2013
Last active: 8 months ago
Posts
560
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Mapper
×
whippytrout's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
whippytrout's Contact & Social LinksWhippyTroutWhippyTrout
Hey guys I've ran into an annoying problem. Usually you start a map and you have zero grenades until the round starts then you get two. Well I start off with four grenades then the round starts and I have six.
I edited my steilhandgrenade weaponfile then added the it to my mod/weapons/sp and included this in my mod.csv:
weapon,sp/stielhandgranate
 
No matter what I try I always start with four normal grenades then get my two custom grenades when I start round one.

If anyone can help me solve this annoying problem that would be awesome.

My zombiemode.gsc:
Code Snippet
Plaintext
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 );
}
}
}
}

My zombiemode_weapons.gsc looks like this:
Code Snippet
Plaintext
// 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 );

And my dlc3_code.gsc looks like this:
Code Snippet
Plaintext
// Grenade
include_weapon( "stielhandgranate" );

 
Loading ...