diff --git a/changelog.txt b/changelog.txt index 8ab77a2..14ea876 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,16 @@ +0.9.7 +- Now amputations should spawn in every case, damn hairs. Thanks Dev for the tip! + + +0.9.6 +- Fixed a bug when handling zombie hitting amputated limbs +- Fixed sound looping incessantly after amputating a limb +- Changed how phantom pain occurs +- Fixes to new hook models + + + + 0.9.5 - No more Right Click menu. You'll have to use the TOC Menu from the Medical Check, except for Cheats - Fixes to how amputations are handled diff --git a/media/lua/client/TOC_Visuals.lua b/media/lua/client/TOC_Visuals.lua index 2bbfe51..bd7c642 100644 --- a/media/lua/client/TOC_Visuals.lua +++ b/media/lua/client/TOC_Visuals.lua @@ -1,6 +1,13 @@ function TocSetCorrectTextureForAmputation(item, player) local human_visual = player:getHumanVisual() local texture_string = human_visual:getSkinTexture() + + -- Hairy bodies + if string.find(texture_string, "a$") then + texture_string = texture_string:sub(1, -2) -- Removes b at the end to make it compatible + end + + local matched_index = string.match(texture_string, "%d$") print("TOC: Setting texture " .. matched_index) item:getVisual():setTextureChoice(tonumber(matched_index - 1)) -- TODO why is it correct with -1? diff --git a/mod.info b/mod.info index 0320ca5..1863f2c 100644 --- a/mod.info +++ b/mod.info @@ -5,5 +5,5 @@ description=Bitten? Not a problem! id=Amputation2 icon=icon.png url=https://github.com/ZioPao/The-Only-Cure-But-Better -modversion=0.9.5 +modversion=0.9.7 pzversion=41.65 diff --git a/models_stuff/Hooks/Another_Left_MaleHook.blend b/models_stuff/Hooks/Another_Left_MaleHook.blend index 35085b4..a0b17c7 100644 Binary files a/models_stuff/Hooks/Another_Left_MaleHook.blend and b/models_stuff/Hooks/Another_Left_MaleHook.blend differ diff --git a/models_stuff/Hooks/Another_Left_MaleHook.blend1 b/models_stuff/Hooks/Another_Left_MaleHook.blend1 index b06a057..35085b4 100644 Binary files a/models_stuff/Hooks/Another_Left_MaleHook.blend1 and b/models_stuff/Hooks/Another_Left_MaleHook.blend1 differ diff --git a/models_stuff/new_uv.psd b/models_stuff/new_uv.psd index 25b6848..def7026 100644 Binary files a/models_stuff/new_uv.psd and b/models_stuff/new_uv.psd differ