From aba631a535e13a4daa2a4d4ac6de6408a1de2c9f Mon Sep 17 00:00:00 2001 From: Vaqtincha Date: Wed, 11 Dec 2024 02:21:44 +0500 Subject: [PATCH] added mp_randomspawn 2 for debugging --- regamedll/dlls/bot/cs_bot_manager.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/regamedll/dlls/bot/cs_bot_manager.cpp b/regamedll/dlls/bot/cs_bot_manager.cpp index 23407e89b..a6d937869 100644 --- a/regamedll/dlls/bot/cs_bot_manager.cpp +++ b/regamedll/dlls/bot/cs_bot_manager.cpp @@ -1288,8 +1288,15 @@ void GetSpawnPositions() { totalSpawns++; //CONSOLE_ECHO("Add spawn at x:%f y:%f z:%f with angle %0.1f slope %0.3f \n", vecOrigin.x, vecOrigin.y, vecOrigin.z, bestAngle.y, area->GetAreaSlope()); - //SET_MODEL(ENT(pPoint->pev), "models/player.mdl"); - //pPoint->pev->sequence = ACT_IDLE; + + // use only for debugging + if (randomspawn.value > 1.0f) + { + SET_MODEL(ENT(pPoint->pev), "models/player.mdl"); + pPoint->pev->sequence = ACT_IDLE; + pPoint->pev->rendermode = kRenderTransAdd; + pPoint->pev->renderamt = 150.0f; + } } } }