Skip to content

Commit

Permalink
Merge pull request #59 from ByteCorum/WIP
Browse files Browse the repository at this point in the history
added offsets file from cs2-dumper
  • Loading branch information
ByteCorum authored May 26, 2024
2 parents 5241c0f + 7b82339 commit 2d1c7c7
Show file tree
Hide file tree
Showing 5 changed files with 6,862 additions and 6,800 deletions.
1 change: 1 addition & 0 deletions DragonBurn/DragonBurn.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@
<ClInclude Include="Game.h" />
<ClInclude Include="MenuConfig.hpp" />
<ClInclude Include="Offsets.h" />
<ClInclude Include="OffsetsList\Client.hpp" />
<ClInclude Include="OffsetsList\Offsets.hpp" />
<ClInclude Include="OS-ImGui\imgui\imconfig.h" />
<ClInclude Include="OS-ImGui\imgui\imgui.h" />
Expand Down
1 change: 1 addition & 0 deletions DragonBurn/DragonBurn.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
<ClInclude Include="Resources\Sounds.h" />
<ClInclude Include="Features\Legitbot.hpp" />
<ClInclude Include="Resources\font.h" />
<ClInclude Include="OffsetsList\Client.hpp" />
<ClInclude Include="OffsetsList\Offsets.hpp" />
</ItemGroup>
<ItemGroup>
Expand Down
24 changes: 14 additions & 10 deletions DragonBurn/Offsets.h
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
#pragma once
#include <Windows.h>
#include "Utils/ProcessManager.hpp"
#include "OffsetsList/Client.hpp"
#include "OffsetsList/Offsets.hpp"

namespace dll = cs2_dumper::schemas::client_dll;
namespace offsets = cs2_dumper::offsets::client_dll;
namespace offsetsInput = cs2_dumper::offsets::inputsystem_dll;

namespace Offset
{
inline long long CS2ver = 8926190;

//https://github.com/a2x/cs2-dumper/blob/main/output/offsets.json
inline DWORD EntityList = 26882856; //dwEntityList
inline DWORD Matrix = 27284176; //dwViewMatrix
inline DWORD ViewAngle = 27337880; //dwViewAngles
inline DWORD LocalPlayerController = 27210392; //dwLocalPlayerController
inline DWORD LocalPlayerPawn = 25221912; //dwLocalPlayerPawn
inline DWORD GlobalVars = 25172976; //dwGlobalVars
inline DWORD PlantedC4 = 27304952; //dwPlantedC4
inline DWORD InputSystem = 231376; //dwInputSystem
inline DWORD Sensitivity = 27269560; //dwSensitivity
//https://github.com/a2x/cs2-dumper/blob/main/output/offsets.hpp
inline DWORD EntityList = offsets::dwEntityList;
inline DWORD Matrix = offsets::dwViewMatrix;
inline DWORD ViewAngle = offsets::dwViewAngles;
inline DWORD LocalPlayerController = offsets::dwLocalPlayerController;
inline DWORD LocalPlayerPawn = offsets::dwLocalPlayerPawn;
inline DWORD GlobalVars = offsets::dwGlobalVars;
inline DWORD PlantedC4 = offsets::dwPlantedC4;
inline DWORD InputSystem = offsetsInput::dwInputSystem;
inline DWORD Sensitivity = offsets::dwSensitivity;

//https://github.com/a2x/cs2-dumper/blob/main/output/client.dll.hpp
struct
{
DWORD IsAlive = dll::CCSPlayerController::m_bPawnIsAlive;
Expand Down
Loading

0 comments on commit 2d1c7c7

Please sign in to comment.