diff --git a/changelog.txt b/changelog.txt index cee3714..2c4d610 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,11 @@ +0.9.14 +- Optimizations +- New icon for the mod +- Added a dirtyness malus for cicatrization, you'll have to keep your wound clean while it's healing (wash it you animal) +- When trying to equip a prosthesis from the inventory you'll get a message to let you know that you're doing it wrong +- Added explicit support to Left Is Right, making it work a lot better when you've got an amputated right limb + + 0.9.13 - Some little optimizations - Fixed a bug that made Fancy Handwork compat not work as intended diff --git a/icon.png b/icon.png index 942a24b..c2956d5 100644 Binary files a/icon.png and b/icon.png differ diff --git a/media/lua/client/TOC_ProsthesisMethods.lua b/media/lua/client/TOC_ProsthesisMethods.lua index e693744..8815726 100644 --- a/media/lua/client/TOC_ProsthesisMethods.lua +++ b/media/lua/client/TOC_ProsthesisMethods.lua @@ -59,4 +59,143 @@ function TheOnlyCure.UnequipProsthesis(patient, part_name, equipped_prosthesis) end +end + + +--------------------------------------------------------------------------------------------- +-- TEST MODULAR SYSTEM +--------------------------------------------------------------------------------------------- + +function TocModular() + + + -- Should affect comfort, so mobility (equal speed of actions) + local prost_straps = { + "leather_strap", - + "sheet_strap" + } + + -- A better base has a better resistance. During use it's gonna break sooner or later so a leather base is the best inbetween + local prost_base_forearm = { + "leather_base_forearm", -- Good resistance and speed + "wood_base_forearm", -- Shitty resistance and low speed + "metal_base_forearm" -- Really high resistance and very low speed + } + + local prost_base_hand = { + "wood_base_hand", + "metal_base_hand" + } + + + + local prost_top = { + "metal_hook", -- Decent action speed (around 0.75), good durability, restores hand + "metal_knife", -- Doesn't count as an hand, but substitute the primary attack... Gonna need a way to disable it to make LIR work (retractable) + "wooden_hook", -- Shitty action speed (around 0.3), bad durability, restores hand + "metal_hand" -- Good action speed, amazing durability, restores hand + } + + + + + local TOC_straps = { + leather_strap = { + time_modifier = 1, + durability = 1, + }, + sheet_strap = { + time_modifier = 0.3, + durability = 0.4 + } + } + + local TOC_base_lowerarm = { + leather_base = { + durability = 1, + time_modifier = 1 + }, + wood_base = { + durability = 1, + time_modifier = 1, + }, + metal_base = { + durability = 1, + time_modifier = 1, + } + } + + + local TOC_base_hand = { + wood_base = { + durability = 1, + time_modifier = 1, + }, + metal_base = { + durability = 1, + time_modifier = 1, + } + } + + + + + + local TOC_top = { + metal_hook = { + type = "Normal", -- restores functioning hand + durability = 1, + time_modifier = 1, + }, + wooden_hook = { + type = "Normal", + durability = 1, + time_modifier = 1, + }, + + metal_hand = { + type = "Normal", + durability = 1, + time_modifier = 1, + }, + + metal_knife = { + type = "Attack" + } + + + } + + + + + -- We need A LOT of recipes... or use another menu from the toc one + + -- RECIPES FOR FOREARM = 24 RECIPES in total + -- Would be 48 items in TOC_items since we need them for both sides + + + -- RECIPES FOR HAND = 8 RECIPES in total + -- Would be in total 16 items + + + + -- TOTAL = 64 ITEMS and 32 RECIPES + + -- Leather strap + leather base forearm + metal hook + + + + + + + -- Base Item that can be crafted\found + + -- Different type of hooks + + -- Addons that can be added to the base item + + + -- Equip and unequip pretty much the same + end \ No newline at end of file diff --git a/media/scripts/TOC_items.txt b/media/scripts/TOC_items.txt index 31b6b0f..f06ba7b 100644 --- a/media/scripts/TOC_items.txt +++ b/media/scripts/TOC_items.txt @@ -150,6 +150,11 @@ imports /************************ Prosthesis clothing item ************************/ + + +/* Right Hand, Right Forearm, Right UpperArm,*/ +/* Left Hand, Left Forearm, Left Upperarm */ + item Prost_Right_Hand_WoodenHook { Weight = 1, diff --git a/mod.info b/mod.info index 762ed39..6563eb7 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.13 +modversion=0.9.15 pzversion=41.65 diff --git a/models_stuff/Modular_prost.psd b/models_stuff/Modular_prost.psd new file mode 100644 index 0000000..d0d97c3 Binary files /dev/null and b/models_stuff/Modular_prost.psd differ diff --git a/modular_prosthesis_item.txt b/modular_prosthesis_item.txt new file mode 100644 index 0000000..fb9c904 --- /dev/null +++ b/modular_prosthesis_item.txt @@ -0,0 +1,401 @@ + +/* LOWERARM POSSIBLE PROSTHESIS COMBINATIONS */ + + + +/* Leather strap, leather base, metal hand */ +item ProstLowerArm_LeatherStrap_LeatherBase_MetalHand + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + +/* Leather strap, Wooden base, metal hand */ +item ProstLowerArm_LeatherStrap_WoodenBase_MetalHand + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + +/* Leather strap, Metal base, metal hand */ +item ProstLowerArm_LeatherStrap_MetalBase_MetalHand + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + +/* Leather strap, leather base, Metal Hook */ +item ProstLowerArm_LeatherStrap_LeatherBase_MetalHook + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + +/* Leather strap, Wooden base, Metal Hook */ +item ProstLowerArm_LeatherStrap_WoodenBase_MetalHook + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + +/* Leather strap, Metal base, Metal Hook */ +item ProstLowerArm_LeatherStrap_MetalBase_Metalook + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + + +/* Leather strap, leather base, Metal Knife */ +item ProstLowerArm_LeatherStrap_LeatherBase_MetalKnife + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + +/* Leather strap, Wooden base, Metal Knife */ +item ProstLowerArm_LeatherStrap_WoodenBase_MetalKnife + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + +/* Leather strap, Metal base, Metal Knife */ +item ProstLowerArm_LeatherStrap_MetalBase_MetalKnife + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + + + + +/* Leather strap, leather base, Wooden Hook */ +item ProstLowerArm_LeatherStrap_LeatherBase_WoodenHook + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + +/* Leather strap, Wooden base, Wooden Hook */ +item ProstLowerArm_LeatherStrap_WoodenBase_WoodenHook + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + +/* Leather strap, Metal base, Wooden Hook */ +item ProstLowerArm_LeatherStrap_MetalBase_WoodenHook + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + + + + +/* Sheet strap, leather base, metal hand */ +item ProstLowerArm_LeatherStrap_LeatherBase_MetalHand + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + +/* Sheet strap, Wooden base, metal hand */ +item ProstLowerArm_SheetStrap_WoodenBase_MetalHand + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + +/* Sheet strap, Metal base, metal hand */ +item ProstLowerArm_SheetStrap_MetalBase_MetalHand + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + +/* Sheet strap, leather base, Metal Hook */ +item ProstLowerArm_SheetStrap_LeatherBase_MetalHook + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + +/* Sheet strap, Wooden base, Metal Hook */ +item ProstLowerArm_SheetStrap_WoodenBase_MetalHook + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + +/* Sheet strap, Metal base, Metal Hook */ +item ProstLowerArm_SheetStrap_MetalBase_Metalook + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + + +/* Sheet strap, leather base, Metal Knife */ +item ProstLowerArm_SheetStrap_LeatherBase_MetalKnife + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + +/* Sheet strap, Wooden base, Metal Knife */ +item ProstLowerArm_SheetStrap_WoodenBase_MetalKnife + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + +/* Sheet strap, Metal base, Metal Knife */ +item ProstLowerArm_SheetStrap_MetalBase_MetalKnife + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + + + + +/* Sheet strap, leather base, Wooden Hook */ +item ProstLowerArm_SheetStrap_LeatherBase_WoodenHook + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + +/* Sheet strap, Wooden base, Wooden Hook */ +item ProstLowerArm_SheetStrap_WoodenBase_WoodenHook + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + +/* Sheet strap, Metal base, Wooden Hook */ +item ProstLowerArm_SheetStrap_MetalBase_WoodenHook + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + + + + +/* HANDS POSSIBLE PROSTHESIS COMBINATIONS */ + +/* Wooden Base, Metal Hand */ +item ProstHand_WoodenBase_MetalHand + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } +/* Wooden Base, Metal Hook */ +item ProstHand_WoodenBase_MetalHook + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } +/* Wooden Base, Metal Knife */ +item ProstHand_WoodenBase_MetalKnife + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } +/* Wooden Base, Wooden Hook */ +item ProstHand_WoodenBase_WoodenHook + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } + + + + +/* Metal Base, Metal Hand */ +item ProstHand_MetalBase_MetalHand + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } +/* Metal Base, Metal Hook */ +item ProstHand_MetalBase_MetalHook + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } +/* Metal Base, Metal Knife */ +item ProstHand_MetalBase_MetalKnife + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } +/* Metal Base, Wooden Hook */ +item ProstHand_MetalBase_WoodenHook + { + Weight = 1, + Type = Normal, + DisplayCategory = Prosthesis, + DisplayName = DisplayName_WoodenHook, + Icon = woodenHook, + Tooltip = Tooltip_prosthesic_limb, + WorldStaticModel = TOC.WoodenHook, + } \ No newline at end of file