This repository has been archived on 2024-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
cathook/include/hacks/FollowBot.hpp
2018-03-29 19:08:31 +02:00

56 lines
1000 B
C++
Executable File

/*
* FollowBot.h
*
* Created on: Mar 19, 2017
* Author: nullifiedcat
*/
#pragma once
#if ENABLE_IPC == 1
#include "common.hpp"
namespace hacks
{
namespace shared
{
namespace followbot
{
enum class EFollowType
{
VECTOR, // When we need to goto a vector
ENTITY // when we dont have a specific steamid, but we still want to follow
// an entity
};
// extern CatCommand move_to_crosshair;
// extern CatCommand follow;
// extern CatCommand follow_entity;
extern CatVar bot;
extern unsigned follow_steamid;
extern int following_idx;
bool IsBot(CachedEntity *entity);
void AddMessageHandlers(ipc::peer_t *peer);
void AfterCreateMove();
#if ENABLE_VISUALS == 1
void Draw();
#endif
void CrumbReset();
void CrumbTopAdd(Vector crumbToAdd);
void CrumbBottomAdd();
void DoWalking();
void DrawFollowbot();
std::pair<float, float> ComputeMove(const Vector &a, const Vector &b);
void WalkTo(const Vector &vector);
unsigned MakeMask();
void SelectEntity(int idx);
}
}
}
#endif