位置傷害和致命爆頭

作者 EnforcerZhukov·版本 v1.1·更新於 2018-08-24

截圖 共 3 張

模組介紹 作者原文

基於GTA IV裝甲 - 健康 - 損害系統,位置損傷是一個專注於現實主義的項目。如你所知,防彈衣僅覆蓋身體,但是如果你的腿或手臂被擊中,GTA V會發生什麼?是的,你的盔甲減少了,你的健康狀況也沒有改變。在GTA IV上,如果你的腿被擊中,即使你有防彈衣,你的健康也會降低。

所以我製作了這個腳本將該系統放在GTA V上。腳本檢測到你被射擊的地方,如果身體部位不是“身體”(你的身體護甲應該是保護你),它知道如何你得到了很大的傷害(也就是你的盔甲減少了多少)並且在射擊之前將護甲值放到原來的值上;然後,承擔損害並減少健康。

所以,如果你有100%的護甲和100%的生命值,那麼當你的腿被擊中時,香草遊戲會降低護甲值。此腳本會降低運行狀況值。如果你射擊身體,護甲值將會降低。如果你沒有盔甲,腳本將不會改變任何東西。劇本也知道傷害的來源,所以當你被非近戰武器擊中時,它只能完成它的工作。

我還包括一個“致命的爆頭”插件,所以如果你被擊中頭部,你會立即死亡!您可以在提供的INI文件中啓用它(默認情況下禁用它)。你可以激活另一個選項,避免即時殺戮,但能夠實現重擊(你的健康狀況會降低很多,幾乎要死)。.INI CONFIG FILE

提供的.ini文件允許您自定義此mod,並具有以下選項(根據需要在每個上添加true / false):

DeadlyHeadshots:致命的爆頭模塊。 1槍擊中頭=死了。

HeavyDamageHeadshots:爆頭成爲重要的命中;這意味着您的健康狀況將急劇下降,接近於零。使用DeadlyHeadshots激活此功能將無效,因爲DH會讓您死亡。

ClearLastDamaged:注意這個選項:它清除角色的“最後傷害類型”標誌。這用於確定你是否被槍(子彈),近戰武器或其他東西擊中,所以如果你作爲爆頭墜落,它將不會渲染,例如,擊中頭部。問題:它可能會導致其他相關mod的問題,例如,我的InjuredRagdoll腳本。因此,如果您遇到其他mod的問題,請嘗試禁用此功能。

依賴性和安裝

您需要ScriptHookV和ScriptHookV DotNet才能運行此腳本。將DLL和INI文件放在Grand Theft Auto V / scripts文件夾中。

已知的錯誤和未來的項目

(遊戲中)“確定身體部位”系統有時不是很準確,但ATM這個系統可以做到這一點。問題是,有時子彈不僅僅是輸入(遊戲不太現實)。

在測試期間,我死了3或4次後有一些CTD,但也許它是由Afterdeath mod造成的。如果您有或沒有該mod的遊戲崩潰,請告訴我。

在我的InjuredRagdoll模型中,儘管LocationalDamage檢測到無裝甲傷害並且破壞了生命值,但受傷的拉格多爾很可能會檢測到裝甲傷害,並應用你的裝甲命中設置。

如果您正在運行InjuredRagdoll腳本或其他類似的東西,致命的爆頭通常不起作用。 “Clear Last Damaged”選項可能會使其他健康或命中檢測相關腳本(如InjuredRagdoll)無法正常工作(在這種情況下,請嘗試禁用該選項)。

我想擴展這個腳本並創建一個複雜而真實的健康系統。我將在未來與我的InjuredRagdoll腳本合併,或者至少使兩個腳本協同工作以避免它們之間的問題。

更新日誌

v1:初始關係。

v1.1:包含HeavyDamageHeadshots和ClearLastDamage選項(可從INI文件中自定義)。 ClearLastDamage選項可能會修復與命中檢測相關的一些問題,並將頭部命中(如下降)渲染爲爆頭。

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):

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 t …

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 這類遊戲沒有通用的模組管理器:有的模組直接替換遊戲檔案、有的放進遊戲專屬的 Mods 資料夾、有的要先裝遊戲對應的社群載入器或工具,以包內說明為準。
  3. 嚴格按說明放置檔案;標註「前置依賴」的模組需要把依賴一併裝好。
  4. 啟動遊戲確認載入成功;部分遊戲需要在設定或模組選單裡手動啟用。

不同遊戲、不同模組的安裝位置差異很大,包內說明是最可靠的依據。

檔案與校驗

檔案名稱
位置伤害和致命爆头
檔案大小
5.4 KiB
SHA-256
f7fd673d97286c3f86f88551fada33dd7342005bf97dfd8637c919dccedc37d9
入庫時間
2026-10-09 05:51