add command dummies
This commit is contained in:
parent
114f53beb3
commit
7db0c01e3d
@ -17,6 +17,8 @@ float lost_time { 0 };
|
|||||||
float idle_time { 0 };
|
float idle_time { 0 };
|
||||||
int following_idx { 0 };
|
int following_idx { 0 };
|
||||||
|
|
||||||
|
std::vector<int> selection {};
|
||||||
|
|
||||||
void AddMessageHandlers(ipc::peer_t* peer) {
|
void AddMessageHandlers(ipc::peer_t* peer) {
|
||||||
peer->SetCommandHandler(ipc::commands::set_follow_steamid, [](cat_ipc::command_s& command, void* payload) {
|
peer->SetCommandHandler(ipc::commands::set_follow_steamid, [](cat_ipc::command_s& command, void* payload) {
|
||||||
logging::Info("IPC Message: now following %ld", *(unsigned*)&command.cmd_data);
|
logging::Info("IPC Message: now following %ld", *(unsigned*)&command.cmd_data);
|
||||||
@ -31,6 +33,22 @@ CatCommand follow_me("fb_follow_me", "Makes all bots follow you", []() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
CatCommand tool("fb_tool", "Followbot multitool", [](const CCommand& args) {
|
||||||
|
if (args.ArgC() == 1) {
|
||||||
|
|
||||||
|
} else {
|
||||||
|
if (!strcmp(args.Arg(1), "select")) {
|
||||||
|
|
||||||
|
} else if (!strcmp(args.Arg(1), "move")) {
|
||||||
|
|
||||||
|
} else if (!strcmp(args.Arg(1), "stay")) {
|
||||||
|
|
||||||
|
} else if (!strcmp(args.Arg(1), "follow")) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
CatCommand move_to_crosshair("fb_move_to_point", "Moves a bot (or all bots) to crosshair", [](const CCommand& args) {
|
CatCommand move_to_crosshair("fb_move_to_point", "Moves a bot (or all bots) to crosshair", [](const CCommand& args) {
|
||||||
logging::Info("not yet implemented.");
|
logging::Info("not yet implemented.");
|
||||||
});
|
});
|
||||||
@ -102,6 +120,11 @@ void WalkTo(const Vector& vector) {
|
|||||||
g_pUserCmd->sidemove = result.second;
|
g_pUserCmd->sidemove = result.second;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CreateMove() {
|
||||||
|
|
||||||
|
DoWalking();
|
||||||
|
}
|
||||||
|
|
||||||
void DoWalking() {
|
void DoWalking() {
|
||||||
if (!bot) return;
|
if (!bot) return;
|
||||||
following_idx = 0;
|
following_idx = 0;
|
||||||
|
Reference in New Issue
Block a user