Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions TempleWare-External/TempleWare-External.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
Expand Down Expand Up @@ -71,7 +71,10 @@
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<IncludePath>external\json;$(IncludePath)</IncludePath>
<IncludePath>external\json;$(IncludePath);$(ProjectDir)external\json</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<IncludePath>$(VC_IncludePath);$(WindowsSDK_IncludePath);;$(ProjectDir)external\json</IncludePath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
Expand Down Expand Up @@ -109,10 +112,12 @@
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp20</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>d3d9.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
Expand Down
5 changes: 5 additions & 0 deletions TempleWare-External/imgui.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Window][Debug##Default]
Pos=60,60
Size=400,400
Collapsed=0

12 changes: 6 additions & 6 deletions TempleWare-External/source/features/glow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@ namespace features {
const uintptr_t localPlayerController = memory.Read<uintptr_t>(globals::client + offsets::dwLocalPlayerController);
if (!localPlayerController) return;

const int localTeam = memory.Read<int>(localPlayerController + offsets::m_iTeamNum);
const int localTeam = memory.Read<short>(localPlayerController + offsets::m_iTeamNum);
const uintptr_t entityList = memory.Read<uintptr_t>(globals::client + offsets::dwEntityList);
if (!entityList) return;

for (int i = 1; i < 64; ++i) {
const uintptr_t listEntry = memory.Read<uintptr_t>(entityList + ((8 * (i & 0x7FFF)) >> 9) + 16);
const uintptr_t listEntry = memory.Read<uintptr_t>(entityList + (8 * (i >> 9)) + 16);
if (!listEntry) continue;

const uintptr_t player = memory.Read<uintptr_t>(listEntry + 120 * (i & 0x1FF));
const uintptr_t player = memory.Read<uintptr_t>(listEntry + 112 * (i & 0x1FF));
if (!player) continue;

const int playerTeam = memory.Read<int>(player + offsets::m_iTeamNum);
const short playerTeam = memory.Read<short>(player + offsets::m_iTeamNum);
if (playerTeam == localTeam) continue;

const uint32_t playerPawn = memory.Read<uint32_t>(player + offsets::m_hPlayerPawn);
if (!playerPawn) continue;

const uintptr_t listEntry2 = memory.Read<uintptr_t>(entityList + ((8 * (playerPawn & 0x7FFF)) >> 9) + 16);
const uintptr_t listEntry2 = memory.Read<uintptr_t>(entityList + 8 * ((playerPawn & 0x7FFF) >> 9) + 16);
if (!listEntry2) continue;

const uintptr_t playerCsPawn = memory.Read<uintptr_t>(listEntry2 + 120 * (playerPawn & 0x1FF));
const uintptr_t playerCsPawn = memory.Read<uintptr_t>(listEntry2 + 112 * (playerPawn & 0x1FF));
if (!playerCsPawn) continue;

const int health = memory.Read<int>(playerCsPawn + offsets::m_iHealth);
Expand Down
6 changes: 3 additions & 3 deletions TempleWare-External/source/features/triggerbot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace features
}

std::uintptr_t localPlayer = memory.Read<std::uintptr_t>(globals::client + offsets::dwLocalPlayerPawn);
BYTE team = memory.Read<BYTE>(localPlayer + offsets::m_iTeamNum);
short team = memory.Read<short>(localPlayer + offsets::m_iTeamNum);

if (!globals::TriggerBotIgnoreFlash)
{
Expand All @@ -56,12 +56,12 @@ namespace features
continue;

std::uintptr_t entityList = memory.Read<std::uintptr_t>(globals::client + offsets::dwEntityList);
std::uintptr_t entity = memory.Read<std::uintptr_t>(memory.Read<std::uintptr_t>(entityList + 0x8 * (crosshairEntityIndex >> 9) + 0x10) + 120 * (crosshairEntityIndex & 0x1ff));
std::uintptr_t entity = memory.Read<std::uintptr_t>(memory.Read<std::uintptr_t>(entityList + 8 * (crosshairEntityIndex >> 9) + 16) + 112 * (crosshairEntityIndex & 0x1FF));
if (!entity)
continue;

// Skip teammate or dead target (optional)
if (globals::TriggerBotTeamCheck && team == memory.Read<BYTE>(entity + offsets::m_iTeamNum))
if (globals::TriggerBotTeamCheck && team == memory.Read<short>(entity + offsets::m_iTeamNum))
continue;

if (memory.Read<int>(entity + offsets::m_iHealth) <= 0)
Expand Down
4 changes: 3 additions & 1 deletion TempleWare-External/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ int __stdcall wWinMain(HINSTANCE instance, HINSTANCE previousInstance, PWSTR arg

while (globals::isRunning)
{
if (GetAsyncKeyState(VK_END) & 0x8000)
if ((GetAsyncKeyState(VK_END) & 0x8000) ||
(GetAsyncKeyState(VK_INSERT) & 0x8000) ||
(GetAsyncKeyState(VK_HOME) & 0x8000))
{
windowVisible = !windowVisible;
ShowWindow(gui::window, windowVisible ? SW_SHOW : SW_HIDE);
Expand Down
2 changes: 1 addition & 1 deletion TempleWare-External/source/offsets/offsets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ bool offsets::UpdateOffset()
m_bGlowing= client_dllJson["CGlowProperty"]["fields"]["m_bGlowing"];
m_bIsScoped= client_dllJson["C_CSPlayerPawn"]["fields"]["m_bIsScoped"];
attack= buttonsJson["client.dll"]["attack"];
m_iIDEntIndex= client_dllJson["C_CSPlayerPawnBase"]["fields"]["m_iIDEntIndex"];;
m_iIDEntIndex= client_dllJson["C_CSPlayerPawn"]["fields"]["m_iIDEntIndex"];;
flFlashDuration= client_dllJson["C_CSPlayerPawnBase"]["fields"]["m_flFlashDuration"];
m_iShotsFired = client_dllJson["C_CSPlayerPawn"]["fields"]["m_iShotsFired"];
m_aimPunchAngle = client_dllJson["C_CSPlayerPawn"]["fields"]["m_aimPunchAngle"];
Expand Down