mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-10 07:11:51 +00:00
Try to fix something here
This commit is contained in:
parent
4aac2b0474
commit
84d74a916e
2 changed files with 9 additions and 3 deletions
|
@ -449,11 +449,14 @@ void() Sentry_HuntTarget =
|
|||
|
||||
void(entity attacker, float damage) Sentry_Pain =
|
||||
{
|
||||
if (self.health < 0)
|
||||
return;
|
||||
|
||||
// Update the owner's status bar
|
||||
self.real_owner.StatusRefreshTime = time + 0.2;
|
||||
//CH special sbar for eng.
|
||||
self.real_owner.StatusBarScreen = 1;
|
||||
if (self.attack_finished < time)
|
||||
if (self.attack_finished < time && self.enemy == NIL)
|
||||
{
|
||||
self.enemy = attacker;
|
||||
Sentry_FoundTarget();
|
||||
|
|
7
tesla.qc
7
tesla.qc
|
@ -329,15 +329,18 @@ void() Tesla_FoundTarget =
|
|||
|
||||
void(entity attacker, float damage) Tesla_Pain =
|
||||
{
|
||||
if (self.health < 0)
|
||||
return;
|
||||
|
||||
// Update the owner's status bar
|
||||
self.real_owner.StatusRefreshTime = time + 0.2;
|
||||
//CH special sbar for eng.
|
||||
self.real_owner.StatusBarScreen = 4;
|
||||
|
||||
if (!self.waitmax && self.health > 0)
|
||||
if (!self.waitmax)
|
||||
{
|
||||
self.enemy = attacker;
|
||||
self.waitmax = 1;
|
||||
self.waitmax = TRUE;
|
||||
Tesla_FoundTarget();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue