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

Function addnbot

source/src/bot/botmanager.cpp:942–954  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

940COMMAND(addbot, "sss");
941
942void addnbot(char *arg1, char *arg2, char *arg3)
943{
944 if(!botmode()) return;
945 if (!arg1 || !arg1[0]) return;
946
947 int i = atoi(arg1);
948
949 while(i > 0)
950 {
951 addbot(arg2, arg3, NULL);
952 i--;
953 }
954}
955COMMAND(addnbot, "sss");
956
957void botsshoot(int *Shoot)

Callers

nothing calls this directly

Calls 2

botmodeFunction · 0.85
addbotFunction · 0.85

Tested by

no test coverage detected