Garry's Mod

Garry's Mod

83 ratings
Grenade Detonation - Shootable HL2 Grenades
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Realism
File Size
Posted
Updated
40.542 KB
18 Jun, 2023 @ 4:04am
22 Jun @ 12:31am
18 Change Notes ( view )

Subscribe to download
Grenade Detonation - Shootable HL2 Grenades

Description
Because grenades just aren't explody enough

Another addon made out of boredom and pointless interest.

What does it do?

Grenade Detonation adds several features, the most important being the ability to shoot HL2 grenades.

Normally, grenades thrown by players and NPCs have no hitbox, thus making it impossible to shoot them. What this addon does is it creates an invisible object around the grenade, which acts as a hitbox for the grenade. This now includes SMG1 grenades.

Grenade Detonation
Dealing enough damage (can be changed via settings) to the grenade causes it to detonate, creating an explosion and dealing damage. The radius and damage of this explosion can be changed. Detonation can be induced by bullet, explosive, or all damage types, depending on your settings.

Grenade Arming
A secondary feature is the ability to arm inactive grenades. Grenade pickups (the ones that give you ammo) that are shot can be either armed or straight up detonated, depending on the amount of damage dealt (can be changed via settings)

Grenades that become armed act the same as thrown grenades, and can also be detonated by damage.

Combine/Player Grenade Dropping
A third feature is the ability for NPCs (Combine Soldiers) to drop live grenades when shot in the chest/stomach region. This is to mimic the idea of shooting a grenade off a combine. This can also be disabled in the settings menu.

This feature also works for players, with separate settings specific to players.

Each feature also has a chance setting, which allows for a degree of randomness.

Physical Grenade Carrying
NPCs and players will carry a physical grenade on their model. This grenade will follow the settings and logic of the base addon. Enable it in the settings menu.

This feature functions separately from the hitbox-based dropping, and can be enabled/disabled alongside it.

There is now a blacklist system that allows for certain models to be exempt from the physical grenade system.

Hitbox Settings
In the hitbox settings menu, the player can choose the type of hitbox the grenades should have. It should be noted that this hitbox is not applied to inactive grenades, only the live (i.e. thrown) kind have it.

There is also a test object, which the player can use to preview the hitbox of the model that will be used. The test object can be shot to indicate whether the damage dealt would arm or detonate the grenade:

Green is the default state. If the color does not change, it means the damage was not enough to arm/detonate.

Yellow indicates that the damage would arm an inactive grenade.

Red indicates that the damage was high enough to instantly detonate the grenade.
Popular Discussions View All (1)
2
3 Aug, 2023 @ 6:48pm
[addon request] adding detonatable grenades to combine bodies just like HL:A
TROFY-KSA
26 Comments
Y0ru_B!rb 14 hours ago 
FEAR & Trepang2 fuck yeah
Gordon, GORDAN! 3 Aug, 2024 @ 4:41am 
I wonder if you could make Hitboxes for Gunships and Hunter Choppers so they can be hit and affected by most SWEPs?
Spy Ghost 16 Aug, 2023 @ 1:14pm 
i use the Explosion Replacer addon + MMod explosion replacer + F.E.A.R. Explosion, those work fine with the shootable grenades, other mods made the grenades to not do damage after being shoot
Alfraido 16 Aug, 2023 @ 1:09pm 
no console errors, i do have explosion sound and visuals repalcements, cool addon idea though.
Sergeant Pan  [author] 16 Aug, 2023 @ 10:50am 
@Alfraido

Are there any errors in console? Besides some other addon interfering with how explosive damage is handled, I can't really think of anything.

If what Spy Ghost said is true then it's the Source engine being weird again, though I have no idea why particle replacements would have any effect on this addon.
Spy Ghost 16 Aug, 2023 @ 10:26am 
i had that issues, i solved it uninstalling every addon that replaced the explosion particle effects
Alfraido 16 Aug, 2023 @ 9:52am 
grenades dont do any damage when detonating, any idea why
sybau 15 Aug, 2023 @ 4:39am 
ultrakill
Snekenjoyer6 13 Aug, 2023 @ 12:22am 
Ok last suggestion from me i swear: Adding a blacklist to models spawning with physical grenades
I dont exactly know how something like this would work, and i'm only suggesting it since well, a combine character with a grenade on their belt isn't always going to fit and i'm sure you have plenty more important things to do than just add patches, so if a model blacklist option works, that'd cool
Snekenjoyer6 4 Aug, 2023 @ 4:42pm 
also one more suggestion, maybe add an option to make it so that soldiers drop a grenade upon death