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 starting grenades. [SOLVED]

broken avatar :(
Created 10 months ago
by Phil168912
0 Members and 1 Guest are viewing this topic.
209 views
broken avatar :(
×
broken avatar :(
Location: englandlondon
Date Registered: 16 November 2020
Last active: 4 days ago
Posts
47
Respect
Forum Rank
Legless Crawler
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Phil168912's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
hi i am trying to remove the starting grenades. i had a look at the loodout gsc file and ive removed the starting gun but i cant see how to remove the grenades.

only mention of grenades is for the player to be able to throw a grenade back.

SOLVED by TheRevenantSkull

in _zombiemode.gsc
```
award_grenades_for_survivors()
{
    players = get_players();

    for (i = 0; i < players.size; i++)
    {
        if (!players
.is_zombie)
       {
           if( !players
HasWeapon( "stielhandgranate" ) )
           {
               players
GiveWeapon( "stielhandgranate" );    
               players
SetWeaponAmmoClip( "stielhandgranate", 0 );
           }

           if ( players
GetFractionMaxAmmo( "stielhandgranate") < .25 )
           {
               players
SetWeaponAmmoClip( "stielhandgranate", 0 ); // [2 is default] i changed it to 0 so player(s) start without any grenades on person. You will also not get any for each new round.
           }
           else if (players
GetFractionMaxAmmo( "stielhandgranate") < .5 )
           {
               players
SetWeaponAmmoClip( "stielhandgranate", 3 );
           }
           else
           {
               players
SetWeaponAmmoClip( "stielhandgranate", 4 );
           }
       }
   }
}
```
**you will still get grenades with max ammo.**
Last Edit: January 03, 2021, 12:35:01 pm by Phil168912

 
Loading ...