Various stuff

- Changed how we apply damage to limbs after cutting one
- Added some new textures for hooks
- Fixed UVs
- Some corrections like bandages not applying after cutting a limb
This commit is contained in:
Pao
2023-01-27 00:20:42 +01:00
parent 79fd46a808
commit c99975cf18
20 changed files with 89 additions and 47 deletions

View File

@@ -69,6 +69,7 @@ function ISCutLimb:findArgs()
local bandage = self.surgeon:getInventory():FindAndReturn('Bandage')
local sterilized_bandage = self.surgeon:getInventory():FindAndReturn('AlcoholBandage')
--local ripped_sheets = self.surgeon:getInventory():FindAndReturn("...")
if sterilized_bandage then
bandage_table.bandage_type = sterilized_bandage:getType()
@@ -79,6 +80,7 @@ function ISCutLimb:findArgs()
elseif bandage then
bandage_table.bandage_type = bandage:getType()
bandage_table.is_bandage_sterilized = false
bandage_table.use_bandage = true
self.surgeon:getInventory():Remove(bandage)
surgeon_factor = surgeon_factor + 2
else
@@ -107,16 +109,9 @@ function ISCutLimb:perform()
TheOnlyCure.CutLimb(self.part_name, surgeon_factor, bandage_table, painkiller_table)
end
if self.patient ~= self.surgeon and isClient() then
SendCutLimb(self.patient, self.part_name, surgeon_factor, bandage_table, painkiller_table)
else
TheOnlyCure.CutLimb(self.part_name, surgeon_factor, bandage_table, painkiller_table)
end
self.surgeon:getXp():AddXP(Perks.Doctor, 400);
ISBaseTimedAction.perform(self);
self.surgeon:getXp():AddXP(Perks.Doctor, 400)
ISBaseTimedAction.perform(self)
end

View File

@@ -41,7 +41,7 @@ function ISInstallProsthesis:perform()
-- local toc_data = self.character:getModData().TOC
--local part_name = TocGetPartNameFromBodyPartType(self.bodyPart:getType())
local body_part_type = TocGetBodyPartTypeFromPartName(self.part_name)
local body_part_type = TocGetBodyPartFromPartName(self.part_name)
-- Check if can be performed. This shouldn't be necessary, but just to be sure
if body_part_type == BodyPartType.UpperArm_L or body_part_type == BodyPartType.UpperArm_R then