New exploit game

DC4 | Сергей

Member
Member
Jul 12, 2017
53
1
6
28
Parts Unknown
In General, this situation - if the game client to change arrowspeed on ∞ , then the server stops to kick - tell me how to time the arrow to letit from the attacker to the victim.
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
On_Shoot
If bow
Get server ticks and save in DataStore.Add("UserXYZ", System.Ticks)

On player hurt
DataStore.Get("UserXYZ")
System.ticks - Above datastore
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
ow to get a tick?
Easier to use Stopwatch class, The tick was just an example, But below is an example of using the stopwatch class
C#:
using System;
using System.Diagnostics;
class Program
{
    static void Main(string[] args)
    {
        Stopwatch stopWatch = new Stopwatch();
        stopWatch.Start();
        //ACTION TO TIME GOES HERE
        stopWatch.Stop();
        // Get the elapsed time as a TimeSpan value.
        TimeSpan ts = stopWatch.Elapsed;

        // Format and display the TimeSpan value.
        string elapsedTime = String.Format("{0:00}:{1:00}:{2:00}.{3:00}",
            ts.Hours, ts.Minutes, ts.Seconds,
            ts.Milliseconds / 10);
        Console.WriteLine("RunTime " + elapsedTime);
    }
}
 

DC4 | Сергей

Member
Member
Jul 12, 2017
53
1
6
28
Parts Unknown
Easier to use Stopwatch class, The tick was just an example, But below is an example of using the stopwatch class
C#:
using System;
using System.Diagnostics;
class Program
{
    static void Main(string[] args)
    {
        Stopwatch stopWatch = new Stopwatch();
        stopWatch.Start();
        //ACTION TO TIME GOES HERE
        stopWatch.Stop();
        // Get the elapsed time as a TimeSpan value.
        TimeSpan ts = stopWatch.Elapsed;

        // Format and display the TimeSpan value.
        string elapsedTime = String.Format("{0:00}:{1:00}:{2:00}.{3:00}",
            ts.Hours, ts.Minutes, ts.Seconds,
            ts.Milliseconds / 10);
        Console.WriteLine("RunTime " + elapsedTime);
    }
}
Here he cheat if anything

C#:
public static void SUPER_BOW()
        {
            Controllable controllable = PlayerClient.GetLocalPlayer().controllable;
            Character component = PlayerClient.GetLocalPlayer().controllable.GetComponent<Character>();
            Inventory inventory2 = component.GetComponent(typeof(Inventory)) as Inventory;
            BowWeaponItem<BowWeaponDataBlock> item = inventory2.activeItem as BowWeaponItem<BowWeaponDataBlock>;
            item.datablock.arrowSpeed = float.MaxValue;
        }
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
Here he cheat if anything

C#:
public static void SUPER_BOW()
        {
            Controllable controllable = PlayerClient.GetLocalPlayer().controllable;
            Character component = PlayerClient.GetLocalPlayer().controllable.GetComponent<Character>();
            Inventory inventory2 = component.GetComponent(typeof(Inventory)) as Inventory;
            BowWeaponItem<BowWeaponDataBlock> item = inventory2.activeItem as BowWeaponItem<BowWeaponDataBlock>;
            item.datablock.arrowSpeed = float.MaxValue;
        }
Oh shit wtf