Skip to content

johnathan-clause/cmai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 

Repository files navigation

CAPTAIN'S MODE A.I. (CMAI)

WHAT IS CMAI?

CMAI is a lua module for Defense of the Ancients 2 (DotA 2) bot scripts. CMAI gives bots the capability to pick, ban, and select heroes in Captain's Mode. Users can give custom parameters to alter think time for bots and pick order for drafting.

USAGE

To use CMAI, add the following code to the bottom of the 'hero_selection.lua' script of your desired bot script!
local CMAI = require(GetScriptDirectory() .. '\\cmai\\cmai');
Think = GetGameMode() == GAMEMODE_CM and CMAI.Think or Think;
UpdateLaneAssignments = GetGameMode() == GAMEMODE_CM and CMAI.UpdateLaneAssignments or UpdateLaneAssignments;

Alternatively, you can check the branches of this repository for a branch matching your desired bot script and use the files found there. Simply copy and paste the files from the desired branch into your bot script folder and overwrite any files if asked.

ROLES

Modifying the roles to match those of the bot script you are using CMAI with is highly recommended. Roles can be customized in the '\cmai\roles' lua script.