Fixed typo, fixed some shit on my end
This commit is contained in:
@@ -203,12 +203,12 @@ function OperateArm(partName, surgeonFact, useOven)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
FixDeepWound(partName)
|
FixDeepWound(player, partName, useOven)
|
||||||
player:transmitModData();
|
player:transmitModData();
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function FixDeepWound(partName)
|
function FixDeepWound(player, partName, useOven)
|
||||||
|
|
||||||
local a_rightArm = {"RightArm", "RightForearm", "RightHand"}
|
local a_rightArm = {"RightArm", "RightForearm", "RightHand"}
|
||||||
local a_rightForearm = {"RightForearm", "RightHand"}
|
local a_rightForearm = {"RightForearm", "RightHand"}
|
||||||
@@ -240,11 +240,17 @@ function FixDeepWound(partName)
|
|||||||
|
|
||||||
|
|
||||||
for k,v in pairs(chosen_array) do
|
for k,v in pairs(chosen_array) do
|
||||||
local tmpBodyPart = bodyDamage:getBodyPart(TOC_getBodyPart(v));
|
local tmpBodyPart = player:getBodyDamage():getBodyPart(TOC_getBodyPart(v));
|
||||||
tmpBodyPart:setDeepWounded(false); -- Basically like stictching
|
tmpBodyPart:setDeepWounded(false); -- Basically like stictching
|
||||||
tmpBodyPart:setDeepWoundTime(0);
|
tmpBodyPart:setDeepWoundTime(0);
|
||||||
bodyPart:setBleeding(true);
|
if useOven then
|
||||||
bodyPart:setBleedingTime(10); -- Reset the bleeding
|
tmpBodyPart:setBleeding(false)
|
||||||
|
tmpBodyPart:setBleedingTime(0) -- no bleeding since it's been cauterized
|
||||||
|
else
|
||||||
|
|
||||||
|
tmpBodyPart:setBleeding(true);
|
||||||
|
tmpBodyPart:setBleedingTime(10); -- Reset the bleeding
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ function ISOperateArm:findArgs()
|
|||||||
local weight = math.floor(self.kit:getWeight() * 10 + 0.5)
|
local weight = math.floor(self.kit:getWeight() * 10 + 0.5)
|
||||||
if weight == 1 then
|
if weight == 1 then
|
||||||
surgeonFact = surgeonFact + 2;
|
surgeonFact = surgeonFact + 2;
|
||||||
elseif weight == surgeonFact2 then
|
elseif weight == surgeonFact then
|
||||||
surgeonFact = surgeonFact + 4;
|
surgeonFact = surgeonFact + 4;
|
||||||
elseif weight == 3 then
|
elseif weight == 3 then
|
||||||
surgeonFact = surgeonFact + 6;
|
surgeonFact = surgeonFact + 6;
|
||||||
|
|||||||
Reference in New Issue
Block a user