func_healthcharger/func_recharge: Don't let dead players be funny and use them when dead

This commit is contained in:
Marco Cawthorne 2020-08-16 07:36:44 +02:00
parent 85d7dc98e2
commit 6ff467f6ce
2 changed files with 10 additions and 0 deletions

View file

@ -42,6 +42,11 @@ class func_healthcharger:CBaseTrigger
void func_healthcharger::PlayerUse(void)
{
/* let's not let this become too funny... */
if (eActivator.health <= 0) {
return;
}
eActivator.gflags |= GF_USE_RELEASED;
/* First come first serve */

View file

@ -42,6 +42,11 @@ class func_recharge:CBaseTrigger
void func_recharge::PlayerUse(void)
{
/* let's not let this become too funny... */
if (eActivator.health <= 0) {
return;
}
eActivator.gflags |= GF_USE_RELEASED;
/* First come first serve */