We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b223b83 commit 0c61207Copy full SHA for 0c61207
Data/Base.rte/Devices/Special/Medikit/Medikit.lua
@@ -39,6 +39,16 @@ function OnFire(self)
39
local cross = CreateMOSParticle("Particle Heal Effect", "Base.rte");
40
cross.Pos = target.AboveHUDPos + Vector(0, 5);
41
MovableMan:AddParticle(cross);
42
+
43
+ if target.Status == Actor.DEAD and target.Health == target.MaxHealth and target.WoundCount == 0 then
44
+ local newActor = target:Clone();
45
+ target.ToDelete = true;
46
+ newActor:SetControllerMode(Controller.CIM_AI, -1);
47
+ newActor.Status = Actor.STABLE;
48
+ MovableMan:AddActor(newActor);
49
+ newActor:FlashWhite(50);
50
+ ActivityMan:GetActivity():ReportDeath(target.Team, -1);
51
+ end
52
else
53
self.errorSound:Play(self.Pos);
54
if self.Magazine then
0 commit comments