Add the ability to turn sentry revenge off

This commit is contained in:
Finny Merrill 2004-03-21 00:36:37 +00:00
parent faae2e29be
commit 6d01c0b83a
2 changed files with 13 additions and 2 deletions

View file

@ -456,7 +456,13 @@ void(entity attacker, float damage) Sentry_Pain =
self.real_owner.StatusRefreshTime = time + 0.2;
//CH special sbar for eng.
self.real_owner.StatusBarScreen = 1;
if (self.attack_finished < time && self.enemy == NIL)
local string st = infokey (NIL, "sentry_revenge");
if (!st)
st = infokey (NIL, "sr");
if ((st == "on" || st == "1" || st == "yes") && (self.attack_finished < time && self.enemy == NIL))
{
self.enemy = attacker;
Sentry_FoundTarget();

View file

@ -333,7 +333,12 @@ void(entity attacker, float damage) Tesla_Pain =
//CH special sbar for eng.
self.real_owner.StatusBarScreen = 4;
if (!self.waitmax)
local string st = infokey (NIL, "sentry_revenge");
if (!st)
st = infokey (NIL, "sr");
if (!self.waitmax && (st == "yes" || st == "1" || st == "on"))
{
self.enemy = attacker;
self.waitmax = TRUE;