fix: bodyloc check for tourniquets
This commit is contained in:
@@ -52,7 +52,7 @@ function AmputationHandler.ApplyDamageDuringAmputation(player, limbName)
|
|||||||
|
|
||||||
-- Check if tourniquet is applied on the zone
|
-- Check if tourniquet is applied on the zone
|
||||||
for bl, tournAmpGroup in pairs(StaticData.TOURNIQUET_BODYLOCS_TO_GROUPS_IND_STR) do
|
for bl, tournAmpGroup in pairs(StaticData.TOURNIQUET_BODYLOCS_TO_GROUPS_IND_STR) do
|
||||||
local item = player:getWornItem(bl)
|
local item = player:getWornItem(ItemBodyLocation[bl])
|
||||||
|
|
||||||
-- LimbName -> Group -> BodyLoc
|
-- LimbName -> Group -> BodyLoc
|
||||||
if item and tournAmpGroup == ampGroup then
|
if item and tournAmpGroup == ampGroup then
|
||||||
|
|||||||
Reference in New Issue
Block a user