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

Method Init

source/src/bot/botmanager.cpp:28–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void CBotManager::Init()
29{
30 m_pBotToView = NULL;
31
32 m_iFrameTime = 0;
33 m_iPrevTime = lastmillis;
34 m_sBotSkill = 1; // Default all bots have the skill 'Good'
35
36 CreateSkillData();
37 LoadBotNamesFile();
38 LoadBotTeamsFile();
39 //WaypointClass.Init();
40 lsrand(time(NULL));
41}
42
43void CBotManager::Think()
44{

Callers 1

BeginMapMethod · 0.45

Calls 1

lsrandFunction · 0.85

Tested by

no test coverage detected