mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-29 15:22:29 +00:00
Server: Misc. Co-Op fixes
This commit is contained in:
parent
89742dc652
commit
54d8572321
3 changed files with 13 additions and 14 deletions
|
@ -88,7 +88,7 @@ entity(entity blarg) find_new_enemy =
|
||||||
|
|
||||||
while(targets != world) {
|
while(targets != world) {
|
||||||
// Don't target downed players.
|
// Don't target downed players.
|
||||||
if (targets.downed == true) {
|
if (targets.downed == true || targets.isspec == true) {
|
||||||
targets = find(targets, classname, "player");
|
targets = find(targets, classname, "player");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -176,7 +176,7 @@ void() EndGameSetup =
|
||||||
void() rec_downed =
|
void() rec_downed =
|
||||||
{
|
{
|
||||||
self.downedloop++;
|
self.downedloop++;
|
||||||
if (self.downedloop == 300) {
|
if (self.downedloop >= 300) {
|
||||||
startspectate();
|
startspectate();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,6 +121,17 @@ void() updateDogRound =
|
||||||
|
|
||||||
void() EndRound =
|
void() EndRound =
|
||||||
{
|
{
|
||||||
|
entity who = find(world,classname,"spectator");
|
||||||
|
while(who != world)
|
||||||
|
{
|
||||||
|
if(who.isspec)
|
||||||
|
{
|
||||||
|
self = who;
|
||||||
|
PlayerSpawn();
|
||||||
|
}
|
||||||
|
who = find(who, classname, "spectator");
|
||||||
|
}
|
||||||
|
|
||||||
rounds_change = 4;
|
rounds_change = 4;
|
||||||
SetUpdate(self, UT_ROUNDS_CHANGE, rounds_change, 0, 0);
|
SetUpdate(self, UT_ROUNDS_CHANGE, rounds_change, 0, 0);
|
||||||
if (gotdog && rounds == dogRound) {
|
if (gotdog && rounds == dogRound) {
|
||||||
|
@ -153,18 +164,6 @@ void() PlayerSpawn;
|
||||||
|
|
||||||
void() NewRound =
|
void() NewRound =
|
||||||
{
|
{
|
||||||
entity who = find(world,classname,"spectator");
|
|
||||||
while(who != world)
|
|
||||||
{
|
|
||||||
if(who.isspec)
|
|
||||||
{
|
|
||||||
self = who;
|
|
||||||
PlayerSpawn();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
entity tempe;
|
entity tempe;
|
||||||
round_changetime = 0;
|
round_changetime = 0;
|
||||||
spawn_time = time + 5;
|
spawn_time = time + 5;
|
||||||
|
|
Loading…
Reference in a new issue