Try to fix something here

This commit is contained in:
Finny Merrill 2003-12-14 13:15:13 +00:00
parent 4aac2b0474
commit 84d74a916e
2 changed files with 9 additions and 3 deletions

View file

@ -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();

View file

@ -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();
}
};