Garry's Mod

Garry's Mod

261 ratings
Damage for HL2 Vehicles
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Realism
File Size
Posted
Updated
18.386 MB
Jul 5, 2024 @ 11:35am
Jul 15, 2024 @ 1:07am
9 Change Notes ( view )

Subscribe to download
Damage for HL2 Vehicles

Description
Hello, and welcome to my very first original public add-on for Garry's Mod!

This is a simple script that adds health to vehicles and the ability to damage them, i am surprised how no one has ever made this before.
Initially i wanted to make it be able to damage the vehicles on physical impact as well but it did not really work out...
But don't worry, this may become a feature in the future once i figure it out!

Anyway, this mod features:

- Adjustable health / damage system for the jeep, airboat and even the jalopy from Half-Life 2: Episode 2!
- Console command.
- Visualizer for damage (the vehicles will become gradually more scorched / darker as they take damage).
- Fiery explosion effect (once the vehicle reaches 0 hp, it will burn for a few moments before exploding, signaling you to stand back from an imminent explosion).
- Detailed vehicle gibbing that uses gibs from the vehicle models themselves with some randomized additional gibs shared across all vehicle types.
- Random chance of items such as SMG ammo boxes and suit batteries being expelled from the vehicles when exploding and gibbing.
- Optimization (only 18mb filesize, and checks were added in the code in order to make the action run only when the requirements are met, additionally, the vehicle gibs have no collision and despawn after 10 seconds)
- NEW! If a vehicle is destroyed while a player is driving it, there will be a chance of some bones and other body parts being expelled from the vehicle, so keep an eye out for any skulls, spines and legs!

Console command: set_vehicle_health (the default is 100, but i have clamped it to 100, so you can only decrease the health for now, i may change this in a future update and if there is a demand for this change to happen)

Potential upcoming features in the future:
- Options tab for adjusting the vehicle health without the need of running a command on the server, for convenience.
- Command/option for controlling the item drop chance when a vehicle explodes.
- A way to heal vehicles (probably through a SWEP).
- Vehicles getting damage on physical impact proportional to acceleration and velocity (if i manage to figure it out).

Credit to https://steamcommunity.com/id/netuSsilki228 for the models of the jeep and airboat parts, and to https://steamcommunity.com/id/435325228 for the models of the jalopy parts.

If you encounter bugs or have suggestions whether if it's for this mod or an idea for a new mod that i should make, let me know in the comments!

Either way, i hope you enjoy this, and stay tuned for more mods!
95 Comments
shpioniro golobiro Apr 5 @ 7:21am 
this is 10\10 download it its a very good mod :steamthumbsup::steamthumbsup::steamthumbsup::steamthumbsup:
Virgiliu314  [author] Mar 10 @ 5:42am 
also it's literally just a simple check, to check if the entity is the HL2 vehicle base AND has the matching buggy model, and if not then it should just show some generic gibs, however, like i said, i am not focusing on this mod atm, but i may change my mind
Virgiliu314  [author] Mar 10 @ 5:38am 
@Home (KOD) I am aware of that and i thought of doing that, but currently, updates for this mod are postponed, due to me being busy with life and due to the fact that i am working on far greater workshop projects at the moment. I may return to this mod if i fell like it though, perhaps i could do some updates
Home (KOD) Mar 8 @ 1:22pm 
Since this addon also works on other custom workshop vehicles that are using the HL2 vehicle base, the buggy gibs will appear when you destroy them which might look weird since of course the model doesnt match. Then I thought you could remove the jeep gibs/add a check on custom workshop vehicles and add other gibs like an engine, metal parts or any asset that is already on gmod by default
RNG Nov 23, 2024 @ 8:11am 
pure greatness and shoutout to Virgi
CreeperSammyB Nov 2, 2024 @ 10:13am 
well shit dude you cooked with this
Virgiliu314  [author] Oct 8, 2024 @ 9:50am 
also, i have some updates planned for this addon, but i'm currently working on an ArcCW addon, so stay tuned for that
Virgiliu314  [author] Oct 8, 2024 @ 9:49am 
say i should probably make a check to only work on entities that use both the vehicle entity + the correct model, because otherwise, every vehicle that uses jeep base would have incorrect gibs
Virgiliu314  [author] Oct 8, 2024 @ 9:48am 
@salt crab, that's probably because Sligwolf's vehicles use the same entity base as the jeep or airboat
salt crab Oct 8, 2024 @ 2:32am 
suprisingly enough, this also has some sort of compatibility with sligwolfs addons:steamhappy: