Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions medic-syringe-heal/medic-syringe-heal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,15 @@ function checkMedicSyringeHeal(healer)
et.G_Sound(healee, 8) -- GAMESOUND_MISC_REVIVE, todo: import?
et.gentity_set(healee, "pers.lasthealth_client", healer)
et.G_AddSkillPoints(healer, et.SK_FIRST_AID, SKILL_POINTS_ADD)

-- calculate how much health was given and push the stats --
local healAmount = finalHealth - healeeHealth
local healingDone = et.gentity_get(healer, "sess.team_health_given")
local healingReceived = et.gentity_get(healee, "sess.team_health_received")
healingDone = healingDone + healAmount
healingReceived = healingReceived + healAmount
et.gentity_set(healer, "sess.team_health_given", healingDone);
et.gentity_set(healee, "sess.team_health_received", healingReceived);
return 1
end

Expand Down