From 6631813cf904fdb9973bfd02c72b0bee891c2a37 Mon Sep 17 00:00:00 2001 From: Ian Date: Mon, 16 Oct 2023 15:59:22 -0400 Subject: [PATCH] SERVER: Let host engine dictate max AI at once --- source/server/ai/zombie_core.qc | 13 ++++++++++++- source/server/defs/custom.qc | 11 ----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/source/server/ai/zombie_core.qc b/source/server/ai/zombie_core.qc index aed4cf3..baa28ca 100644 --- a/source/server/ai/zombie_core.qc +++ b/source/server/ai/zombie_core.qc @@ -1553,7 +1553,18 @@ void() spawnAllZombEnts = local float i; i = 0; - while(i < MAX_ZOMB) + // cypress -- let host engine dictate + // max ai at once. + +#ifdef FTE + + while(i < 24) + +#else + + while(i < nzp_maxai()) + +#endif // FTE { spawnSingleZombEnt(i); i++; diff --git a/source/server/defs/custom.qc b/source/server/defs/custom.qc index 9adda11..ea5b150 100644 --- a/source/server/defs/custom.qc +++ b/source/server/defs/custom.qc @@ -248,17 +248,6 @@ void() SUB_Null2 = {}; #define VEC_VIEW_OFS '0 0 32' -// FIXME: Limits Quakespasm to 12 zombies lol -#ifdef FTE - -#define MAX_ZOMB 24 - -#else - -#define MAX_ZOMB 12 - -#endif // FTE - vector trace_plane_normal; //