diff --git a/media/AnimSets/player/aim/aim_default.xml b/media/AnimSets/player/aim/aim_default.xml new file mode 100644 index 0000000..a89da19 --- /dev/null +++ b/media/AnimSets/player/aim/aim_default.xml @@ -0,0 +1,37 @@ + + + aim_default + Zombie_Idle_FloorOnFront + 4 + Y + false + IdleSpeed + 0.30 + 70.0 + + IsCrawling + BOOL + true + + + Idle + Zombie_Idle_FloorOnFront + 0.3 + 0.3 + 1.2 + + + sneakIdle + Zombie_Idle_FloorOnFront + 0.3 + 0.3 + 1.2 + + + sneakIdleLow + Zombie_Idle_FloorOnFront + 0.3 + 0.3 + 1.2 + + \ No newline at end of file diff --git a/media/AnimSets/player/turning/Bob_NoLegsTurning.xml b/media/AnimSets/player/turning/Bob_NoLegsTurning.xml new file mode 100644 index 0000000..0569b55 --- /dev/null +++ b/media/AnimSets/player/turning/Bob_NoLegsTurning.xml @@ -0,0 +1,14 @@ + + + turn_idle_180L_craw; + Zombie_Crawl + + + + + + IsCrawling + BOOL + true + + \ No newline at end of file diff --git a/media/lua/client/TOC_HelperFunctions.lua b/media/lua/client/TOC_HelperFunctions.lua index 375403a..2bb23c0 100644 --- a/media/lua/client/TOC_HelperFunctions.lua +++ b/media/lua/client/TOC_HelperFunctions.lua @@ -88,4 +88,18 @@ function TocPopulateCanBeHeldTable(can_be_held, limbs_data) end end +end + + + + + +----------------------------------------- +function TocCheckLegsAmputations(mod_data) + + if mod_data.TOC.Limbs["Left_Foot"].is_cut or mod_data.TOC.Limbs["Right_Foot"].is_cut then + SetMissingFootAnimation(true) + end + + end \ No newline at end of file diff --git a/media/lua/client/TOC_Init.lua b/media/lua/client/TOC_Init.lua index c371df6..6616442 100644 --- a/media/lua/client/TOC_Init.lua +++ b/media/lua/client/TOC_Init.lua @@ -257,6 +257,7 @@ function TheOnlyCure.InitTheOnlyCure(_, player) else TocCheckCompatibilityWithOlderVersions(mod_data) TocUpdateBaseData(mod_data) -- Since it's gonna be common to update stuff + TocCheckLegsAmputations(mod_data) end end