Garry's Mod

Garry's Mod

292 vurderinger
PAYDAY 2: Simple Damage System
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Roleplay
Filstørrelse:
Offentliggjort:
Opdateret:
78.695 KB
22. apr. 2021 kl. 23:32
13. maj 2024 kl. 6:32
2 ændringsbemærkninger ( vis )

Abonner for at downloade
PAYDAY 2: Simple Damage System

I 1 samling af Shadow Bonnie (RUS)
PAYDAY 2: Default addons to create custom PD2
25 genstande
Beskrivelse
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.
Populære diskussioner Vis alle (1)
1
7. okt. 2023 kl. 4:37
Help
Vauk
28 kommentarer
NickySins 13. mar. kl. 16:25 
Lmao the fall dmg, what is this, Darksouls 2?
Robot 7. jan. kl. 0:47 
usable but a little jank, I highly recommend using this command: pd2_dmgsys_fallspd 0
i had no good ideas for a name 28. okt. 2024 kl. 10:44 
no grace period between shots
choochooalex 21. aug. 2024 kl. 11:25 
ITS BROKEN
浪里小神猫 11. aug. 2024 kl. 3:54 
fall damage is toooooo high,what's wrong?
feldemj 9. aug. 2024 kl. 19:59 
Yo I have a question that is related to your payday 2 gamemode, what happen to it?
Wrocer 19. juli 2024 kl. 15:32 
I just fell off a 1 meter box and die from a fall damage... What the hell bro...
Shadow Bonnie (RUS)  [ophavsmand] 13. maj 2024 kl. 2:37 
I will fix it soon, seems some gmod update break this
Relly 3. mar. 2024 kl. 21: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
cindersecondname 21. jan. 2024 kl. 5:22 
the mod isnt working, like you dont regen armor anymore :(