Garry's Mod

Garry's Mod

296 个评价
PAYDAY 2: Simple Damage System
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 特效
插件标签: 快乐, 角色扮演
文件大小
发表于
更新日期
78.695 KB
2021 年 4 月 22 日 下午 11:32
2024 年 5 月 13 日 上午 6:32
2 项改动说明 ( 查看 )

订阅以下载
PAYDAY 2: Simple Damage System

在 Shadow Bonnie (RUS) 的 1 个合集中
PAYDAY 2: Default addons to create custom PD2
25 件物品
描述
Simple damage system contains few features from PAYDAY 2 damage system.

Highly recommended addon as addition to this addon: PAYDAY 2: Mini HUD+

Armor restore
Armor will be restored in few seconds after you get damage.

Armor protects your health
Getting damage will not reduce your health while armor exists.

Armor does not protect from all damage types
Getting damage from drowning, radiation, falling and etc will reduce your health regardless of whether you have armor or not. Armor will not be reduced.

Falling damage system
Falling damage is divided into 2 types: lethal and non-lethal.
Non-lethal damage applied when you hit ground with small speed. Getting non-lethal damage reduces hp/armor by 25% of max health.
Lethal damage applied when you hit ground with high speed. Getting lethal damage reduces your hp and armor by hp+armor value, kills you instantly.

Other addons conflicts
This addon can conflict with other addons that doing something with damage, for example, modify damage before applying to player.

Console commands and variables
Name
Default (min-max)
Realm
Description
pd2_dmgsys_enabled
1 (0-1)
Server
Enables/Disables PAYDAY 2 Damage System.
pd2_dmgsys_team
-1 (-1-*)
Server
If higher than -1, PAYDAY 2 Damage System will work only for team with this index.
pd2_dmgsys_armorres
3 (0-*)
Server
Sets armor restore time in PAYDAY 2 Damage System. Set to 0 to disable.
pd2_dmgsys_fallspd
350 (0-*)
Server
Sets falling speed to take damage in PAYDAY 2 Damage System. Set to 0 to disable.
pd2_dmgsys_fallspd_fatal
500 (0-*)
Server
Sets fatal falling speed to kill player in PAYDAY 2 Damage System. Set to 0 to disable.
pd2_dmgsys_armorres_sound
1 (0-1)
Client
Enables/Disables armor restore sound in PAYDAY 2 Damage System.

Used addons in preview
PAYDAY 2: Mini HUD+
PAYDAY 2: NextBots
Harvest & Trustee Bank
[ArcCW] Counter-Strike+

Advanced configuration (for Lua developers)
Define global function pd2_dmgsys_ShouldWorkOnPlayer to choose should PAYDAY 2 damage system work on given player or not. Arguments: Player - the player entity to check; DamageInfo - damage info from EntityTakeDamage callback. Returns: boolean - true/false, should system work on player or not.
Define global function pd2_dmgsys_GetArmorRestoreTime to set custom delay for armor restore. Arguments: Player - the player for whom the delay will be set; DamageInfo - damage info from EntityTakeDamage callback. Returns: number - delay for armor restore, return 0 to disable.
热门讨论 查看全部(1)
1
2023 年 10 月 7 日 上午 4:37
Help
Vauk
28 条留言
NickySins 3 月 13 日 下午 4:25 
Lmao the fall dmg, what is this, Darksouls 2?
Robot 1 月 7 日 上午 12:47 
usable but a little jank, I highly recommend using this command: pd2_dmgsys_fallspd 0
i had no good ideas for a name 2024 年 10 月 28 日 上午 10:44 
no grace period between shots
choochooalex 2024 年 8 月 21 日 上午 11:25 
ITS BROKEN
浪里小神猫 2024 年 8 月 11 日 上午 3:54 
fall damage is toooooo high,what's wrong?
feldemj 2024 年 8 月 9 日 下午 7:59 
Yo I have a question that is related to your payday 2 gamemode, what happen to it?
Wrocer 2024 年 7 月 19 日 下午 3:32 
I just fell off a 1 meter box and die from a fall damage... What the hell bro...
Shadow Bonnie (RUS)  [作者] 2024 年 5 月 13 日 上午 2:37 
I will fix it soon, seems some gmod update break this
Relly 2024 年 3 月 3 日 下午 9:08 
[PAYDAY 2: Simple Damage System] lua/autorun/server/pd2_dmgsys.lua:55: Tried to use a NULL CTakeDamageInfo!
1. GetDamage - [C]:-1
2. v - lua/autorun/server/pd2_dmgsys.lua:55
3. unknown - lua/includes/modules/hook.lua:96
4. TakeDamageInfo - [C]:-1
5. v - lua/autorun/server/pd2_dmgsys.lua:105
6. unknown - lua/includes/modules/hook.lua:96
cindertastic 2024 年 1 月 21 日 上午 5:22 
the mod isnt working, like you dont regen armor anymore :(