mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-12 23:44:34 +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,7 +88,8 @@ 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);
|
||||
|
|
Loading…
Reference in a new issue