mirror of
https://git.code.sf.net/p/quake/game-source
synced 2024-11-25 21:31:23 +00:00
bring in the killtarget fixes from quakeworld
This commit is contained in:
parent
a46b5eb518
commit
c1d3e4f3be
2 changed files with 8 additions and 3 deletions
|
@ -179,8 +179,10 @@ void() SUB_CalcAngleMoveDone =
|
||||||
|
|
||||||
void() DelayThink =
|
void() DelayThink =
|
||||||
{
|
{
|
||||||
|
local integer rem = self.killtarget != self.targetname;
|
||||||
activator = self.enemy;
|
activator = self.enemy;
|
||||||
SUB_UseTargets ();
|
SUB_UseTargets ();
|
||||||
|
if (rem)
|
||||||
remove(self);
|
remove(self);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -240,10 +242,11 @@ void() SUB_UseTargets =
|
||||||
//
|
//
|
||||||
if (self.killtarget)
|
if (self.killtarget)
|
||||||
{
|
{
|
||||||
|
local string kt = self.killtarget;
|
||||||
t = world;
|
t = world;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
t = find (t, targetname, self.killtarget);
|
t = find (t, targetname, kt);
|
||||||
if (!t)
|
if (!t)
|
||||||
return;
|
return;
|
||||||
remove (t);
|
remove (t);
|
||||||
|
|
|
@ -530,8 +530,10 @@ void() trigger_onlyregistered_touch =
|
||||||
self.attack_finished = time + 2;
|
self.attack_finished = time + 2;
|
||||||
if (cvar("registered"))
|
if (cvar("registered"))
|
||||||
{
|
{
|
||||||
|
local integer rem = self.targetname != self.killtarget;
|
||||||
self.message = "";
|
self.message = "";
|
||||||
SUB_UseTargets ();
|
SUB_UseTargets ();
|
||||||
|
if (rem)
|
||||||
remove (self);
|
remove (self);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue