Garry's Mod

Garry's Mod

评价数不足
DFA (Death From Acceleration)
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
插件标签: 影视, 角色扮演, 写实
文件大小
发表于
更新日期
11.907 KB
2021 年 11 月 8 日 下午 11:29
2023 年 5 月 28 日 下午 4:43
8 项改动说明 ( 查看 )

订阅以下载
DFA (Death From Acceleration)

在 LiddulBOFH 的 2 个合集中
Fantastic Build Collection
131 件物品
AAS Pack
90 件物品
描述
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 条留言
Dornek 2021 年 12 月 5 日 上午 10:12 
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 2021 年 12 月 5 日 上午 9:58 
one of the most realistic mods, didn't know someone could actually simulate g force thanks for this