Skip to content

Commit

Permalink
Custom Render Color Brightness Implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
krxdev-kaan committed Jul 4, 2020
1 parent 233912c commit 93f352c
Show file tree
Hide file tree
Showing 8 changed files with 271 additions and 180 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ EDIT: Project has reached it's initial release you can go ahead and download :)
- [ ] BSP Parsing would be pretty cool to achieve but im not pretty sure if i can do it.
- [x] Aimbot with some customization.
- [x] WallHack with some customization.
- [x] Custom Render Color Brightness
- [ ] ESP and HealthBar (will include player name, rank, gun, etc.)
- [x] Bunny-Hop
- [x] Anti-Flash
Expand Down
386 changes: 226 additions & 160 deletions WindowsClient/AqHaxCSGO/Forms/MainForm.Designer.cs

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions WindowsClient/AqHaxCSGO/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,11 @@ private void fullBloomSlider_Scroll(object sender, EventArgs e)
{
Globals.FullBloomAmount = ((float)fullBloomSlider.Value) / 10;
}

private void renderBrightnessSlider_Scroll(object sender, EventArgs e)
{
Globals.RenderBrightness = renderBrightnessSlider.Value;
}
#endregion

#region Some Shit For Loading State
Expand Down
19 changes: 11 additions & 8 deletions WindowsClient/AqHaxCSGO/Hacks/WallHack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,17 @@ public static void RenderColorThread()
entity.RenderColor = rco;
}

if (Globals.RenderEnemyOnly) continue;

RenderColor rc = new RenderColor();
rc.r = Globals.RenderColor.R;
rc.g = Globals.RenderColor.G;
rc.b = Globals.RenderColor.B;
rc.a = 255;
entity.RenderColor = rc;
if (!Globals.RenderEnemyOnly)
{
RenderColor rc = new RenderColor();
rc.r = Globals.RenderColor.R;
rc.g = Globals.RenderColor.G;
rc.b = Globals.RenderColor.B;
rc.a = 255;
entity.RenderColor = rc;
}

EngineDLL.ModelAmbientIntensity = Globals.RenderBrightness;
}

Thread.Sleep(Globals.UsageDelay);
Expand Down
20 changes: 10 additions & 10 deletions WindowsClient/AqHaxCSGO/Memory/OffsetManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,16 @@ public static void ScanOffsets()
//dwZoomSensitivityRatioPtr = SigScanner.ClientSigScan("81 F9 ? ? ? ? 75 1A F3 0F 10 05 ? ? ? ? F3 0F 11 45 ? 8B 45 F4 35 ? ? ? ? 89 45 FC EB 0A 8B 01 8B 40 30 FF D0 D9 5D FC A1", 2, 0, true);
dwbSendPackets = SigScanner.EngineSigScan("B3 01 8B 01 8B 40 10 FF D0 84 C0 74 0F 80 BF ? ? ? ? ? 0F 84", 0, 1, true);
//dwppDirect3DDevice9 = SigScanner.ClientSigScan("A1 ? ? ? ? 50 8B 08 FF 51 0C", 1, 0, true);
/*m_pStudioHdr = SigScanner.ClientSigScan("8B B6 ? ? ? ? 85 F6 74 05 83 3E 00 75 02 33 F6 F3 0F 10 44 24", 2, 0, false);
m_yawClassPtr = SigScanner.ClientSigScan("81 F9 ? ? ? ? 75 16 F3 0F 10 05 ? ? ? ? F3 0F 11 45 ? 81 75 ? ? ? ? ? EB 0A 8B 01 8B 40 30 FF D0 D9 5D 0C 8B 55 08", 2, 0, true);
m_pitchClassPtr = SigScanner.ClientSigScan("A1 ? ? ? ? 89 74 24 28", 1, 0, true);
interface_engine_cvar = SigScanner.ClientSigScan("8B 0D ? ? ? ? C7 05", 2, 0, true);
convar_name_hash_table = SigScanner.ClientSigScan("8B 3C 85", 3, 0, true);*/
m_bDormant = SigScanner.ClientSigScan("8A 81 ? ? ? ? C3 32 C0", 2, 8, false);
/*model_ambient_min = SigScanner.EngineSigScan("F3 0F 10 0D ? ? ? ? F3 0F 11 4C 24 ? 8B 44 24 20 35 ? ? ? ? 89 44 24 0C", 4, 0, true);
set_abs_angles = SigScanner.ClientSigScan("55 8B EC 83 E4 F8 83 EC 64 53 56 57 8B F1 E8", 0, 0, true);
set_abs_origin = SigScanner.ClientSigScan("55 8B EC 83 E4 F8 51 53 56 57 8B F1 E8", 0, 0, true);
is_c4_owner = SigScanner.ClientSigScan("56 8B F1 85 F6 74 31", 0, 0, true);*/
//m_pStudioHdr = SigScanner.ClientSigScan("8B B6 ? ? ? ? 85 F6 74 05 83 3E 00 75 02 33 F6 F3 0F 10 44 24", 2, 0, false);
//m_yawClassPtr = SigScanner.ClientSigScan("81 F9 ? ? ? ? 75 16 F3 0F 10 05 ? ? ? ? F3 0F 11 45 ? 81 75 ? ? ? ? ? EB 0A 8B 01 8B 40 30 FF D0 D9 5D 0C 8B 55 08", 2, 0, true);
//m_pitchClassPtr = SigScanner.ClientSigScan("A1 ? ? ? ? 89 74 24 28", 1, 0, true);
//interface_engine_cvar = SigScanner.ClientSigScan("8B 0D ? ? ? ? C7 05", 2, 0, true);
//convar_name_hash_table = SigScanner.ClientSigScan("8B 3C 85", 3, 0, true);*/
//m_bDormant = SigScanner.ClientSigScan("8A 81 ? ? ? ? C3 32 C0", 2, 8, false);
model_ambient_min = SigScanner.EngineSigScan("F3 0F 10 0D ? ? ? ? F3 0F 11 4C 24 ? 8B 44 24 20 35 ? ? ? ? 89 44 24 0C", 4, 0, true);
//set_abs_angles = SigScanner.ClientSigScan("55 8B EC 83 E4 F8 83 EC 64 53 56 57 8B F1 E8", 0, 0, true);
//set_abs_origin = SigScanner.ClientSigScan("55 8B EC 83 E4 F8 51 53 56 57 8B F1 E8", 0, 0, true);
//is_c4_owner = SigScanner.ClientSigScan("56 8B F1 85 F6 74 31", 0, 0, true);*/
force_update_spectator_glow = SigScanner.ClientSigScan("74 07 8B CB E8 ? ? ? ? 83 C7 10", 0, 0, true);
//dwClientCmd = SigScanner.EngineSigScan("55 8B EC 8B 0D ? ? ? ? 81 F9 ? ? ? ? 75 0C A1 ? ? ? ? 35 ? ? ? ? EB 05 8B 01 FF 50 34 50", 0, 0, true);
//Console.WriteLine(dwClientCmd);
Expand Down
1 change: 1 addition & 0 deletions WindowsClient/AqHaxCSGO/Misc/Globals.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ static class Globals
public static bool RenderEnabled = false;
public static bool RenderEnemyOnly = false;
public static Color RenderColor = Color.Red;
public static int RenderBrightness = 1;

public static bool RadarEnabled = false;

Expand Down
15 changes: 15 additions & 0 deletions WindowsClient/AqHaxCSGO/Objects/EngineDLL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,21 @@ public static bool SendPackets
}
}

public static float ModelAmbientIntensity
{
get
{
return Memory.Read<int>(Memory.engineBase + model_ambient_min);
}
set
{
int ptr = Memory.Read<int>(Memory.engineBase + model_ambient_min - 0x2C);
int convertedBrightness = BitConverter.ToInt32(BitConverter.GetBytes(value), 0);
int xored = convertedBrightness ^ ptr;
Memory.Write<int>(Memory.engineBase + model_ambient_min, xored);
}
}

public static int GetModelIndexByName(string modelName)
{
int modelPrecacheTable = Memory.Read<int>(ClientStatePtr + dwClientState_ModelPrecacheTable);
Expand Down
4 changes: 2 additions & 2 deletions WindowsClient/AqHaxCSGO/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Guid("c72f644c-03dc-4323-a253-eb1ad4e924ff")]
[assembly: AssemblyVersion("2.2.0.0")]
[assembly: AssemblyFileVersion("2.2.0.0")]
[assembly: AssemblyVersion("2.3.0.0")]
[assembly: AssemblyFileVersion("2.3.0.0")]

0 comments on commit 93f352c

Please sign in to comment.