19.092
219
19.092
219
Locational Damage is a project focused on realism, based on GTA IV armor-health-damage system. As you know, body armors only cover the body, but what happens on GTA V if you get shot, for example, on your leg or your arm? Yeah, your armor decreases, and your health does not change. On GTA IV, if you get shot on your leg, your health decreases even if you have body armor.
So I made this script to put that system on GTA V. The script detects where did you get shot, and if the body part is not the "body" (where your body armor is supposed to be and protect you), it knows how much damage have you received (a.k.a. how much your armor decreased) and puts the armor value to the original one, before getting shot; then, takes that damage and reduces the health.
So, if you have 100% armor and 100% health, when you get shot on your leg, vanilla game decreases armor value. This script decreases health value instead. If you get shot on the body, the armor value will be decreased as usually. If you haven't got armor, the script will change nothing. The script also knows the source of the damage, so it will only do it's job when you got shot by a non-melee weapon.
Aditionally I included a "deadly headshots" plugin, so if you get shot on your head, you will die instantly! You can enable it on the INI file provided (it's disabled by default). You can activate instead another option, avoiding instant-kills but enabling critical hits (your health is lowered a lot, almost dying).
.INI CONFIG FILE
The .ini file provided lets you customize this mod, and has the following options (put true/false on each one as you want):
Dependencies & installation
You need ScriptHookV and ScriptHookV DotNet in order to run this script. Place both DLL and INI files on Grand Theft Auto V/scripts folder.
Known bugs & future projects
I want to expand this script and make a complex & realistic health system.I'll merge with my InjuredRagdoll script on the future, or at least, make both scripts work together to avoid problems between both of them.
Changelog
So I made this script to put that system on GTA V. The script detects where did you get shot, and if the body part is not the "body" (where your body armor is supposed to be and protect you), it knows how much damage have you received (a.k.a. how much your armor decreased) and puts the armor value to the original one, before getting shot; then, takes that damage and reduces the health.
So, if you have 100% armor and 100% health, when you get shot on your leg, vanilla game decreases armor value. This script decreases health value instead. If you get shot on the body, the armor value will be decreased as usually. If you haven't got armor, the script will change nothing. The script also knows the source of the damage, so it will only do it's job when you got shot by a non-melee weapon.
Aditionally I included a "deadly headshots" plugin, so if you get shot on your head, you will die instantly! You can enable it on the INI file provided (it's disabled by default). You can activate instead another option, avoiding instant-kills but enabling critical hits (your health is lowered a lot, almost dying).
.INI CONFIG FILE
The .ini file provided lets you customize this mod, and has the following options (put true/false on each one as you want):
- DeadlyHeadshots: the deadly headshots module. 1 shot to the head = dead.
- HeavyDamageHeadshots: headshots renders as critical hits; this means your health will be drastically decreased, close to zero. Having this activated with DeadlyHeadshots will have no effect, since DH will make you die instead.
ClearLastDamaged: pay attention to this option: it clears the "last damage type" flag from your character. This is used to determine if you got hit by a gun (bullet), a melee weapon or something else, so it won't render, for example, a hit to the head if you're falling as a headshot. The problem: it might cause issues with other related mods, for example, my InjuredRagdoll script. So, in case you have problems with other mods, try disabling this out.
Dependencies & installation
You need ScriptHookV and ScriptHookV DotNet in order to run this script. Place both DLL and INI files on Grand Theft Auto V/scripts folder.
Known bugs & future projects
- (in-game) "determining body parts" System is not very accurate sometimes, but ATM this system can do the job. The problem is, sometimes a bullet has more than an input (the game is not very realistic).
- During the tests i had some CTDs after dying 3 or 4 times, but maybe it was caused by the Afterdeath mod. If you have game crashes with or without that mod, please, let me know.
- On my InjuredRagdoll mod, although LocationalDamage detects a no-armor damage and decrases health, InjuredRagdoll will most probably detect an armor damage, applying the settings you have for armor hits.
- Deadly Headshots usually doesn't work if you're running the InjuredRagdoll script, or something else similar. The "Clear Last Damaged" option might make other health or hit-detection related scripts (like InjuredRagdoll) not working fine (on this case, try disabling that option).
I want to expand this script and make a complex & realistic health system.I'll merge with my InjuredRagdoll script on the future, or at least, make both scripts work together to avoid problems between both of them.
Changelog
- v1: initial relase.
- v1.1: included the HeavyDamageHeadshots and ClearLastDamage options (customizable from the INI file). The ClearLastDamage option might fix some issues related with hit detection and rendering head hits (like falling) as headshots.
First Uploaded: Venres 4 de Novembro de 2016
Last Updated: Sábado 26 de Novembro de 2016
Last Downloaded: 7 horas
56 Comments
More mods by EnforcerZhukov:
Locational Damage is a project focused on realism, based on GTA IV armor-health-damage system. As you know, body armors only cover the body, but what happens on GTA V if you get shot, for example, on your leg or your arm? Yeah, your armor decreases, and your health does not change. On GTA IV, if you get shot on your leg, your health decreases even if you have body armor.
So I made this script to put that system on GTA V. The script detects where did you get shot, and if the body part is not the "body" (where your body armor is supposed to be and protect you), it knows how much damage have you received (a.k.a. how much your armor decreased) and puts the armor value to the original one, before getting shot; then, takes that damage and reduces the health.
So, if you have 100% armor and 100% health, when you get shot on your leg, vanilla game decreases armor value. This script decreases health value instead. If you get shot on the body, the armor value will be decreased as usually. If you haven't got armor, the script will change nothing. The script also knows the source of the damage, so it will only do it's job when you got shot by a non-melee weapon.
Aditionally I included a "deadly headshots" plugin, so if you get shot on your head, you will die instantly! You can enable it on the INI file provided (it's disabled by default). You can activate instead another option, avoiding instant-kills but enabling critical hits (your health is lowered a lot, almost dying).
.INI CONFIG FILE
The .ini file provided lets you customize this mod, and has the following options (put true/false on each one as you want):
Dependencies & installation
You need ScriptHookV and ScriptHookV DotNet in order to run this script. Place both DLL and INI files on Grand Theft Auto V/scripts folder.
Known bugs & future projects
I want to expand this script and make a complex & realistic health system.I'll merge with my InjuredRagdoll script on the future, or at least, make both scripts work together to avoid problems between both of them.
Changelog
So I made this script to put that system on GTA V. The script detects where did you get shot, and if the body part is not the "body" (where your body armor is supposed to be and protect you), it knows how much damage have you received (a.k.a. how much your armor decreased) and puts the armor value to the original one, before getting shot; then, takes that damage and reduces the health.
So, if you have 100% armor and 100% health, when you get shot on your leg, vanilla game decreases armor value. This script decreases health value instead. If you get shot on the body, the armor value will be decreased as usually. If you haven't got armor, the script will change nothing. The script also knows the source of the damage, so it will only do it's job when you got shot by a non-melee weapon.
Aditionally I included a "deadly headshots" plugin, so if you get shot on your head, you will die instantly! You can enable it on the INI file provided (it's disabled by default). You can activate instead another option, avoiding instant-kills but enabling critical hits (your health is lowered a lot, almost dying).
.INI CONFIG FILE
The .ini file provided lets you customize this mod, and has the following options (put true/false on each one as you want):
- DeadlyHeadshots: the deadly headshots module. 1 shot to the head = dead.
- HeavyDamageHeadshots: headshots renders as critical hits; this means your health will be drastically decreased, close to zero. Having this activated with DeadlyHeadshots will have no effect, since DH will make you die instead.
ClearLastDamaged: pay attention to this option: it clears the "last damage type" flag from your character. This is used to determine if you got hit by a gun (bullet), a melee weapon or something else, so it won't render, for example, a hit to the head if you're falling as a headshot. The problem: it might cause issues with other related mods, for example, my InjuredRagdoll script. So, in case you have problems with other mods, try disabling this out.
Dependencies & installation
You need ScriptHookV and ScriptHookV DotNet in order to run this script. Place both DLL and INI files on Grand Theft Auto V/scripts folder.
Known bugs & future projects
- (in-game) "determining body parts" System is not very accurate sometimes, but ATM this system can do the job. The problem is, sometimes a bullet has more than an input (the game is not very realistic).
- During the tests i had some CTDs after dying 3 or 4 times, but maybe it was caused by the Afterdeath mod. If you have game crashes with or without that mod, please, let me know.
- On my InjuredRagdoll mod, although LocationalDamage detects a no-armor damage and decrases health, InjuredRagdoll will most probably detect an armor damage, applying the settings you have for armor hits.
- Deadly Headshots usually doesn't work if you're running the InjuredRagdoll script, or something else similar. The "Clear Last Damaged" option might make other health or hit-detection related scripts (like InjuredRagdoll) not working fine (on this case, try disabling that option).
I want to expand this script and make a complex & realistic health system.I'll merge with my InjuredRagdoll script on the future, or at least, make both scripts work together to avoid problems between both of them.
Changelog
- v1: initial relase.
- v1.1: included the HeavyDamageHeadshots and ClearLastDamage options (customizable from the INI file). The ClearLastDamage option might fix some issues related with hit detection and rendering head hits (like falling) as headshots.
First Uploaded: Venres 4 de Novembro de 2016
Last Updated: Sábado 26 de Novembro de 2016
Last Downloaded: 7 horas
@EnforcerZhukov Gotta try this. Neat idea man!
Nice!
This looks good, I am going to try it
In the mod description, you said that having "HeavyDamageHeadshots" activated with "DeadlyHeadshots" will have no effect. Then why are both set to true by default?
@Omar_DmX why not, as I said it doesn't mind having both activated. If you activate DeadlyHeadshots, you should die with a single headshot, so there is no difference if the "HeavyDamageHeadshots" is true or false. Otherwise, on the script the function activated by "HeavyDamageHeadshots" is also activated with "DeadlyHeadshots", just in case something works wrong and you don't die with a headshot, in this case at least your health will be heavily decreased.
@didiaodemiao @BayAreaBuggs @420x420 Hope you enjoy it, let me know if you find bugs or have problems.
@EnforcerZhukov No problems really fucking great plus if you crash on a bike and smash your head.. or anything else into something you're more likely to die with this lmao
@420x420 damn I though it was solved :c I'll have to keep looking at that mistake!
@EnforcerZhukov But it adds more realism and isn't that what you were trying to do?
@EnforcerZhukov Nevermind it kills you instantly when you hit your head even if you just do the jump ragdoll thing
@420x420 the idea was instantkilling just with headshots, not any head impact.
Doesn't work
Will you make an update where for those Player Models with Head and Full Body Protection for Example, MP Male with a Bulletproof Helmet or Michael in his Armored Suit from the Paleto Score, will also have realistic effects?
Can you do this for NPCs as well? I hate when they die if I only shot their hand or foot.
@niko444 GTA 4 optimization not good, driving is very slippery, but the physics engine is great, both have their own advantages and disadvantages.
@EnforcerZhukov Very nice mod but with the following strange bug: When the player rides a police bike and gets shot he keeps falling off the bike. Even when he is away from the shooter. This is not happening with civilian bikes. Please check it out. Thanks!
A really neat mod but there´s one thing that really annoys me: The slightest little bit of damage to your head kills you instantly, even so much as a little fall where you land on your head
Hi, this mod is for shooting in the head instead of the chest?
Is it possible to convert this to fivem?
NPC shot NPC on head won't died instantly