Post: Bullet Trace (Teleport Gun)
07-11-2014, 12:24 PM #1
Shark
Retired.
(adsbygoogle = window.adsbygoogle || []).push({}); Hey, I made dis today and thought I would share it on here :p

            

public static void G_LocationalTrace(int Trace, float[] Start, float[] End)
{
RPC.Call(0x188560, Trace, Start, End, 0, 0x28060B1, 0);
}
public static int Trace_GetEntityHitId(int Trace)
{
return RPC.Call(0x1D1240, Trace);
}
public static int TraceEntity(int clientIndex, float TracerDistance)
{
int Trace = 0x25D2B00;
float[] Start = G_GetPlayerViewOrigin(clientIndex);
float[] End = Maths.PlayerAnglesToForward(clientIndex, TracerDistance);
G_LocationalTrace(Trace, Start, End);
int Entity = Trace_GetEntityHitId(Trace) & 0xFFFF;
if (Entity < 0x3FE)
{ Entity = (int)Offsets.Funcs.G_Entity(Entity); }
else
{ Entity = 0; }
return Entity;
}
public static float[] TraceBullet(int clientIndex, float TracerDistance)
{
int Trace = 0x25D2B00;
float[] Start = G_GetPlayerViewOrigin(clientIndex);
float[] End = Maths.PlayerAnglesToForward(clientIndex, TracerDistance);
G_LocationalTrace(Trace, Start, End);
float[] BulletTrace = new float[3];
BulletTrace = new float[] { (((End[0] - Start[0]) * Lib.ReadSingle((UInt32)Trace + A) + Start[0])), (((End[1] - Start[1]) * Lib.ReadSingle((UInt32)Trace) + Start[1])), (((End[2] - Start[2]) * Lib.ReadSingle((UInt32)Trace) + Start[2])) };
return BulletTrace;
}


If you dont want to bother adding all this you can just use my MW2Lib and do MW2Lib.Functions.TraceBullet(clientIndex); :p

MW2Lib: You must login or register to view this content.

Enjoy

The following 10 users say thank you to Shark for this useful post:

FusionIsDaName, hacking247, HighModzz, jwm614, MegaMister, John, Notorious, Obris, zIExceptiion
07-12-2014, 12:50 AM #2
Originally posted by Shark View Post
Hey, I made dis today and thought I would share it on here :p

            

public static void G_LocationalTrace(int Trace, float[] Start, float[] End)
{
RPC.Call(0x188560, Trace, Start, End, 0, 0x28060B1, 0);
}
public static int Trace_GetEntityHitId(int Trace)
{
return RPC.Call(0x1D1240, Trace);
}
public static int TraceEntity(int clientIndex, float TracerDistance)
{
int Trace = 0x25D2B00;
float[] Start = G_GetPlayerViewOrigin(clientIndex);
float[] End = Maths.PlayerAnglesToForward(clientIndex, TracerDistance);
G_LocationalTrace(Trace, Start, End);
int Entity = Trace_GetEntityHitId(Trace) & 0xFFFF;
if (Entity < 0x3FE)
{ Entity = (int)Offsets.Funcs.G_Entity(Entity); }
else
{ Entity = 0; }
return Entity;
}
public static float[] TraceBullet(int clientIndex, float TracerDistance)
{
int Trace = 0x25D2B00;
float[] Start = G_GetPlayerViewOrigin(clientIndex);
float[] End = Maths.PlayerAnglesToForward(clientIndex, TracerDistance);
G_LocationalTrace(Trace, Start, End);
float[] BulletTrace = new float[3];
BulletTrace = new float[] { (((End[0] - Start[0]) * Lib.ReadSingle((UInt32)Trace + A) + Start[0])), (((End[1] - Start[1]) * Lib.ReadSingle((UInt32)Trace) + Start[1])), (((End[2] - Start[2]) * Lib.ReadSingle((UInt32)Trace) + Start[2])) };
return BulletTrace;
}


If you dont want to bother adding all this you can just use my MW2Lib and do MW2Lib.Functions.TraceBullet(clientIndex); :p

MW2Lib: You must login or register to view this content.

Enjoy


yummy
05-07-2015, 02:32 AM #3
ItzMatriix
Are you high?
Originally posted by Shark View Post
Hey, I made dis today and thought I would share it on here :p

            

public static void G_LocationalTrace(int Trace, float[] Start, float[] End)
{
RPC.Call(0x188560, Trace, Start, End, 0, 0x28060B1, 0);
}
public static int Trace_GetEntityHitId(int Trace)
{
return RPC.Call(0x1D1240, Trace);
}
public static int TraceEntity(int clientIndex, float TracerDistance)
{
int Trace = 0x25D2B00;
float[] Start = G_GetPlayerViewOrigin(clientIndex);
float[] End = Maths.PlayerAnglesToForward(clientIndex, TracerDistance);
G_LocationalTrace(Trace, Start, End);
int Entity = Trace_GetEntityHitId(Trace) & 0xFFFF;
if (Entity < 0x3FE)
{ Entity = (int)Offsets.Funcs.G_Entity(Entity); }
else
{ Entity = 0; }
return Entity;
}
public static float[] TraceBullet(int clientIndex, float TracerDistance)
{
int Trace = 0x25D2B00;
float[] Start = G_GetPlayerViewOrigin(clientIndex);
float[] End = Maths.PlayerAnglesToForward(clientIndex, TracerDistance);
G_LocationalTrace(Trace, Start, End);
float[] BulletTrace = new float[3];
BulletTrace = new float[] { (((End[0] - Start[0]) * Lib.ReadSingle((UInt32)Trace + A) + Start[0])), (((End[1] - Start[1]) * Lib.ReadSingle((UInt32)Trace) + Start[1])), (((End[2] - Start[2]) * Lib.ReadSingle((UInt32)Trace) + Start[2])) };
return BulletTrace;
}


If you dont want to bother adding all this you can just use my MW2Lib and do MW2Lib.Functions.TraceBullet(clientIndex); :p

MW2Lib: You must login or register to view this content.

Enjoy


if you can get this on bo1...
05-07-2015, 08:00 AM #4
Shark
Retired.
Originally posted by ItzMatriix View Post
if you can get this on bo1...


works for any COD just port it >_>
05-07-2015, 10:06 AM #5
FRINZ
I’m too L33T
shark u are perfection.
05-07-2015, 05:31 PM #6
ItzMatriix
Are you high?
Originally posted by Shark View Post
works for any COD just port it >_>


dont have all the adresses. nor do i know ow to find them :P
05-29-2016, 06:10 PM #7
matrixmods
Pokemon Trainer
Originally posted by Shark View Post
Hey, I made dis today and thought I would share it on here :p

            

public static void G_LocationalTrace(int Trace, float[] Start, float[] End)
{
RPC.Call(0x188560, Trace, Start, End, 0, 0x28060B1, 0);
}
public static int Trace_GetEntityHitId(int Trace)
{
return RPC.Call(0x1D1240, Trace);
}
public static int TraceEntity(int clientIndex, float TracerDistance)
{
int Trace = 0x25D2B00;
float[] Start = G_GetPlayerViewOrigin(clientIndex);
float[] End = Maths.PlayerAnglesToForward(clientIndex, TracerDistance);
G_LocationalTrace(Trace, Start, End);
int Entity = Trace_GetEntityHitId(Trace) & 0xFFFF;
if (Entity < 0x3FE)
{ Entity = (int)Offsets.Funcs.G_Entity(Entity); }
else
{ Entity = 0; }
return Entity;
}
public static float[] TraceBullet(int clientIndex, float TracerDistance)
{
int Trace = 0x25D2B00;
float[] Start = G_GetPlayerViewOrigin(clientIndex);
float[] End = Maths.PlayerAnglesToForward(clientIndex, TracerDistance);
G_LocationalTrace(Trace, Start, End);
float[] BulletTrace = new float[3];
BulletTrace = new float[] { (((End[0] - Start[0]) * Lib.ReadSingle((UInt32)Trace + A) + Start[0])), (((End[1] - Start[1]) * Lib.ReadSingle((UInt32)Trace) + Start[1])), (((End[2] - Start[2]) * Lib.ReadSingle((UInt32)Trace) + Start[2])) };
return BulletTrace;
}


If you dont want to bother adding all this you can just use my MW2Lib and do MW2Lib.Functions.TraceBullet(clientIndex); :p

MW2Lib: You must login or register to view this content.

Enjoy


this freezes me wen i try to use it :/

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo