Added missing models
This commit is contained in:
@@ -58,19 +58,22 @@ local og_ISBaseTimedAction_perform = ISBaseTimedAction.perform
|
|||||||
function ISBaseTimedAction:perform()
|
function ISBaseTimedAction:perform()
|
||||||
og_ISBaseTimedAction_perform(self)
|
og_ISBaseTimedAction_perform(self)
|
||||||
|
|
||||||
|
TOC_DEBUG.print("Running ISBaseTimedAction.perform override")
|
||||||
|
|
||||||
local dcInst = DataController.GetInstance()
|
local dcInst = DataController.GetInstance()
|
||||||
if not dcInst:getIsAnyLimbCut() then return end
|
if not dcInst:getIsAnyLimbCut() then return end
|
||||||
|
|
||||||
local amputatedLimbs = CachedDataHandler.GetAmputatedLimbs(LocalPlayerController.username)
|
local amputatedLimbs = CachedDataHandler.GetAmputatedLimbs(LocalPlayerController.username)
|
||||||
for k, _ in pairs(amputatedLimbs) do
|
for k, _ in pairs(amputatedLimbs) do
|
||||||
local limbName = k
|
local limbName = k
|
||||||
if dcInst:getIsCut(limbName) then
|
|
||||||
|
-- We're checking for only "visible" amputations to prevent from having bleeds everywhere
|
||||||
|
if dcInst:getIsCut(limbName) and dcInst:getIsVisible(limbName) then
|
||||||
local side = CommonMethods.GetSide(limbName)
|
local side = CommonMethods.GetSide(limbName)
|
||||||
LocalPlayerController.playerObj:getXp():AddXP(Perks["Side_" .. side], 1) -- TODO Make it dynamic
|
LocalPlayerController.playerObj:getXp():AddXP(Perks["Side_" .. side], 1) -- TODO Make it dynamic
|
||||||
local prostGroup = StaticData.LIMBS_TO_PROST_GROUP_MATCH_IND_STR[limbName]
|
local prostGroup = StaticData.LIMBS_TO_PROST_GROUP_MATCH_IND_STR[limbName]
|
||||||
if not dcInst:getIsCicatrized(limbName) and dcInst:getIsProstEquipped(prostGroup) then
|
if not dcInst:getIsCicatrized(limbName) and dcInst:getIsProstEquipped(prostGroup) then
|
||||||
TOC_DEBUG.print("Trying for bleed, player met the criteria")
|
TOC_DEBUG.print("Trying for bleed, player met the criteria")
|
||||||
-- TODO If we have cut a forearm, it will try to check the hand too, with cicatrization time = 0. We should skip this
|
|
||||||
LocalPlayerController.TryRandomBleed(self.character, limbName)
|
LocalPlayerController.TryRandomBleed(self.character, limbName)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ IG_UI_EN = {
|
|||||||
IGUI_perks_ProstFamiliarity= "Familiarity",
|
IGUI_perks_ProstFamiliarity= "Familiarity",
|
||||||
|
|
||||||
IGUI_ItemCat_Prosthesis = "Prosthesis",
|
IGUI_ItemCat_Prosthesis = "Prosthesis",
|
||||||
IGUI_ItemCat_Prosthesis = "Surgery",
|
IGUI_ItemCat_Surgery = "Surgery",
|
||||||
IGUI_ItemCat_Amputation = "Amputation"
|
IGUI_ItemCat_Amputation = "Amputation"
|
||||||
|
|
||||||
IGUI_HealthPanel_Cicatrization = "Cicatrization",
|
IGUI_HealthPanel_Cicatrization = "Cicatrization",
|
||||||
|
|||||||
BIN
media/models_X/Prosthesis/hookArm_Ground.fbx
Normal file
BIN
media/models_X/Prosthesis/hookArm_Ground.fbx
Normal file
Binary file not shown.
BIN
media/models_X/Prosthesis/hookArm_L_M.fbx
Normal file
BIN
media/models_X/Prosthesis/hookArm_L_M.fbx
Normal file
Binary file not shown.
BIN
media/models_X/Prosthesis/hookArm_R_M.fbx
Normal file
BIN
media/models_X/Prosthesis/hookArm_R_M.fbx
Normal file
Binary file not shown.
BIN
media/models_X/Prosthesis/normalArm_L_M.fbx
Normal file
BIN
media/models_X/Prosthesis/normalArm_L_M.fbx
Normal file
Binary file not shown.
BIN
media/models_X/Prosthesis/normalArm_R_M.fbx
Normal file
BIN
media/models_X/Prosthesis/normalArm_R_M.fbx
Normal file
Binary file not shown.
@@ -12,5 +12,11 @@ module Prosthesis
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
model prostheticArmHook
|
||||||
|
{
|
||||||
|
mesh = Prosthesis/hookArm_Ground,
|
||||||
|
texture = Prosthesis\hookArm,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -23,8 +23,11 @@ module TOC
|
|||||||
Insulation = 1.0,
|
Insulation = 1.0,
|
||||||
WindResistance = 1.0,
|
WindResistance = 1.0,
|
||||||
WaterResistance = 1.0,
|
WaterResistance = 1.0,
|
||||||
Icon = armProsthetic,
|
|
||||||
CanHaveHoles = false,
|
CanHaveHoles = false,
|
||||||
|
|
||||||
|
Icon = armProsthetic,
|
||||||
|
WorldStaticModel = prostheticArmHook,
|
||||||
|
|
||||||
}
|
}
|
||||||
item Prost_HookArm_R
|
item Prost_HookArm_R
|
||||||
{
|
{
|
||||||
@@ -42,8 +45,10 @@ module TOC
|
|||||||
Insulation = 1.0,
|
Insulation = 1.0,
|
||||||
WindResistance = 1.0,
|
WindResistance = 1.0,
|
||||||
WaterResistance = 1.0,
|
WaterResistance = 1.0,
|
||||||
Icon = armProsthetic,
|
|
||||||
CanHaveHoles = false,
|
CanHaveHoles = false,
|
||||||
|
|
||||||
|
Icon = armProsthetic,
|
||||||
|
WorldStaticModel = prostheticArmHook,
|
||||||
}
|
}
|
||||||
|
|
||||||
item Prost_NormalArm_L
|
item Prost_NormalArm_L
|
||||||
@@ -62,9 +67,10 @@ module TOC
|
|||||||
Insulation = 1.0,
|
Insulation = 1.0,
|
||||||
WindResistance = 1.0,
|
WindResistance = 1.0,
|
||||||
WaterResistance = 1.0,
|
WaterResistance = 1.0,
|
||||||
|
CanHaveHoles = false,
|
||||||
|
|
||||||
Icon = armProsthetic,
|
Icon = armProsthetic,
|
||||||
WorldStaticModel = prostheticArm,
|
WorldStaticModel = prostheticArm,
|
||||||
CanHaveHoles = false,
|
|
||||||
}
|
}
|
||||||
item Prost_NormalArm_R
|
item Prost_NormalArm_R
|
||||||
{
|
{
|
||||||
@@ -82,9 +88,10 @@ module TOC
|
|||||||
Insulation = 1.0,
|
Insulation = 1.0,
|
||||||
WindResistance = 1.0,
|
WindResistance = 1.0,
|
||||||
WaterResistance = 1.0,
|
WaterResistance = 1.0,
|
||||||
|
CanHaveHoles = false,
|
||||||
|
|
||||||
Icon = armProsthetic,
|
Icon = armProsthetic,
|
||||||
WorldStaticModel = prostheticArm,
|
WorldStaticModel = prostheticArm,
|
||||||
CanHaveHoles = false,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user