]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Survival: Proper health and armor giving.
authorLyberta <lyberta@lyberta.net>
Wed, 12 Apr 2017 05:37:32 +0000 (08:37 +0300)
committerLyberta <lyberta@lyberta.net>
Wed, 12 Apr 2017 05:37:32 +0000 (08:37 +0300)
qcsrc/server/mutators/mutator/gamemode_survival.qc

index 78bd29402fc8696c9ef9bc10fbcd8c93c49160ca..f48164a49c669d1af284156df3147b9cbd8142f1 100644 (file)
@@ -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;
                                }
                        }