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

Function botsshoot

source/src/bot/botmanager.cpp:957–972  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

955COMMAND(addnbot, "sss");
956
957void botsshoot(int *Shoot)
958{
959 switch(*Shoot)
960 {
961 case 0:
962 BotManager.SetBotsShoot(false);
963 conoutf("Bots won't shoot");
964 break;
965 case 1:
966 BotManager.SetBotsShoot(true);
967 conoutf("Bots will shoot");
968 break;
969 default:
970 intret(BotManager.BotsShoot()); break;
971 }
972}
973
974COMMAND(botsshoot, "i");
975

Callers

nothing calls this directly

Calls 4

intretFunction · 0.85
SetBotsShootMethod · 0.80
BotsShootMethod · 0.80
conoutfFunction · 0.50

Tested by

no test coverage detected