Control x2 hpregen with class property

This commit is contained in:
rubenwardy 2020-03-14 19:59:10 +00:00
parent 32c1faa9e8
commit 85bf7b96d1
2 changed files with 3 additions and 1 deletions

View File

@ -59,6 +59,8 @@ ctf_classes.register("medic", {
cons = {},
color = "#0af",
properties = {
nearby_hpregen = true,
initial_stuff = {
"ctf_bandages:bandage 20",
},

View File

@ -12,7 +12,7 @@ local function regen_update()
local class = get(player)
local tname = ctf.player(pname).team
tnames[pname] = tname
if class.name == "medic" then
if class.properties.nearby_hpregen then
if tname then
medic_by_team[tname][#medic_by_team[tname] + 1] = player:get_pos()
found_medic = true