Garry's Mod

Garry's Mod

291 ratings
PAYDAY 2: Simple Damage System
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
78.695 KB
22 Apr, 2021 @ 11:32pm
13 May, 2024 @ 6:32am
2 Change Notes ( view )

Subscribe to download
PAYDAY 2: Simple Damage System

In 1 collection by Shadow Bonnie (RUS)
PAYDAY 2: Default addons to create custom PD2
25 items
Description
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.
Popular Discussions View All (1)
1
7 Oct, 2023 @ 4:37am
Help
Vauk
28 Comments
NickySins 13 Mar @ 4:25pm 
Lmao the fall dmg, what is this, Darksouls 2?
Robot 7 Jan @ 12:47am 
usable but a little jank, I highly recommend using this command: pd2_dmgsys_fallspd 0
i had no good ideas for a name 28 Oct, 2024 @ 10:44am 
no grace period between shots
choochooalex 21 Aug, 2024 @ 11:25am 
ITS BROKEN
浪里小神猫 11 Aug, 2024 @ 3:54am 
fall damage is toooooo high,what's wrong?
feldemj 9 Aug, 2024 @ 7:59pm 
Yo I have a question that is related to your payday 2 gamemode, what happen to it?
Wrocer 19 Jul, 2024 @ 3:32pm 
I just fell off a 1 meter box and die from a fall damage... What the hell bro...
Shadow Bonnie (RUS)  [author] 13 May, 2024 @ 2:37am 
I will fix it soon, seems some gmod update break this
Relly 3 Mar, 2024 @ 9:08pm 
[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
cindersecondname 21 Jan, 2024 @ 5:22am 
the mod isnt working, like you dont regen armor anymore :(