Garry's Mod

Garry's Mod

442 ratings
Arctic's Vehicle Damage v1 (Obsolete)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Vehicle
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
33.470 KB
9 Jan, 2016 @ 9:10am
11 Jun, 2016 @ 12:14pm
32 Change Notes ( view )

Subscribe to download
Arctic's Vehicle Damage v1 (Obsolete)

Description
This is an obsolete addon, kept up for the sake of history. Please use Vehicle Damage 2, instead.

New! Join the OFFICIAL Discord server here: https://discord.gg/gaHXusZ

A vehicle damage mod that allows damaged vehicles to explode, made from scratch but partially inspired by SonofBrim's script (Here[facepunch.com])

At 1/3 health, vehicles will begin to smoke. At 1/4 health, they will catch fire. By default, vehicles have HP assigned based on their weight. Heavy vehicles have more health on spawning. This means that trucks and tanks have more health than airport baggage handlers. The default HP can be altered to change the amount that vehicles recieve.
Vehicles have a damage threshold, and any damage that is less than this will be completely absorbed by armor and do nothing. By default, this is 5, but it can be increased by using items - these will also increase the vehicle's resistance to damage. When a vehicle is destroyed, it will be unenterable and catch fire. After 1-10 seconds, it will explode, leaving behind a wreck. After a little longer, the wreck will remove itself.

FAQ:

- Will this work with (X) vehicle?: Chances are, yes, unless the vehicle uses some weird custom Lua base. Obviously this will not work with dupes or prop vehicles. However, certain vehicles may not work at all with the base due to causing crashes. Notably, any vehicle that seems to have multiple physics parts, such as Sligwolf's X12. I am working on a fix that will allow explosives to damage them in select circumstances.
- Where do I spawn everything in?: My entities can be found under the tab "Arctic's Vehicle Damage". The pack does not include vehicles, you'll have to get a pack.
- What vehicles are you using?: Doc's drivable CS:S vehicles.
- When I take damage in a car, the health doesn't decrease.: This seems to be a problem with Garrysmod. Play in a Listen server (Select 2 players when you choose a map) for now, as the problem doesn't exist in multiplayer. No, I don't think I can fix it. Sorry.
- How do I use the horn?: Press "R".

Configurable Variables:

These values are configurable in console.
- ArcticVehicleDamage_DefaultHP: Integer, how much health vehicles start with.
- ArcticVehicleDamage_DefaultDT: Integer, how much damage vehicles can shrug off - any damage equal to or below it will be ignored totally.
- ArcticVehicleDamage_Wrecktime: Integer, how long (In seconds) destroyed vehicle wrecks stay for.
- ArcticVehicleDamage_Smokethreshold: Integer, maxHP/Smokethreshold is the point past which vehicles will smoke.
- ArcticVehicleDamage_Flamethreshold: Integer, maxHP/Flamethreshold is the point past which vehicles will be on fire (Cosmetic).
- ArcticVehicleDamage_CanResurrect: 1 or 0, determines if wrecks can be "Resurrected" with the repair wrench. A high Wrecktime value is recommended.
- ArcticVehicleDamage_HudEnabled: 1 or 0, determines if the HUD is on.
- ArcticVehicleDamage_CrashDMGEnabled: 1 or 0, determines if the vehicles take collision damage.
- ArcticVehicleDamage_WrecksNeverDespawn: 1 or 0, determines if destroyed vehicles ever despawn.
- ArcticVehicleDamage_HornEnabled: 1 or 0, determines if the horn works.
- ArcticVehicleDamage_MinSmoke: Time in seconds, minimum time for how long a vehicle can burn.
- ArcticVehicleDamage_MaxSmoke: Time in seconds, maximum time for how long a vehicle can burn.

Items Included:

- Repair Wrench: Touch the car with this in order to fully repair it.
- Improvised Armor: Simple vehicle armor.
- Improved Improvised Armor: A simple vehicle armor with extra additions to make it thicker and tougher.
- Police Armor: Police-grade vehicle armor, professionally manufactured for better protection while maintaining lightness.
- Military Armor: A top-secret blend of military-grade alloys. Extremely resistant to damage.
- Admin Armor: Cheat admin armor. Makes a vehicle totally resistance to damage.

Credits:

- Arctic: Yours truly. Code was made from scratch. Support me on Patreon for as little as $3![www.patreon.com]
- SonofBrim: Inspiration for the addon.
- Nixel: Idea for weight-based health system

For Vehicle Creators:
- The values AVDHealth (Int) and CrashResist(Int) control health and crash resistance. Setting a value in the vehicle code will override default values.
243 Comments
Mr. Companion Cube 13 Jan @ 9:37am 
is this better than V2? (excluding the bugs from being an old addon)
Создатель бункер 7 May, 2023 @ 7:07pm 
ВДВ, С неба привет!
76561199159592375 15 Feb, 2022 @ 4:01pm 
[Arctic's Vehicle Damage v1 (Obsolete)] lua/autorun/vehicledamage_init.lua:170: attempt to call method 'EnableEngine' (a nil value)
1. v - lua/autorun/vehicledamage_init.lua:170
2. unknown - lua/includes/modules/hook.lua:96
VILIλNλD 18 Jan, 2021 @ 6:22am 
gimmie a link to the cs;source vehicles
do the wrecks stay for long?
AWACS Spooks 6 Jan, 2019 @ 12:22pm 
Ok so i was looking through the comments and i found this comment made by Chains is in a pickle: is this a glitch or not? My car explodes, then I can already drive the ALREADY exploded car. Is there a problem with that, or can it be fixed? that was the coment and this is for arctic so don,t repeat what i said
AWACS Spooks 6 Jan, 2019 @ 12:13pm 
thanks arctic your the man
AWACS Spooks 6 Jan, 2019 @ 12:09pm 
also i rlly want vc mod but i only have 0.02 i cri everytime
howdy-ho 1 Jan, 2019 @ 8:25am 
The HL2 airboat doesn't take damage
Arctic  [author] 31 Dec, 2018 @ 5:52pm 
@me smart pepe Good suggestion. It isn't one that's at all possible to implement but I appreciate that you care.