Skip to content

Commit

Permalink
Added "evolveskulk" debug command
Browse files Browse the repository at this point in the history
  • Loading branch information
RGreenlees committed Aug 31, 2023
1 parent edfabb1 commit 993b5b3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions evobot/src/dllapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 993b5b3

Please sign in to comment.