Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit d4899e6

Browse files
committed
Un-nerf the medikit
1 parent fba42d1 commit d4899e6

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Data/Base.rte/Devices/Special/Medikit/Medikit.lua

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function Create(self)
2-
self.baseStrength = 8;
3-
self.maxStrength = self.baseStrength * 5;
2+
self.baseStrength = 40;
3+
self.maxStrength = self.baseStrength * 2;
44

55
self.confirmSound = CreateSoundContainer("Confirm", "Base.rte");
66
self.confirmSound.Immobile = false;
@@ -21,12 +21,8 @@ function OnFire(self)
2121
target = ToActor(ToMOSRotating(mo):GetRootParent());
2222
end
2323
if target and (target.Health < target.MaxHealth or target.WoundCount > 0) then
24-
local targetToughnessCoefficient = 1/(math.sqrt(math.abs(target.Mass - target.InventoryMass)) * 0.1 + target.Material.StructuralIntegrity * 0.01);
25-
local strength = self.baseStrength + (self.maxStrength - self.baseStrength) * targetToughnessCoefficient;
26-
local wounds = {};
27-
if target.WoundCount > 0 then
28-
strength = math.max(strength - target:RemoveWounds(math.ceil(strength), true, false, false), self.baseStrength);
29-
end
24+
local targetToughnessCoefficient = 1/(math.sqrt(math.abs(target.Mass - target.InventoryMass) * 0.01) + math.sqrt(target.Material.StructuralIntegrity * 0.01));
25+
local strength = math.max(self.maxStrength - target:RemoveWounds(math.ceil(self.maxStrength * targetToughnessCoefficient), true, false, false), self.baseStrength) * targetToughnessCoefficient;
3026
target.Health = math.min(target.Health + strength, target.MaxHealth);
3127

3228
target:FlashWhite(50);

0 commit comments

Comments
 (0)