Garry's Mod

Garry's Mod

162 ratings
Damage for HL2 Vehicles
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Realism
File Size
Posted
Updated
4.230 MB
5 Jul @ 11:35am
6 Jul @ 4:13am
8 Change Notes ( view )

Subscribe to download
Damage for HL2 Vehicles

In 1 collection by Virgiliu314
C&C Misc
53 items
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 4mb 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://steamproxy.net/id/netuSsilki228 for the models of the jeep and airboat parts, and to https://steamproxy.net/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!
66 Comments
Virgiliu314  [author] 5 hours ago 
also, the health differs for each vehicle, and also, some weapons are less likely to damage the vehicles, watch the demonstration video and you'll see what i mean
Virgiliu314  [author] 5 hours ago 
@Marshall, i will be adding an options tab for this in a future update
Marshall 5 hours ago 
Doesnt seem to work for me, but dunno.How do you adjust the values for health without console commands?
Virgiliu314  [author] 10 Jul @ 10:15am 
Fun fact: Initially i wanted to sponsor my public sandbox server in the description of this mod in order to populate my playerbase a bit more (although i have enough friends alone that can populate it), but i've figured it'd come off as tryhardy so i didn't do it just to be clean and professional. I may do it eventually though, since this addon is used in there, and one of my server collections is already gaining traction cause of this mod.
Pyro 10 Jul @ 9:50am 
Continue*
the gluttonous beast 10 Jul @ 9:50am 
this is the best mod ever i have been looking for one of these 10/10 mod
maksumkolesnukov022 10 Jul @ 9:50am 
uh not sure, lets contunue in dms
Virgiliu314  [author] 10 Jul @ 9:49am 
@maksumkolesnukov022 wouldn't the UV's of the texture be messed up though? Like it would be positioned awkwardly on those models
Virgiliu314  [author] 10 Jul @ 9:48am 
i could try apply a bit of a weaker compression and still save some filesize for convenience (cause it'd be stupid if a simple vehicle damaging mod was 20-30mb just for some gibs that no one will pay attention to cause they disappear in like 10 seconds), i just figured no one would really notice because HL2/Source's textures are somewhat watered down to begin with even at max settings
maksumkolesnukov022 10 Jul @ 9:48am 
you can just add material that will fallback to original ep2 texture