MCPcopy Create free account
hub / github.com/assaultcube/AC / idlebots

Function idlebots

source/src/bot/botmanager.cpp:976–991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

974COMMAND(botsshoot, "i");
975
976void idlebots(int *Idle)
977{
978 switch(*Idle)
979 {
980 case 0:
981 BotManager.SetIdleBots(false);
982 conoutf("Bots aren't idle");
983 break;
984 case 1:
985 BotManager.SetIdleBots(true);
986 conoutf("Bots are idle");
987 break;
988 default:
989 intret(BotManager.IdleBots()); break;
990 }
991}
992
993COMMAND(idlebots, "i");
994

Callers

nothing calls this directly

Calls 4

intretFunction · 0.85
SetIdleBotsMethod · 0.80
IdleBotsMethod · 0.80
conoutfFunction · 0.50

Tested by

no test coverage detected