mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-27 06:22:23 +00:00
Add the ability to turn sentry revenge off
This commit is contained in:
parent
faae2e29be
commit
6d01c0b83a
2 changed files with 13 additions and 2 deletions
|
@ -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();
|
||||
|
|
7
tesla.qc
7
tesla.qc
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue