Garry's Mod

Garry's Mod

Not enough ratings
DFA (Death From Acceleration)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Movie, Roleplay, Realism
File Size
Posted
Updated
11.907 KB
8 Nov, 2021 @ 11:29pm
28 May, 2023 @ 4:43pm
8 Change Notes ( view )

Subscribe to download
DFA (Death From Acceleration)

In 2 collections by LiddulBOFH
Fantastic Build Collection
131 items
AAS Pack
90 items
Description
This is a simple script that will monitor any players that are in seats, and apply damage if they accelerate or decelerate too fast.

2 convars that it has:
dfa_glimit <number> (default 3) - Amount of Gs a player can withstand before taking damage
dfa_damagemult <number> (default 1) - A multiplier for the amount of damage a player will take

This will also respond to you changing sv_gravity and base the G calculation off of that.

For any modmakers, there is a hook exposed that lets you control the damage applied to players through this
- DFA_PlayerDamage: passes the player about to receive damage, and the amount they will receive
|- Return true to allow damage, and also optionally pass a number to override the damage amount
|- Return false to disable damage entirely for that event

Useful for combatting those flying jeeps and UFOs!

Also on GitHub:
https://github.com/LiddulBOFH/DFA

Any issues found should be posted here as well:
https://github.com/LiddulBOFH/DFA/issues
2 Comments
Dornek 5 Dec, 2021 @ 10:12am 
althrough there is some conflict with simphys, raising the limit to 9Gs helps a little but sometimes just by enterning the vehicle kills me right away, simple solution probably would be adding a time before this system activates after you enter the vehicle so like 1 second cooldown before you can actually die to Gs after enterning vehicle would fix this problem for sure
Dornek 5 Dec, 2021 @ 9:58am 
one of the most realistic mods, didn't know someone could actually simulate g force thanks for this