Replace medic syringe heal option by Lua
Replace g_misc 2 option "medic syringe heal" by a Lua script and remove it from the codebase.
(talking about revive-kill mechanic)
ryven: kill-revive is good mechanics, it actually serves own purpose, et is full of these little mechanics that are not realistic but they are actually doing well for the balance, like in case of kill-revive you are paralyzing your teammate for a moment or two, which itself is adding something to the strategy enemy can take
spyhawk: @ryven yeah maybe. I might be more annoyed by the existence of the "medic syringe heal" g_misc option (I think it heals only when the health is lower than half, so medic shoot the player a little to quick heal them)
ryven: @spyhawk it’s the one where you can heal non wounded player? then yeah, that’s such a lame feature, makes medics more lazy and quite unfair
kemon: stuff like that should go in a separate mod. :smile:
ryven: yeah, exactly what i wanted to propose with my lua modules idea
spyhawk: yeah. It the kind of stuff we added while being half convinced it was a good idea.
- externalized medic syringe healing feature to be implemented in Lua
instead of C code
- extended Lua API with new constants, and auxiliary functions
- fixed bug when 1 syringe ammo was lost on failed healing/reviving
- fixed bug when Lua vm stack was uncontrollably growing after each hook