diff --git a/media/clothing/clothingItems/Test_Tourniquet_Left.xml b/media/clothing/clothingItems/Surgery_Left_Tourniquet.xml
similarity index 56%
rename from media/clothing/clothingItems/Test_Tourniquet_Left.xml
rename to media/clothing/clothingItems/Surgery_Left_Tourniquet.xml
index a432ecb..54a61e2 100644
--- a/media/clothing/clothingItems/Test_Tourniquet_Left.xml
+++ b/media/clothing/clothingItems/Surgery_Left_Tourniquet.xml
@@ -1,10 +1,10 @@
- test_left_tourniquet
- test_left_tourniquet
+ Surgery\Tourniquet_Left
+ Surgery\Tourniquet_Left
afbab35d-8bd4-4d61-87c7-054651ead1bd
false
false
false
- Prosthesis\wood_base
+ Surgery\tourniquet
\ No newline at end of file
diff --git a/media/clothing/clothingItems/Surgery_Right_Tourniquet.xml b/media/clothing/clothingItems/Surgery_Right_Tourniquet.xml
new file mode 100644
index 0000000..f3117b8
--- /dev/null
+++ b/media/clothing/clothingItems/Surgery_Right_Tourniquet.xml
@@ -0,0 +1,10 @@
+
+
+ Surgery\Tourniquet_Right
+ Surgery\Tourniquet_Right
+ 9a5fe063-63c7-4e6f-81ca-ee77c6678e0d
+ false
+ false
+ false
+ Surgery\tourniquet
+
\ No newline at end of file
diff --git a/media/fileGuidTable.xml b/media/fileGuidTable.xml
index 508557f..c5a3932 100644
--- a/media/fileGuidTable.xml
+++ b/media/fileGuidTable.xml
@@ -78,9 +78,11 @@
- media/clothing/clothingItems/Test_Tourniquet_Left.xml
+ media/clothing/clothingItems/Surgery_Left_Tourniquet.xml
afbab35d-8bd4-4d61-87c7-054651ead1bd
-
-
+
+ media/clothing/clothingItems/Surgery_Right_Tourniquet.xml
+ 9a5fe063-63c7-4e6f-81ca-ee77c6678e0d
+
\ No newline at end of file
diff --git a/media/lua/shared/NPCs/ExtraBodyLocations.lua b/media/lua/shared/NPCs/ExtraBodyLocations.lua
index b35b4c3..69729e6 100644
--- a/media/lua/shared/NPCs/ExtraBodyLocations.lua
+++ b/media/lua/shared/NPCs/ExtraBodyLocations.lua
@@ -1,14 +1,14 @@
-local function addBodyLocationBefore(newLocation, movetoLocation)
+local function addBodyLocationBefore(new_location, move_to_location)
-- FIXME This doesn't really move a body location, it just re-adds it to another index. Find a way to remove it entirely (maybe setExclusive?)
local group = BodyLocations.getGroup("Human")
local list = getClassFieldVal(group, getClassField(group, 1))
- group:getOrCreateLocation(newLocation)
+ group:getOrCreateLocation(new_location)
local newItem = list:get(list:size()-1)
print("TOC: Created new body location" .. newItem:getId())
- list:remove(list:size()-1)
- local i = group:indexOf(movetoLocation)
+ list:remove(newItem) -- We can't use the Index, it works if we pass the item though!
+ local i = group:indexOf(move_to_location)
list:add(i, newItem)
end
diff --git a/media/lua/shared/translate/EN/ContextMenu_EN.txt b/media/lua/shared/translate/EN/ContextMenu_EN.txt
index 5c45e30..cb34141 100644
--- a/media/lua/shared/translate/EN/ContextMenu_EN.txt
+++ b/media/lua/shared/translate/EN/ContextMenu_EN.txt
@@ -1,4 +1,8 @@
ContextMenu_EN = {
+
ContextMenu_Cut_Arm = "Cut arm",
ContextMenu_Operate_Arm = "Operate arm",
+
+ ContextMenu_TourniquetRightSwitch = "Tourniquet on Right Arm",
+ ContextMenu_TourniquetLeftSwitch = "Tourniquet on Left Arm",
}
diff --git a/media/models_X/test_left_tourniquet.fbx b/media/models_X/Surgery/Tourniquet_Left.fbx
similarity index 100%
rename from media/models_X/test_left_tourniquet.fbx
rename to media/models_X/Surgery/Tourniquet_Left.fbx
diff --git a/media/models_X/Surgery/Tourniquet_Right.fbx b/media/models_X/Surgery/Tourniquet_Right.fbx
new file mode 100644
index 0000000..c807f3f
Binary files /dev/null and b/media/models_X/Surgery/Tourniquet_Right.fbx differ
diff --git a/media/scripts/TOC_items.txt b/media/scripts/TOC_items.txt
index 64f1117..54f56ad 100644
--- a/media/scripts/TOC_items.txt
+++ b/media/scripts/TOC_items.txt
@@ -442,19 +442,41 @@ item ProthesisMag3
}
- item Test_Tourniquet_Left
+item Surgery_Left_Tourniquet
{
Weight = 1,
Type = Clothing,
- DisplayCategory = Prosthesis,
- DisplayName = Tourniquet Left,
- ClothingItem = Test_Tourniquet_Left,
+ DisplayCategory = Surgery,
+ DisplayName = Tourniquet - Left Arm,
+ ClothingItem = Surgery_Left_Tourniquet,
BodyLocation = Hands,
- BloodLocation = Hands,
Icon = tourniquet,
+ BloodLocation = Hands,
+ ClothingItemExtra = Surgery_Right_Tourniquet,
+ ClothingItemExtraOption = TourniquetRightSwitch,
+ clothingExtraSubmenu = TourniquetLeftSwitch,
Tooltip = Test,
CanHaveHoles = false,
+ }
+item Surgery_Right_Tourniquet
+ {
+ Weight = 1,
+ Type = Clothing,
+ DisplayCategory = Surgery,
+ DisplayName = Tourniquet - Right Arm,
+ ClothingItem = Surgery_Right_Tourniquet,
+ BodyLocation = Hands,
+ Icon = tourniquet,
+ BloodLocation = Hands,
+ ClothingItemExtra = Surgery_Left_Tourniquet,
+ ClothingItemExtraOption = TourniquetLeftSwitch,
+ clothingExtraSubmenu = TourniquetRightSwitch,
+
+
+
+ Tooltip = Test,
+ CanHaveHoles = false,
}
}
diff --git a/media/textures/Surgery/tourniquet.png b/media/textures/Surgery/tourniquet.png
new file mode 100644
index 0000000..d15a2f9
Binary files /dev/null and b/media/textures/Surgery/tourniquet.png differ
diff --git a/models_stuff/Hooks/tourniquet.blend b/models_stuff/Hooks/tourniquet.blend
new file mode 100644
index 0000000..afcadb7
Binary files /dev/null and b/models_stuff/Hooks/tourniquet.blend differ