From 08891ac9b02531f634742f1d346e87e79f59f66d Mon Sep 17 00:00:00 2001 From: Lyberta Date: Wed, 12 Apr 2017 08:37:32 +0300 Subject: [PATCH] Survival: Proper health and armor giving. --- qcsrc/server/mutators/mutator/gamemode_survival.qc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qcsrc/server/mutators/mutator/gamemode_survival.qc b/qcsrc/server/mutators/mutator/gamemode_survival.qc index 78bd29402..f48164a49 100644 --- a/qcsrc/server/mutators/mutator/gamemode_survival.qc +++ b/qcsrc/server/mutators/mutator/gamemode_survival.qc @@ -1692,9 +1692,8 @@ MUTATOR_HOOKFUNCTION(surv, ItemTouch) case "item_cells": case "droppedweapon": { - // FIXME: proper health pickup function. - player.health += g_pickup_healthmedium; - player.armorvalue += g_pickup_armormedium; + GivePlayerHealth(player, g_pickup_healthmedium); + GivePlayerArmor(player, g_pickup_armormedium); return MUT_ITEMTOUCH_CONTINUE; } } -- 2.39.5