Skip to content

Commit 1a79e2c

Browse files
authored
Add files via upload
1 parent 2e984e1 commit 1a79e2c

13 files changed

Lines changed: 589 additions & 0 deletions

Bot-Manager/Bot-Manager.filters

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="Source Files">
5+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6+
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+
</Filter>
8+
<Filter Include="Header Files">
9+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10+
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
11+
</Filter>
12+
<Filter Include="Resource Files">
13+
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14+
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15+
</Filter>
16+
</ItemGroup>
17+
<ItemGroup>
18+
<ClInclude Include="framework.h">
19+
<Filter>Header Files</Filter>
20+
</ClInclude>
21+
<ClInclude Include="pch.h">
22+
<Filter>Header Files</Filter>
23+
</ClInclude>
24+
<ClInclude Include="sigscan.h">
25+
<Filter>Header Files</Filter>
26+
</ClInclude>
27+
<ClInclude Include="bot.h">
28+
<Filter>Header Files</Filter>
29+
</ClInclude>
30+
</ItemGroup>
31+
<ItemGroup>
32+
<ClCompile Include="dllmain.cpp">
33+
<Filter>Source Files</Filter>
34+
</ClCompile>
35+
<ClCompile Include="pch.cpp">
36+
<Filter>Source Files</Filter>
37+
</ClCompile>
38+
<ClCompile Include="bot.cpp">
39+
<Filter>Source Files</Filter>
40+
</ClCompile>
41+
</ItemGroup>
42+
</Project>

Bot-Manager/Bot-Manager.user

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
4+
<LocalDebuggerAttach>false</LocalDebuggerAttach>
5+
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
6+
</PropertyGroup>
7+
</Project>

Bot-Manager/Bot-Manager.vcxproj

Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Debug|x64">
13+
<Configuration>Debug</Configuration>
14+
<Platform>x64</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|x64">
17+
<Configuration>Release</Configuration>
18+
<Platform>x64</Platform>
19+
</ProjectConfiguration>
20+
</ItemGroup>
21+
<PropertyGroup Label="Globals">
22+
<VCProjectVersion>16.0</VCProjectVersion>
23+
<Keyword>Win32Proj</Keyword>
24+
<ProjectGuid>{2f7b3165-47b0-49ab-9474-06030f811c84}</ProjectGuid>
25+
<RootNamespace>TestDLL</RootNamespace>
26+
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
27+
<ProjectName>Bot-Manager</ProjectName>
28+
</PropertyGroup>
29+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
30+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
31+
<ConfigurationType>DynamicLibrary</ConfigurationType>
32+
<UseDebugLibraries>true</UseDebugLibraries>
33+
<PlatformToolset>v142</PlatformToolset>
34+
<CharacterSet>MultiByte</CharacterSet>
35+
</PropertyGroup>
36+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
37+
<ConfigurationType>DynamicLibrary</ConfigurationType>
38+
<UseDebugLibraries>false</UseDebugLibraries>
39+
<PlatformToolset>v142</PlatformToolset>
40+
<WholeProgramOptimization>true</WholeProgramOptimization>
41+
<CharacterSet>MultiByte</CharacterSet>
42+
</PropertyGroup>
43+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
44+
<ConfigurationType>DynamicLibrary</ConfigurationType>
45+
<UseDebugLibraries>true</UseDebugLibraries>
46+
<PlatformToolset>v142</PlatformToolset>
47+
<CharacterSet>Unicode</CharacterSet>
48+
</PropertyGroup>
49+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
50+
<ConfigurationType>DynamicLibrary</ConfigurationType>
51+
<UseDebugLibraries>false</UseDebugLibraries>
52+
<PlatformToolset>v142</PlatformToolset>
53+
<WholeProgramOptimization>true</WholeProgramOptimization>
54+
<CharacterSet>Unicode</CharacterSet>
55+
</PropertyGroup>
56+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
57+
<ImportGroup Label="ExtensionSettings">
58+
</ImportGroup>
59+
<ImportGroup Label="Shared">
60+
</ImportGroup>
61+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
62+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
63+
</ImportGroup>
64+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
65+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
66+
</ImportGroup>
67+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
68+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
69+
</ImportGroup>
70+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
71+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
72+
</ImportGroup>
73+
<PropertyGroup Label="UserMacros" />
74+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
75+
<LinkIncremental>true</LinkIncremental>
76+
</PropertyGroup>
77+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
78+
<LinkIncremental>false</LinkIncremental>
79+
</PropertyGroup>
80+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
81+
<LinkIncremental>true</LinkIncremental>
82+
</PropertyGroup>
83+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
84+
<LinkIncremental>false</LinkIncremental>
85+
</PropertyGroup>
86+
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
87+
<VcpkgUseStatic>false</VcpkgUseStatic>
88+
</PropertyGroup>
89+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
90+
<ClCompile>
91+
<WarningLevel>Level3</WarningLevel>
92+
<SDLCheck>true</SDLCheck>
93+
<PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS</PreprocessorDefinitions>
94+
<ConformanceMode>true</ConformanceMode>
95+
<PrecompiledHeader>Use</PrecompiledHeader>
96+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
97+
<LanguageStandard>stdcpp17</LanguageStandard>
98+
<LanguageStandard_C>Default</LanguageStandard_C>
99+
</ClCompile>
100+
<Link>
101+
<SubSystem>Windows</SubSystem>
102+
<GenerateDebugInformation>true</GenerateDebugInformation>
103+
<EnableUAC>false</EnableUAC>
104+
<ModuleDefinitionFile>
105+
</ModuleDefinitionFile>
106+
</Link>
107+
</ItemDefinitionGroup>
108+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
109+
<ClCompile>
110+
<WarningLevel>Level3</WarningLevel>
111+
<FunctionLevelLinking>true</FunctionLevelLinking>
112+
<IntrinsicFunctions>true</IntrinsicFunctions>
113+
<SDLCheck>true</SDLCheck>
114+
<PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS</PreprocessorDefinitions>
115+
<ConformanceMode>true</ConformanceMode>
116+
<PrecompiledHeader>Use</PrecompiledHeader>
117+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
118+
</ClCompile>
119+
<Link>
120+
<SubSystem>Windows</SubSystem>
121+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
122+
<OptimizeReferences>true</OptimizeReferences>
123+
<GenerateDebugInformation>true</GenerateDebugInformation>
124+
<EnableUAC>false</EnableUAC>
125+
<ModuleDefinitionFile>
126+
</ModuleDefinitionFile>
127+
</Link>
128+
</ItemDefinitionGroup>
129+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
130+
<ClCompile>
131+
<WarningLevel>Level3</WarningLevel>
132+
<SDLCheck>true</SDLCheck>
133+
<PreprocessorDefinitions>_DEBUG;TESTDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
134+
<ConformanceMode>true</ConformanceMode>
135+
<PrecompiledHeader>Use</PrecompiledHeader>
136+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
137+
</ClCompile>
138+
<Link>
139+
<SubSystem>Windows</SubSystem>
140+
<GenerateDebugInformation>true</GenerateDebugInformation>
141+
<EnableUAC>false</EnableUAC>
142+
<ModuleDefinitionFile>Source.def</ModuleDefinitionFile>
143+
</Link>
144+
</ItemDefinitionGroup>
145+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
146+
<ClCompile>
147+
<WarningLevel>Level3</WarningLevel>
148+
<FunctionLevelLinking>true</FunctionLevelLinking>
149+
<IntrinsicFunctions>true</IntrinsicFunctions>
150+
<SDLCheck>true</SDLCheck>
151+
<PreprocessorDefinitions>NDEBUG;TESTDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
152+
<ConformanceMode>true</ConformanceMode>
153+
<PrecompiledHeader>Use</PrecompiledHeader>
154+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
155+
</ClCompile>
156+
<Link>
157+
<SubSystem>Windows</SubSystem>
158+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
159+
<OptimizeReferences>true</OptimizeReferences>
160+
<GenerateDebugInformation>true</GenerateDebugInformation>
161+
<EnableUAC>false</EnableUAC>
162+
<ModuleDefinitionFile>Source.def</ModuleDefinitionFile>
163+
</Link>
164+
</ItemDefinitionGroup>
165+
<ItemGroup>
166+
<ClInclude Include="acf.hpp" />
167+
<ClInclude Include="bot.hpp" />
168+
<ClInclude Include="framework.h" />
169+
<ClInclude Include="mem.h" />
170+
<ClInclude Include="pch.h" />
171+
</ItemGroup>
172+
<ItemGroup>
173+
<ClCompile Include="bot.cpp" />
174+
<ClCompile Include="dllmain.cpp" />
175+
<ClCompile Include="pch.cpp">
176+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
177+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
178+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
179+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
180+
</ClCompile>
181+
</ItemGroup>
182+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
183+
<ImportGroup Label="ExtensionTargets">
184+
</ImportGroup>
185+
</Project>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<ClCompile Include="bot.cpp">
5+
<Filter>source</Filter>
6+
</ClCompile>
7+
<ClCompile Include="dllmain.cpp">
8+
<Filter>source</Filter>
9+
</ClCompile>
10+
<ClCompile Include="pch.cpp">
11+
<Filter>source</Filter>
12+
</ClCompile>
13+
</ItemGroup>
14+
<ItemGroup>
15+
<ClInclude Include="bot.hpp">
16+
<Filter>headers</Filter>
17+
</ClInclude>
18+
<ClInclude Include="framework.h">
19+
<Filter>headers</Filter>
20+
</ClInclude>
21+
<ClInclude Include="pch.h">
22+
<Filter>headers</Filter>
23+
</ClInclude>
24+
<ClInclude Include="acf.hpp">
25+
<Filter>headers</Filter>
26+
</ClInclude>
27+
<ClInclude Include="mem.h">
28+
<Filter>headers</Filter>
29+
</ClInclude>
30+
</ItemGroup>
31+
<ItemGroup>
32+
<Filter Include="source">
33+
<UniqueIdentifier>{7460dcbe-3b57-4208-a31d-48e32445ad47}</UniqueIdentifier>
34+
</Filter>
35+
<Filter Include="headers">
36+
<UniqueIdentifier>{e404902b-a1db-42d0-8696-8ca3365e80bc}</UniqueIdentifier>
37+
</Filter>
38+
</ItemGroup>
39+
</Project>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup />
4+
</Project>

Bot-Manager/acf.hpp

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#pragma once
2+
#include <cstdint>
3+
#include <minwindef.h>
4+
5+
namespace acf {
6+
// Module Base Addy
7+
inline auto mod_base = reinterpret_cast<uintptr_t>(GetModuleHandle(nullptr));
8+
9+
// Local Player Pointer
10+
inline uintptr_t* LPP = reinterpret_cast<uintptr_t*>(mod_base + 0x10f4f4);
11+
12+
/*
13+
Calling functions internally
14+
(Prototypes)
15+
*/
16+
17+
// Print text to screen
18+
using _PrintF = char* (__cdecl*)(char* sFormat, ...);
19+
// Format string for argument 1
20+
inline char* sFormat = const_cast<char*>("%s:\f%d %s");
21+
inline _PrintF PrintF;
22+
23+
// Spawn single bot into the lobby.
24+
using _Get_Bot_Connected = void(__cdecl*)(BYTE* param_1, const char* b_skill, const char* b_name);
25+
inline _Get_Bot_Connected Get_Bot_Connected;
26+
27+
// Draw beam(s) pointing to all bots in the lobby.
28+
using _Draw_Beam_To_Bots = void(__cdecl*)();
29+
inline _Draw_Beam_To_Bots Draw_Beam_To_Bots;
30+
31+
// Teleport bot to your local player
32+
using _Get_Teleport_Bot = void(__cdecl*)();
33+
inline _Get_Teleport_Bot Get_Teleport_Bot;
34+
35+
// Change whether all bots will shoot or not. (0 = won't shoot, 1 = will shoot)
36+
using _Change_Bots_Shoot = void(__cdecl*)(int* shooting);
37+
inline _Change_Bots_Shoot Change_Bots_Shoot;
38+
39+
// Switch whether bots are idle or not. (0 = no idle, 1 = yes idle)
40+
using _Change_Bot_Idle = void(__cdecl*)(int* idling);
41+
inline _Change_Bot_Idle Change_Bot_Idle;
42+
43+
// Rotate all bots skill
44+
using _Rotate_Bot_Skill = void(__cdecl*)(BYTE* param_1, const char* b_skill);
45+
inline _Rotate_Bot_Skill Rotate_Bot_Skill;
46+
47+
// Kick all bots from current lobby
48+
using _Kick_All_Bots = void(__cdecl*)();
49+
inline _Kick_All_Bots Kick_All_Bots;
50+
}

Bot-Manager/bot.cpp

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#include "pch.h"
2+
#include "bot.hpp"
3+
#include <random>
4+
5+
Bot& Bot::Get()
6+
{
7+
return instance;
8+
}
9+
10+
void Bot::Config()
11+
{
12+
if (this->skill == "none")
13+
skill = "good";
14+
else {
15+
static bool valid = false;
16+
for (auto& s : this->skills)
17+
{
18+
if (this->skill == s)
19+
valid = true;
20+
}
21+
22+
if (!valid)
23+
this->skill = "good";
24+
}
25+
}
26+
27+
std::string Bot::Get_Random_Name(const int length_of_string)
28+
{
29+
static std::string randstr("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz");
30+
std::random_device rd;
31+
std::mt19937 generator(rd());
32+
std::shuffle(randstr.begin(), randstr.end(), generator);
33+
return randstr.substr(0, length_of_string);
34+
}

Bot-Manager/bot.hpp

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#pragma once
2+
#include <string>
3+
#include <array>
4+
5+
class Bot {
6+
public:
7+
std::string skill = "none";
8+
const std::array<const char*, 5> skills = { "bad", "worse", "medium", "good", "best" }; //"good" is the default skill type
9+
10+
// Changing of bots settings
11+
bool shooting = false;
12+
inline static int no_shoot = 0, yes_shoot = 1;
13+
bool idling = true;
14+
inline static int no_idle = 0, yes_idle = 1;
15+
16+
static Bot& Get();
17+
auto Config() -> void;
18+
[[nodiscard]] static std::string Get_Random_Name(int length_of_string);
19+
20+
private:
21+
Bot() = default;
22+
static Bot instance;
23+
};

0 commit comments

Comments
 (0)