rott/kf_sources/KFPatcher/Classes/stub_Syringe.uc
2026-07-14 20:27:09 +07:00

25 lines
560 B
Ucode

class stub_Syringe extends Syringe;
// fix syringe heal ammounts when players die
simulated function bool HackClientStartFire()
{
if (StartFire(1))
{
if (Role < ROLE_Authority)
{
// best idea i've come to
// at least im not running timer like Poosh
if (Level.Game.NumPlayers == 1)
HealBoostAmount = 50;
else
HealBoostAmount = default.HealBoostAmount;
ServerStartFire(1);
}
FireMode[1].ModeDoFire(); // Force to start animating.
return true;
}
return false;
}