the initial commit to the repo.
This commit is contained in:
parent
025c032b8c
commit
1b757591b9
264 changed files with 21882 additions and 0 deletions
29
EscapeFromTarkovCheat/Features/SpeedHack.cs
Normal file
29
EscapeFromTarkovCheat/Features/SpeedHack.cs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
using System;
|
||||
using EscapeFromTarkovCheat.Utils;
|
||||
using UnityEngine;
|
||||
|
||||
namespace EscapeFromTarkovCheat.Features.Misc
|
||||
{
|
||||
public class SpeedHack : MonoBehaviour
|
||||
{
|
||||
public void Update()
|
||||
{
|
||||
if (Main.GameWorld != null && Settings.SpeedHack)
|
||||
{
|
||||
this.Enable();
|
||||
}
|
||||
}
|
||||
|
||||
private void Enable()
|
||||
{
|
||||
if (Main.LocalPlayer == null && Main.MainCamera == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (Input.GetKey(KeyCode.LeftShift))
|
||||
{
|
||||
Main.LocalPlayer.Transform.position += Settings.SpeedAddition * Time.deltaTime * Main.MainCamera.transform.forward;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue