Storm/Extended_Interface.hpp

78 lines
2.5 KiB
C++
Raw Normal View History

2024-04-04 03:17:09 +08:00
struct Interface_Structure
{
2024-10-13 10:42:41 +08:00
__int8 Additional_Bytes_1[44];
2024-04-04 03:17:09 +08:00
float Floating_Point;
__int32 Integer;
__int8 Additional_Bytes_3[20];
};
Interface_Structure Interface_Extra_Commands;
2024-10-07 03:45:39 +08:00
Interface_Structure Interface_Interpolate_Extra_Commands;
Interface_Structure Interface_Target_On_Simulation;
Interface_Structure Interface_Riot_Deprioritize;
Interface_Structure Interface_Penetrate_Teammates;
Interface_Structure Interface_Aim_Intersection;
2024-10-09 12:00:21 +08:00
Interface_Structure Interface_Penetration_Damage;
2024-10-07 03:45:39 +08:00
Interface_Structure Interface_Equipment_Distance;
2024-04-04 03:17:09 +08:00
Interface_Structure Interface_Storm_Rotation_Radius;
Interface_Structure Interface_Storm_Radius;
Interface_Structure Interface_Storm_Segments;
Interface_Structure Interface_Storm_Iterations;
Interface_Structure Interface_Storm_Speed;
void Implement_Extended_Interface()
{
2024-11-09 20:31:28 +08:00
auto Create_Interface = [](Interface_Structure* Interface, char* Name, char* Value, void* Handler)
2024-04-04 03:17:09 +08:00
{
2024-11-09 20:31:28 +08:00
using Create_Variable_Type = void(__thiscall*)(Interface_Structure* Interface, char* Name, char* Value, void* Unknown_Parameter_1, void* Unknown_Parameter_2, void* Handler);
2024-04-04 03:17:09 +08:00
2024-11-09 20:31:28 +08:00
Create_Variable_Type((unsigned __int32)Engine_Module + 2636368)(Interface, Name, Value, nullptr, nullptr, Handler);
2024-04-04 03:17:09 +08:00
*(__int32*)((unsigned __int32)Interface + 20) &= ~10;
wprintf(L"[ + ] %hs -> %p\n", Name, Interface);
};
#define Pointer_Name(Interface) &Interface, (char*)#Interface + 10
Create_Interface(Pointer_Name(Interface_Extra_Commands), (char*)"5", nullptr);
2024-04-04 03:17:09 +08:00
2024-11-09 20:31:28 +08:00
Create_Interface(Pointer_Name(Interface_Interpolate_Extra_Commands), (char*)"1", nullptr);
2024-10-07 03:45:39 +08:00
2024-11-09 20:31:28 +08:00
Create_Interface(Pointer_Name(Interface_Target_On_Simulation), (char*)"0", nullptr);
2024-10-07 03:45:39 +08:00
2024-11-09 20:31:28 +08:00
Create_Interface(Pointer_Name(Interface_Riot_Deprioritize), (char*)"0", nullptr);
2024-10-07 03:45:39 +08:00
2024-11-09 20:31:28 +08:00
Create_Interface(Pointer_Name(Interface_Penetrate_Teammates), (char*)"0", nullptr);
2024-10-07 03:45:39 +08:00
2024-11-09 20:31:28 +08:00
Create_Interface(Pointer_Name(Interface_Aim_Intersection), (char*)"1", nullptr);
2024-11-09 20:31:28 +08:00
Create_Interface(Pointer_Name(Interface_Penetration_Damage), (char*)"12", nullptr);
2024-10-09 12:00:21 +08:00
2024-11-09 20:31:28 +08:00
Create_Interface(Pointer_Name(Interface_Equipment_Distance), (char*)"2048", nullptr);
2024-10-07 03:45:39 +08:00
2024-11-09 20:31:28 +08:00
Create_Interface(Pointer_Name(Interface_Storm_Rotation_Radius), (char*)"24", nullptr);
2024-04-04 03:17:09 +08:00
2024-11-09 20:31:28 +08:00
Create_Interface(Pointer_Name(Interface_Storm_Radius), (char*)"8", nullptr);
2024-04-04 03:17:09 +08:00
2024-11-09 20:31:28 +08:00
Create_Interface(Pointer_Name(Interface_Storm_Segments), (char*)"12", nullptr);
2024-04-04 03:17:09 +08:00
2024-11-09 20:31:28 +08:00
Create_Interface(Pointer_Name(Interface_Storm_Iterations), (char*)"16", nullptr);
2024-04-04 03:17:09 +08:00
2024-11-09 20:31:28 +08:00
Create_Interface(Pointer_Name(Interface_Storm_Speed), (char*)"512", nullptr);
2024-04-04 03:17:09 +08:00
}