Skip to content

Commit 2e449f6

Browse files
authored
RaveHack
Update Internal
1 parent 020b48c commit 2e449f6

28 files changed

Lines changed: 86424 additions & 0 deletions

Hacks.cs

Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,182 @@
1+
using System.Collections.Generic;
2+
using UnityEngine;
3+
using System;
4+
using System.Linq;
5+
6+
namespace RaveHack
7+
{
8+
public class Hacks : MonoBehaviour
9+
{
10+
public float maxDistance = 1000f;
11+
public bool showBoxESP = true;
12+
public bool showNameESP = true;
13+
public bool showDistanceESP = true;
14+
public bool enableESP = true;
15+
16+
public bool teamCheck = true;
17+
18+
public bool enableSpeedHack = false;
19+
public float InjectedSpeedMultiplier = 5f;
20+
21+
public bool enableHealthHack = false;
22+
public float InjectedHealthHack = 50000f;
23+
24+
25+
public float flySpeed = 10f;
26+
27+
public Color espColor = Color.red;
28+
29+
private GUIStyle labelStyle;
30+
31+
void Start()
32+
{
33+
labelStyle = new GUIStyle();
34+
labelStyle.normal.textColor = Color.white;
35+
labelStyle.fontSize = 12;
36+
}
37+
38+
void Update()
39+
{
40+
var player = LocalPlayer.actor;
41+
42+
if (enableSpeedHack && player != null && player.controller != null)
43+
player.speedMultiplier = InjectedSpeedMultiplier;
44+
45+
if (enableHealthHack && player != null)
46+
player.health = InjectedHealthHack;
47+
}
48+
49+
void OnGUI()
50+
{
51+
DrawGUI();
52+
DrawESP();
53+
}
54+
55+
56+
57+
private Vector2 scrollPos;
58+
59+
void DrawGUI()
60+
{
61+
GUILayout.BeginArea(new Rect(10, 10, 260, 500), GUI.skin.box);
62+
scrollPos = GUILayout.BeginScrollView(scrollPos, GUILayout.Width(250), GUILayout.Height(480));
63+
64+
GUILayout.Label("RaveHack");
65+
66+
enableESP = GUILayout.Toggle(enableESP, "Enable ESP");
67+
68+
if (enableESP)
69+
{
70+
showBoxESP = GUILayout.Toggle(showBoxESP, "Box ESP");
71+
showNameESP = GUILayout.Toggle(showNameESP, "Name ESP");
72+
showDistanceESP = GUILayout.Toggle(showDistanceESP, "Distance ESP");
73+
teamCheck = GUILayout.Toggle(teamCheck, "Team Check");
74+
75+
GUILayout.Space(10);
76+
GUILayout.Label("ESP Color:");
77+
espColor = RGBSlider(espColor);
78+
79+
GUILayout.Space(10);
80+
maxDistance = GUILayout.HorizontalSlider(maxDistance, 50f, 3000f);
81+
GUILayout.Label($"ESP Distance: {Mathf.RoundToInt(maxDistance)}m");
82+
83+
}
84+
85+
86+
87+
88+
89+
GUILayout.Space(10);
90+
enableSpeedHack = GUILayout.Toggle(enableSpeedHack, "Speed Hack");
91+
if (enableSpeedHack)
92+
{
93+
InjectedSpeedMultiplier = GUILayout.HorizontalSlider(InjectedSpeedMultiplier, 1f, 10f);
94+
GUILayout.Label($"Speed Multiplier: {InjectedSpeedMultiplier:F1}");
95+
}
96+
97+
enableHealthHack = GUILayout.Toggle(enableHealthHack, "Infinite Health");
98+
99+
GUILayout.EndScrollView();
100+
GUILayout.EndArea();
101+
}
102+
103+
104+
Color RGBSlider(Color c)
105+
{
106+
c.r = GUILayout.HorizontalSlider(c.r, 0, 1);
107+
c.g = GUILayout.HorizontalSlider(c.g, 0, 1);
108+
c.b = GUILayout.HorizontalSlider(c.b, 0, 1);
109+
return c;
110+
}
111+
112+
void DrawESP()
113+
{
114+
if (!enableESP) return;
115+
116+
var localActor = ActorManager.instance?.player;
117+
if (localActor == null) return;
118+
119+
foreach (var actor in ActorManager.instance.actors)
120+
{
121+
if (actor == null || actor.dead || actor == localActor) continue;
122+
if (teamCheck && actor.team == localActor.team) continue;
123+
124+
float distance = Vector3.Distance(localActor.transform.position, actor.transform.position);
125+
if (distance > maxDistance) continue;
126+
127+
Vector3 bottom = actor.transform.position;
128+
Vector3 top = bottom + Vector3.up * 2.0f;
129+
130+
Vector3 screenBottom = Camera.main.WorldToScreenPoint(bottom);
131+
Vector3 screenTop = Camera.main.WorldToScreenPoint(top);
132+
133+
if (screenBottom.z < 0 || screenTop.z < 0) continue;
134+
135+
screenBottom.y = Screen.height - screenBottom.y;
136+
screenTop.y = Screen.height - screenTop.y;
137+
138+
float height = screenBottom.y - screenTop.y;
139+
float width = height / 2;
140+
141+
if (showBoxESP)
142+
DrawBox(screenTop.x - width / 2, screenTop.y, width, height, espColor);
143+
144+
if (showNameESP)
145+
{
146+
var namePos = new Vector2(screenTop.x, screenTop.y - 15);
147+
DrawLabel(namePos, actor.name, espColor);
148+
}
149+
150+
if (showDistanceESP)
151+
{
152+
var distPos = new Vector2(screenBottom.x, screenBottom.y + 5);
153+
DrawLabel(distPos, $"{distance:F1}m", espColor);
154+
}
155+
}
156+
}
157+
158+
void DrawLabel(Vector2 position, string text, Color color)
159+
{
160+
GUIStyle style = new GUIStyle(GUI.skin.label);
161+
style.normal.textColor = color;
162+
style.alignment = TextAnchor.MiddleCenter;
163+
style.fontSize = 12;
164+
GUI.Label(new Rect(position.x - 50, position.y, 100, 20), text, style);
165+
}
166+
167+
168+
169+
void DrawBox(float x, float y, float w, float h, Color color)
170+
{
171+
Color old = GUI.color;
172+
GUI.color = color;
173+
GUI.DrawTexture(new Rect(x, y, w, 1), Texture2D.whiteTexture); // Top
174+
GUI.DrawTexture(new Rect(x, y + h, w, 1), Texture2D.whiteTexture); // Bottom
175+
GUI.DrawTexture(new Rect(x, y, 1, h), Texture2D.whiteTexture); // Left
176+
GUI.DrawTexture(new Rect(x + w, y, 1, h), Texture2D.whiteTexture); // Right
177+
GUI.color = old;
178+
}
179+
180+
}
181+
}
182+

Loader.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
using UnityEngine;
2+
using System.IO;
3+
using System;
4+
5+
namespace RaveHack
6+
{
7+
public class Loader
8+
{
9+
private static GameObject _RaveHack;
10+
11+
public static void Init()
12+
{
13+
{
14+
15+
16+
_RaveHack = new GameObject("RaveHack");
17+
_RaveHack.AddComponent<Hacks>();
18+
UnityEngine.Object.DontDestroyOnLoad(_RaveHack);
19+
}
20+
}
21+
22+
23+
public static void Unload()
24+
{
25+
GameObject.Destroy(_RaveHack);
26+
}
27+
}
28+
}

Properties/AssemblyInfo.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
[assembly: AssemblyTitle("RaveHack")]
6+
[assembly: AssemblyDescription("")]
7+
[assembly: AssemblyConfiguration("")]
8+
[assembly: AssemblyCompany("RaveHack")]
9+
[assembly: AssemblyProduct("RaveHack")]
10+
[assembly: AssemblyCopyright("Copyright © notugur 2025")]
11+
[assembly: AssemblyTrademark("")]
12+
[assembly: AssemblyCulture("")]
13+
[assembly: ComVisible(false)]
14+
[assembly: Guid("92a0cd3f-0cb3-4f9c-b747-d3ca52e1d75d")]
15+
[assembly: AssemblyVersion("1.0")]
16+
[assembly: AssemblyFileVersion("1.0")]

RaveHack.csproj

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{92A0CD3F-0CB3-4F9C-B747-D3CA52E1D75D}</ProjectGuid>
8+
<OutputType>Library</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>Ravenfield</RootNamespace>
11+
<AssemblyName>Ravenfield</AssemblyName>
12+
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<Deterministic>true</Deterministic>
15+
</PropertyGroup>
16+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17+
<DebugSymbols>true</DebugSymbols>
18+
<DebugType>full</DebugType>
19+
<Optimize>false</Optimize>
20+
<OutputPath>bin\Debug\</OutputPath>
21+
<DefineConstants>DEBUG;TRACE</DefineConstants>
22+
<ErrorReport>prompt</ErrorReport>
23+
<WarningLevel>4</WarningLevel>
24+
</PropertyGroup>
25+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26+
<DebugType>pdbonly</DebugType>
27+
<Optimize>true</Optimize>
28+
<OutputPath>bin\Release\</OutputPath>
29+
<DefineConstants>TRACE</DefineConstants>
30+
<ErrorReport>prompt</ErrorReport>
31+
<WarningLevel>4</WarningLevel>
32+
</PropertyGroup>
33+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
34+
<DebugSymbols>true</DebugSymbols>
35+
<OutputPath>bin\x64\Debug\</OutputPath>
36+
<DefineConstants>DEBUG;TRACE</DefineConstants>
37+
<DebugType>full</DebugType>
38+
<PlatformTarget>x64</PlatformTarget>
39+
<LangVersion>7.3</LangVersion>
40+
<ErrorReport>prompt</ErrorReport>
41+
</PropertyGroup>
42+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
43+
<OutputPath>bin\x64\Release\</OutputPath>
44+
<DefineConstants>TRACE</DefineConstants>
45+
<Optimize>true</Optimize>
46+
<DebugType>pdbonly</DebugType>
47+
<PlatformTarget>x64</PlatformTarget>
48+
<LangVersion>7.3</LangVersion>
49+
<ErrorReport>prompt</ErrorReport>
50+
</PropertyGroup>
51+
<ItemGroup>
52+
<Reference Include="Assembly-CSharp">
53+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Ravenfield\ravenfield_Data\Managed\Assembly-CSharp.dll</HintPath>
54+
<Private>False</Private>
55+
</Reference>
56+
<Reference Include="Assembly-CSharp-firstpass">
57+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Ravenfield\ravenfield_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
58+
<Private>False</Private>
59+
</Reference>
60+
<Reference Include="Json.Net, Version=1.0.33.1, Culture=neutral, processorArchitecture=MSIL">
61+
<HintPath>packages\Json.Net.1.0.33\lib\netstandard2.0\Json.Net.dll</HintPath>
62+
<Private>False</Private>
63+
</Reference>
64+
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
65+
<HintPath>packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
66+
<Private>False</Private>
67+
</Reference>
68+
<Reference Include="System" />
69+
<Reference Include="System.Core" />
70+
<Reference Include="System.Xml.Linq" />
71+
<Reference Include="System.Data.DataSetExtensions" />
72+
<Reference Include="Microsoft.CSharp" />
73+
<Reference Include="System.Data" />
74+
<Reference Include="System.Net.Http" />
75+
<Reference Include="System.Xml" />
76+
<Reference Include="Unity.TextMeshPro">
77+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Ravenfield\ravenfield_Data\Managed\Unity.TextMeshPro.dll</HintPath>
78+
<Private>False</Private>
79+
</Reference>
80+
<Reference Include="UnityEngine">
81+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Ravenfield\ravenfield_Data\Managed\UnityEngine.dll</HintPath>
82+
<Private>False</Private>
83+
</Reference>
84+
<Reference Include="UnityEngine.AIModule">
85+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Ravenfield\ravenfield_Data\Managed\UnityEngine.AIModule.dll</HintPath>
86+
<Private>False</Private>
87+
</Reference>
88+
<Reference Include="UnityEngine.CoreModule">
89+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Ravenfield\ravenfield_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
90+
<Private>False</Private>
91+
</Reference>
92+
<Reference Include="UnityEngine.GIModule">
93+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Ravenfield\ravenfield_Data\Managed\UnityEngine.GIModule.dll</HintPath>
94+
<Private>False</Private>
95+
</Reference>
96+
<Reference Include="UnityEngine.IMGUIModule">
97+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Ravenfield\ravenfield_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath>
98+
<Private>False</Private>
99+
</Reference>
100+
<Reference Include="UnityEngine.InputLegacyModule">
101+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Ravenfield\ravenfield_Data\Managed\UnityEngine.InputLegacyModule.dll</HintPath>
102+
<Private>False</Private>
103+
</Reference>
104+
<Reference Include="UnityEngine.Physics2DModule">
105+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Ravenfield\ravenfield_Data\Managed\UnityEngine.Physics2DModule.dll</HintPath>
106+
<Private>False</Private>
107+
</Reference>
108+
<Reference Include="UnityEngine.PhysicsModule">
109+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Ravenfield\ravenfield_Data\Managed\UnityEngine.PhysicsModule.dll</HintPath>
110+
<Private>False</Private>
111+
</Reference>
112+
<Reference Include="UnityEngine.TextCoreModule">
113+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Ravenfield\ravenfield_Data\Managed\UnityEngine.TextCoreModule.dll</HintPath>
114+
<Private>False</Private>
115+
</Reference>
116+
<Reference Include="UnityEngine.TextRenderingModule">
117+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Ravenfield\ravenfield_Data\Managed\UnityEngine.TextRenderingModule.dll</HintPath>
118+
<Private>False</Private>
119+
</Reference>
120+
<Reference Include="UnityEngine.UI">
121+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Ravenfield\ravenfield_Data\Managed\UnityEngine.UI.dll</HintPath>
122+
<Private>False</Private>
123+
</Reference>
124+
<Reference Include="UnityEngine.UIElementsModule">
125+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Ravenfield\ravenfield_Data\Managed\UnityEngine.UIElementsModule.dll</HintPath>
126+
<Private>False</Private>
127+
</Reference>
128+
<Reference Include="UnityEngine.UIElementsNativeModule">
129+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Ravenfield\ravenfield_Data\Managed\UnityEngine.UIElementsNativeModule.dll</HintPath>
130+
<Private>False</Private>
131+
</Reference>
132+
<Reference Include="UnityEngine.UIModule">
133+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Ravenfield\ravenfield_Data\Managed\UnityEngine.UIModule.dll</HintPath>
134+
<Private>False</Private>
135+
</Reference>
136+
</ItemGroup>
137+
<ItemGroup>
138+
<Compile Include="Loader.cs" />
139+
<Compile Include="Hacks.cs" />
140+
<Compile Include="Properties\AssemblyInfo.cs" />
141+
</ItemGroup>
142+
<ItemGroup>
143+
<None Include="packages.config" />
144+
</ItemGroup>
145+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
146+
</Project>

0 commit comments

Comments
 (0)