mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-10 14:42:05 +00:00
Server: Find a new target/enemy other than Players in Last Stand
Fixes https://github.com/nzp-team/nzportable/issues/20
This commit is contained in:
parent
4cf879558f
commit
22fb84ac25
2 changed files with 4 additions and 3 deletions
BIN
source/server/.player.qc.kate-swp
Normal file
BIN
source/server/.player.qc.kate-swp
Normal file
Binary file not shown.
|
@ -88,8 +88,9 @@ entity(entity blarg) find_new_enemy =
|
|||
//////////////////////////////
|
||||
while(player) {
|
||||
if (player.downed == true) {
|
||||
return world;
|
||||
}
|
||||
player = find(player,classname,"player");
|
||||
continue;
|
||||
}
|
||||
|
||||
dist = vlen(self.origin - player.origin);
|
||||
if (dist < bestdist) {
|
||||
|
@ -745,4 +746,4 @@ void() Do_Zombie_AI = {
|
|||
Zombie_AI();
|
||||
self = oself;
|
||||
lastzombie = z;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue