Garry's Mod

Garry's Mod

Grenade Detonation - Shootable HL2 Grenades
Showing 1-10 of 18 entries
< 1  2 >
Update: 22 Jun @ 12:31am

- Combine Soldiers with the "Do not drop grenade on death" spawnflag will not drop a grenade, even if the setting is enabled

- Changed some text to emphasize that this addon is only for Combine Soldiers

Update: 26 Jul, 2024 @ 3:12am

- Adjusted a timer to make sure Physical Grenades on NPCs are always properly positioned.

Update: 13 Aug, 2023 @ 3:47am

- Added a very basic model blacklist system
Under the "Model Blacklist" tab, there will be a button that allows the player to add models to the blacklist
To add/remove a model, aim at a valid NPC and press the "Add/Remove model from blacklist" button

- Added a slider to change the angle at which the grenade model spawns on NPCs
During testing, I noticed the model spawned in upside down
Rather than adjusting it internally, I decided to add in a slider to change it manually
The angle is applied to the model when the NPC spawns in, so already spawned-in NPCs will not be affected

Update: 6 Aug, 2023 @ 1:05am

- Added chance setting for NPCs dropping grenades on death

Update: 5 Aug, 2023 @ 3:16am

- Multiple changes:

Picking up live grenades is now more reliable
Physical grenades should no longer flicker on players
Carried grenades will no longer detonate from the "Bullet damage always detonates live grenades" setting
- Carried grenades can still detonate, but only when the damage threshold is reached
Damage inflicted by dropped grenades is now properly attributed to the Player/NPC who shot the grenade

- Added 3 new options:

GrenadeCarryDrop - Combine Soldiers will drop a free grenade on death
- If physical grenades is enabled, the grenade will drop based on which side the grenade is, otherwise from the NPCs center mass
GrenadeCarryDropRequireNade - Grenade can only drop if the Combine has not already dropped a grenade
GrenadeCarryDisableNades - Combines that have dropped a grenade can no longer throw grenades

All options can be toggled in the settings menu

Update: 3 Aug, 2023 @ 11:12pm

- Fixed the 'Combine Elites don't drop grenades' setting not applying to physical grenades

Update: 4 Jul, 2023 @ 6:51am

- Added the option to switch which side the physical grenade is carried on

Update: 4 Jul, 2023 @ 4:43am

- Considerable update:

Added new settings that allow for NPCs and Players to carry physical grenade objects on their model. These grenades follow the arming/detonation logic of regular grenades.

Players must have at least one grenade in their inventory, or two if the grenade is being held.

These carried grenades can only be detonated every 1.5 seconds.

On NPCs, these grenades follow the no duplicates setting, deleting themselves when shot.

This method is separate to the hitbox system.

- Added an option for the hitbox system to be disabled

For players, the arm hitbox uses its own, independent setting.

Update: 2 Jul, 2023 @ 7:43am

- Fixed errors where the inflictor was not a valid object

Update: 1 Jul, 2023 @ 1:53am

- Improved grenade owner logic

- Fixed some errors regarding NPCs and Player Grenade Carrying