From 993b5b3efbe848f0b135d1fca1f5a7cd6f064c6e Mon Sep 17 00:00:00 2001 From: RGreenlees Date: Thu, 31 Aug 2023 22:45:38 +0100 Subject: [PATCH] Added "evolveskulk" debug command --- evobot/src/dllapi.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/evobot/src/dllapi.cpp b/evobot/src/dllapi.cpp index e200094..02db13e 100644 --- a/evobot/src/dllapi.cpp +++ b/evobot/src/dllapi.cpp @@ -825,6 +825,27 @@ void ClientCommand(edict_t* pEntity) RETURN_META(MRES_SUPERCEDE); } + if (FStrEq(pcmd, "evolveskulk")) + { + if (!NavmeshLoaded()) + { + UTIL_SayText("Navmesh is not loaded", pEntity); + RETURN_META(MRES_SUPERCEDE); + } + + for (int i = 0; i < gpGlobals->maxClients; i++) + { + if (bots[i].is_used) // not respawning + { + if (IsPlayerOnAlienTeam(bots[i].pEdict) && !IsPlayerDead(bots[i].pEdict)) + { + TASK_SetEvolveTask(&bots[i], &bots[i].PrimaryBotTask, bots[i].pEdict->v.origin, IMPULSE_ALIEN_EVOLVE_SKULK, true); + } + } + } + RETURN_META(MRES_SUPERCEDE); + } + if (FStrEq(pcmd, "evolvegorge")) { if (!NavmeshLoaded())