fixed setting correct texture for amputation
@@ -1,3 +1,10 @@
|
|||||||
|
0.9.11
|
||||||
|
- Hotfix to cicatrization visuals
|
||||||
|
|
||||||
|
0.9.10
|
||||||
|
- Modified textures once again
|
||||||
|
|
||||||
|
|
||||||
0.9.9
|
0.9.9
|
||||||
- Modified textures for amputations
|
- Modified textures for amputations
|
||||||
- Fixed a bug that caused some problems when amputating an already amputated limb
|
- Fixed a bug that caused some problems when amputating an already amputated limb
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ function TocSetCorrectTextureForAmputation(item, player, cicatrized)
|
|||||||
|
|
||||||
local is_hairy = string.find(texture_string, "a$")
|
local is_hairy = string.find(texture_string, "a$")
|
||||||
-- Hairy bodies
|
-- Hairy bodies
|
||||||
if is_hairy then
|
if is_hairy then
|
||||||
texture_string = texture_string:sub(1, -2) -- Removes b at the end to make it compatible
|
texture_string = texture_string:sub(1, -2) -- Removes b at the end to make it compatible
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -17,7 +17,11 @@ function TocSetCorrectTextureForAmputation(item, player, cicatrized)
|
|||||||
|
|
||||||
|
|
||||||
if cicatrized then
|
if cicatrized then
|
||||||
matched_index = matched_index + 5 -- to use the cicatrized texture
|
if is_hairy then
|
||||||
|
matched_index = matched_index + 5 -- to use the cicatrized texture on hairy bodies
|
||||||
|
else
|
||||||
|
matched_index = matched_index + 10 -- cicatrized texture only, no hairs
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
print("TOC: Setting texture " .. matched_index)
|
print("TOC: Setting texture " .. matched_index)
|
||||||
|
|||||||
@@ -361,7 +361,7 @@ function TheOnlyCure.CutLimb(part_name, surgeon_factor, bandage_table, painkille
|
|||||||
|
|
||||||
--Equip new model for amputation
|
--Equip new model for amputation
|
||||||
local amputation_clothing_item = player:getInventory():AddItem(TocFindAmputatedClothingFromPartName(part_name))
|
local amputation_clothing_item = player:getInventory():AddItem(TocFindAmputatedClothingFromPartName(part_name))
|
||||||
TocSetCorrectTextureForAmputation(amputation_clothing_item, player)
|
TocSetCorrectTextureForAmputation(amputation_clothing_item, player, false)
|
||||||
player:setWornItem(amputation_clothing_item:getBodyLocation(), amputation_clothing_item)
|
player:setWornItem(amputation_clothing_item:getBodyLocation(), amputation_clothing_item)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 79 KiB |
|
Before Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 69 KiB |
|
Before Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 56 KiB |
2
mod.info
@@ -5,5 +5,5 @@ description=Bitten? Not a problem!
|
|||||||
id=Amputation2
|
id=Amputation2
|
||||||
icon=icon.png
|
icon=icon.png
|
||||||
url=https://github.com/ZioPao/The-Only-Cure-But-Better
|
url=https://github.com/ZioPao/The-Only-Cure-But-Better
|
||||||
modversion=0.9.9
|
modversion=0.9.11
|
||||||
pzversion=41.65
|
pzversion=41.65
|
||||||
|
|||||||