Garry's Mod

Garry's Mod

79 ratings
MW-Like Grenade Counter
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun
File Size
Posted
Updated
197.459 KB
2 Jun, 2024 @ 8:52am
6 Mar @ 12:09am
2 Change Notes ( view )

Subscribe to download
MW-Like Grenade Counter

Description
Adds a grenade counter to your screen (meant to be a companion addon to MW Stim [VManip], but it's not required). You can also customize grenade icon to your preference.

Console commands:
"mw_grenade_empty" (0/1) - Allow displaying of the grenade counter if you have no grenades left;
"mw_grenade_hud" (0/1) - Toggle displaying of the grenade counter;
"mw_grenade_style" (1-4) - Grenade counter style: 1 - HL2 grenade (angled to the right), 2 - HL2 grenade (angled to the left), 3 - M67 grenade, 4 - F1 grenade;
"mw_grenade_text_alignment" (0-4) - Grenade counter text alignment: 0 - original spacing; 1 - right; 2 - left; 3 - up; 4 - down;
"mw_grenade_x_pos" (-100-10000) - Grenade counter horizontal position;
"mw_grenade_y_pos" (-100-10000) - Grenade counter vertical position.

Credits:
MrSlonik - MW Stim [VManip] (code).
25 Comments
Lombaxtard  [author] 14 May @ 7:31am 
Steam\controller_base\images\api
also im curious, where did you get the button icons (the pngs)
oh, ok. I had an idea to make an overlay
Lombaxtard  [author] 13 May @ 2:04pm 
It's a discontinued (for now) attempt of mine at making an extensive controller prompts system that would be independent of HUDs. It's very crude and is controlled by a bunch of convars, each element individually.

At some point I couldn't figure out what to do next and so it's stuck being a simple .png overlay tool with X/Y/Scale/Image convars for each of the 17 button slots and a ton of various controller prompts included. Mainly made it to use with aliases so there's little to no reactive checks in the code
how did you do the controller prompts?
Ori 11 May @ 8:50pm 
@Lombaxtard Thanks lad! Yes you did miss my "icons greyed out once empty" request. But no need to change now, take it easy, relax for a moment
[SHORK] SKII 11 May @ 6:03pm 
noice
Lombaxtard  [author] 11 May @ 5:29pm 
Oh and this
Lombaxtard  [author] 11 May @ 5:27pm