somes tuff to fix before relase
This commit is contained in:
BIN
dev_stuff/logos/workshop_img.psd
Normal file
BIN
dev_stuff/logos/workshop_img.psd
Normal file
Binary file not shown.
@@ -44,3 +44,20 @@ local function AddAdminTocOptions(playerNum, context, worldobjects)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
Events.OnFillWorldObjectContextMenu.Add(AddAdminTocOptions)
|
Events.OnFillWorldObjectContextMenu.Add(AddAdminTocOptions)
|
||||||
|
|
||||||
|
|
||||||
|
--* Override to cheats to fix stuff
|
||||||
|
|
||||||
|
local og_ISHealthPanel_onCheatCurrentPlayer = ISHealthPanel.onCheatCurrentPlayer
|
||||||
|
|
||||||
|
function ISHealthPanel.onCheatCurrentPlayer(bodyPart, action, player)
|
||||||
|
og_ISHealthPanel_onCheatCurrentPlayer(bodyPart, action, player)
|
||||||
|
|
||||||
|
if action == "healthFullBody" then
|
||||||
|
-- todo loop all limbs and reset them if infected
|
||||||
|
end
|
||||||
|
|
||||||
|
if action == "healthFull" then
|
||||||
|
-- todo get limbname from bodypart
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -252,6 +252,13 @@ function DataController:getIsCauterized(limbName)
|
|||||||
return self.tocData.limbs[limbName].isCauterized
|
return self.tocData.limbs[limbName].isCauterized
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---Get isInfected
|
||||||
|
---@param limbName string
|
||||||
|
---@return boolean
|
||||||
|
function DataController:getIsInfected(limbName)
|
||||||
|
return self.tocData.limbs[limbName].isInfected
|
||||||
|
end
|
||||||
|
|
||||||
---Get woundDirtyness
|
---Get woundDirtyness
|
||||||
---@param limbName string
|
---@param limbName string
|
||||||
---@return number
|
---@return number
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ function LocalPlayerController.HandleDamage(character)
|
|||||||
LocalPlayerController.HealZombieInfection(bd, bodyPart, limbName, dcInst)
|
LocalPlayerController.HealZombieInfection(bd, bodyPart, limbName, dcInst)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if bodyPart:bitten() or bodyPart:IsInfected() then
|
if (bodyPart:bitten() or bodyPart:IsInfected()) and not dcInst:getIsInfected(limbName) then
|
||||||
dcInst:setIsInfected(limbName, true)
|
dcInst:setIsInfected(limbName, true)
|
||||||
modDataNeedsUpdate = true
|
modDataNeedsUpdate = true
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ module TOC
|
|||||||
texture = Prosthesis\normalArm,
|
texture = Prosthesis\normalArm,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
model prostheticArmHook
|
model prostheticArmHook
|
||||||
{
|
{
|
||||||
mesh = Prosthesis/hookArm_Ground,
|
mesh = Prosthesis/hookArm_Ground,
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ module TOC
|
|||||||
BodyLocation = TOC_ArmAccessory,
|
BodyLocation = TOC_ArmAccessory,
|
||||||
BloodLocation = UpperArms;UpperBody,
|
BloodLocation = UpperArms;UpperBody,
|
||||||
|
|
||||||
Weight = 1,
|
Weight = 0.25,
|
||||||
|
|
||||||
Icon = tourniquet,
|
Icon = tourniquet,
|
||||||
WorldStaticModel = tourniquet,
|
WorldStaticModel = tourniquet,
|
||||||
@@ -38,7 +38,7 @@ module TOC
|
|||||||
BodyLocation = TOC_ArmAccessory,
|
BodyLocation = TOC_ArmAccessory,
|
||||||
BloodLocation = UpperArms;UpperBody,
|
BloodLocation = UpperArms;UpperBody,
|
||||||
|
|
||||||
Weight = 1,
|
Weight = 0.25,
|
||||||
|
|
||||||
Icon = tourniquet,
|
Icon = tourniquet,
|
||||||
WorldStaticModel = tourniquet,
|
WorldStaticModel = tourniquet,
|
||||||
|
|||||||
BIN
workshop_files/imgs/Screenshot 2024-05-02 011034.png
Normal file
BIN
workshop_files/imgs/Screenshot 2024-05-02 011034.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 MiB |
BIN
workshop_files/imgs/Screenshot 2024-05-02 011054.png
Normal file
BIN
workshop_files/imgs/Screenshot 2024-05-02 011054.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 169 KiB |
BIN
workshop_files/imgs/Untitled-1.png
Normal file
BIN
workshop_files/imgs/Untitled-1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 493 KiB |
Reference in New Issue
Block a user