Post: [Release/C#/1.18] My Personal BO2 Scripts
05-27-2014, 01:31 AM #1
Sticky
Mary J Wannnnna
(adsbygoogle = window.adsbygoogle || []).push({}); Ehh hello NGU...

So I post this today for the simple fact that I am sick and tired of making mod menus... and tools! Here are almost all my good scripts for BO2. Hope you enjoy and please leave credits if you use them!

Stuff you will need to use these
    public static uint G_Client(int Client, GClient Mod = 0)
{
return (Offsets.G_Client + (0x5808 * (uint)Client) + (uint)Mod);
}
public enum GClient : uint
{
ClientWeapIndex = 0x1B8,
ClientVelocity = 0x34,
ClientFriction = 0xC,
ClientFreeze = 0x5694,
ClientViewModel = 0x54F4,
ClientButtonMonitoring = 0x569C,
ClientPlayerName = 0x5544,
ClientOrigin = 0x28,
ClientAngles = 0x56BC,
ClientTeam = 0x5504,
ClientIsAlive = 0x55D0,
ClientStance = 0xFC,
ClientGodMode = 0x18,
ClientPerks = 0x548,
ClientPrimaryCamo = 0x2D8,
ClientSecondaryCamo = 0x2BC,
ClientTactical = 0x30C,
ClientLethal = 0x2F0,
ClientKillstreak1 = 0x42B,
ClientKillstreak2 = 0x430,
ClientKillstreak3 = 0x434,
PrimaryAmmo = 0x43C,
SecondaryAmmo = 0x438,
LethalAmmo = 0x440,
TacticalAmmo = 0x444,
LocationSelectorMap = 0x4B0,
LocationSelectorType = 0x4B4
}
public static uint G_Entity(int Client, uint Mod = 0)
{
return (Offsets.G_Entity + (0x31C * (uint)Client) + Mod);
}
public static int ReturnWeaponIndex(int Client)
{
return PS3.ReadInt32(G_Client(Client, GClient.ClientWeapIndex));
}
public static float[] ReturnVelocity(int Client)
{
return PS3.ReadSingle(G_Client(Client, GClient.ClientVelocity), 3);
}
public static void SetOrigin(int Client, float[] Origin)
{
PS3.WriteSingle(G_Client(Client, GClient.ClientOrigin), Origin);
}
public static float[] TraceBullet(int clientIndex, float TracerDistance)
{
int Trace = 0x25D2B00;
float[] Start = G_GetPlayerViewOrigin(clientIndex);
float[] End = PlayerAnglesToForward(clientIndex, TracerDistance);
G_LocationalTrace(Trace, Start, End);
float[] BulletTrace = new float[3];
BulletTrace = new float[] { (((End[0] - Start[0]) * PS3.ReadFloat((uint)Trace + 0x10) + Start[0])), (((End[1] - Start[1]) * PS3.ReadFloat((uint)Trace + 0x10) + Start[1])), (((End[2] - Start[2]) * PS3.ReadFloat((uint)Trace + 0x10) + Start[2])) };
return BulletTrace;
}
public static void SetClientViewAngles(int Client, float[] Angles)
{
PS3.WriteSingle(0x10004000, Angles);
RPC.Call(Offsets.SetClientViewAngles, G_Entity(Client), Angles);
}
public enum Buttons : uint
{
X = 8192,
O = 16384,
Square = 4,
L3 = 1088,
R3 = 32,
L2 = 256,
R2 = 512,
L1 = 2147487744,
R1 = 128,
Crouch = 16384,
Prone = 32768,
L1andR1 = L1 + R1
}
public static bool ButtonPressed(int clientIndex, Buttons Button)
{
byte[] Sticky = PS3.GetMem(Offsets.G_Client + 0x547C + ((uint)clientIndex * 0x580Cool Man (aka Tustin), 4);
uint Buttonz = BitConverter.ToUInt32(Sticky, 0);
if (Buttonz == (uint)Button)
return true;
return false;
}


Unfair Aimbot
    public static void PlayerDie(int Client, int Victim, bool HeadShotsOnly = true)
{
if (HeadShotsOnly)
RPC.Call(0x1FD510, G_Entity(Victim), G_Entity(Client), G_Entity(Client), 0, 9, ReturnWeaponIndex(Client), 0xD0143D6C);
else
RPC.Call(0x1FD510, G_Entity(Victim), G_Entity(Client), G_Entity(Client), 0, 0, ReturnWeaponIndex(Client), 0xD0143D6C);
}


Carepackage Gun
    public static void CarePackageGun(int Client)
{
if (ButtonPressed(Client, Buttons.R1) || ButtonPressed(Client, Buttons.L1andR1))
{
Entity.spawnEntity("t6_wpn_supply_drop_ally", TraceBullet(Client, 9999f), G_GetPlayerViewOrigin(Client));
}
}


Teleport Gun
    public static void TeleportGun(int Client)
{
if (ButtonPressed(Client, Buttons.R1) || ButtonPressed(Client, Buttons.L1andR1))
{
SetOrigin(Client, TraceBullet(Client, 9999f));
}
}


Advanced Noclip
    public static void AdvancedNoclip(int Client)
{
SetVelocity(Client, new float[] { ReturnVelocity(Client)[0], ReturnVelocity(Client)[1], 42.5f });

if (ButtonPressed(Client, Buttons.L3))
{
SetOrigin(Client, PlayerAnglesToForward(Client, 85));
}
}


Spin Mode
            public static void SpinMode(int Client, float Speed, string Direction = "Right")
{
if (Direction == "Left")
{
for (float X = -180; X < 180; )
{
SetClientViewAngles(Client, new float[] { ReturnViewOrigin(Client)[0], X, ReturnViewOrigin(Client)[2] });
X += (float)Speed;
}
}

else if (Direction == "Right")
{
for (float X = 180; X > -180; )
{
SetClientViewAngles(Client, new float[] { ReturnViewOrigin(Client)[0], X, ReturnViewOrigin(Client)[2] });
X += (float)Speed;
}
}
}


Credits:
Sticky - Making the functions
Shark - TraceBullet function
(adsbygoogle = window.adsbygoogle || []).push({});

The following 50 users say thank you to Sticky for this useful post:

_Antonio96_, One, Absolute Zero, ALI ALHILFI, Arrow_Modz, Asian, Azus, COD_MoDz21, D3sKmَ, Sabotage, En3RGyMoDz, EnVatoHD, FFM | iMoDzRGFR, FusionIsDaName, Geo, HackersForHire, JLM, ImAzazel, iMoDz-Baptiste, iNDMx, Jannik007, KL9, LBK, Mango_Knife, milky4444, moxl, NotALegitPlayer, Notorious, oCoyeks, OLDSCHOOLMODZHD, Pat Stay, RaGE_LoLo69, RTE, SC58, TheModedHacker, ThePaaqoHD, Tipton_Modz, trollman111, UnknownNightmare, Unstopbole Mods, WeJailbreakYou, Fatality, xPAQz, xReaperv3, xSynthetic-oJ, zMaCa-x, zRayz-
05-27-2014, 02:20 AM #2
Asian
Banned
noice
05-27-2014, 05:36 AM #3
Originally posted by Sticky View Post
Ehh hello NGU...

So I post this today for the simple fact that I am sick and tired of making mod menus... and tools! Here are almost all my good scripts for BO2. Hope you enjoy and please leave credits if you use them!

Stuff you will need to use these
    public static uint G_Client(int Client, GClient Mod = 0)
{
return (Offsets.G_Client + (0x5808 * (uint)Client) + (uint)Mod);
}
public enum GClient : uint
{
ClientWeapIndex = 0x1B8,
ClientVelocity = 0x34,
ClientFriction = 0xC,
ClientFreeze = 0x5694,
ClientViewModel = 0x54F4,
ClientButtonMonitoring = 0x569C,
ClientPlayerName = 0x5544,
ClientOrigin = 0x28,
ClientAngles = 0x56BC,
ClientTeam = 0x5504,
ClientIsAlive = 0x55D0,
ClientStance = 0xFC,
ClientGodMode = 0x18,
ClientPerks = 0x548,
ClientPrimaryCamo = 0x2D8,
ClientSecondaryCamo = 0x2BC,
ClientTactical = 0x30C,
ClientLethal = 0x2F0,
ClientKillstreak1 = 0x42B,
ClientKillstreak2 = 0x430,
ClientKillstreak3 = 0x434,
PrimaryAmmo = 0x43C,
SecondaryAmmo = 0x438,
LethalAmmo = 0x440,
TacticalAmmo = 0x444,
LocationSelectorMap = 0x4B0,
LocationSelectorType = 0x4B4
}
public static uint G_Entity(int Client, uint Mod = 0)
{
return (Offsets.G_Entity + (0x31C * (uint)Client) + Mod);
}
public static int ReturnWeaponIndex(int Client)
{
return PS3.ReadInt32(G_Client(Client, GClient.ClientWeapIndex));
}
public static float[] ReturnVelocity(int Client)
{
return PS3.ReadSingle(G_Client(Client, GClient.ClientVelocity), 3);
}
public static void SetOrigin(int Client, float[] Origin)
{
PS3.WriteSingle(G_Client(Client, GClient.ClientOrigin), Origin);
}
public static float[] TraceBullet(int clientIndex, float TracerDistance)
{
int Trace = 0x25D2B00;
float[] Start = G_GetPlayerViewOrigin(clientIndex);
float[] End = PlayerAnglesToForward(clientIndex, TracerDistance);
G_LocationalTrace(Trace, Start, End);
float[] BulletTrace = new float[3];
BulletTrace = new float[] { (((End[0] - Start[0]) * PS3.ReadFloat((uint)Trace + 0x10) + Start[0])), (((End[1] - Start[1]) * PS3.ReadFloat((uint)Trace + 0x10) + Start[1])), (((End[2] - Start[2]) * PS3.ReadFloat((uint)Trace + 0x10) + Start[2])) };
return BulletTrace;
}
public static void SetClientViewAngles(int Client, float[] Angles)
{
PS3.WriteSingle(0x10004000, Angles);
RPC.Call(Offsets.SetClientViewAngles, G_Entity(Client), Angles);
}
public enum Buttons : uint
{
X = 8192,
O = 16384,
Square = 4,
L3 = 1088,
R3 = 32,
L2 = 256,
R2 = 512,
L1 = 2147487744,
R1 = 128,
Crouch = 16384,
Prone = 32768,
L1andR1 = L1 + R1
}
public static bool ButtonPressed(int clientIndex, Buttons Button)
{
byte[] Sticky = PS3.GetMem(Offsets.G_Client + 0x547C + ((uint)clientIndex * 0x580Cool Man (aka Tustin), 4);
uint Buttonz = BitConverter.ToUInt32(Sticky, 0);
if (Buttonz == (uint)Button)
return true;
return false;
}


Unfair Aimbot
    public static void PlayerDie(int Client, int Victim, bool HeadShotsOnly = true)
{
if (HeadShotsOnly)
RPC.Call(0x1FD510, G_Entity(Victim), G_Entity(Client), G_Entity(Client), 0, 9, ReturnWeaponIndex(Client), 0xD0143D6C);
else
RPC.Call(0x1FD510, G_Entity(Victim), G_Entity(Client), G_Entity(Client), 0, 0, ReturnWeaponIndex(Client), 0xD0143D6C);
}


Carepackage Gun
    public static void CarePackageGun(int Client)
{
if (ButtonPressed(Client, Buttons.R1) || ButtonPressed(Client, Buttons.L1andR1))
{
Entity.spawnEntity("t6_wpn_supply_drop_ally", TraceBullet(Client, 9999f), G_GetPlayerViewOrigin(Client));
}
}


Teleport Gun
    public static void TeleportGun(int Client)
{
if (ButtonPressed(Client, Buttons.R1) || ButtonPressed(Client, Buttons.L1andR1))
{
SetOrigin(Client, TraceBullet(Client, 9999f));
}
}


Advanced Noclip
    public static void AdvancedNoclip(int Client)
{
SetVelocity(Client, new float[] { ReturnVelocity(Client)[0], ReturnVelocity(Client)[1], 42.5f });

if (ButtonPressed(Client, Buttons.L3))
{
SetOrigin(Client, PlayerAnglesToForward(Client, 85));
}
}


Spin Mode
            public static void SpinMode(int Client, float Speed, string Direction = "Right")
{
if (Direction == "Left")
{
for (float X = -180; X < 180; )
{
SetClientViewAngles(Client, new float[] { ReturnViewOrigin(Client)[0], X, ReturnViewOrigin(Client)[2] });
X += (float)Speed;
}
}

else if (Direction == "Right")
{
for (float X = 180; X > -180; )
{
SetClientViewAngles(Client, new float[] { ReturnViewOrigin(Client)[0], X, ReturnViewOrigin(Client)[2] });
X += (float)Speed;
}
}
}


Credits:
Sticky - Making the functions
Shark - TraceBullet function


thankz but arent these enstones scripts
05-27-2014, 06:10 AM #4
D3sKmَ
Save Point
Good Man
05-27-2014, 06:32 AM #5
Originally posted by MoDz21 View Post
thankz but arent these enstones scripts


How would sticky have got them if they where Enstones? Thanks a lot sticky!
05-27-2014, 06:32 AM #6
TheModedHacker
Do a barrel roll!
Good job Sticky. Make more threads like this. :yes:
05-27-2014, 11:20 AM #7
Sticky
Mary J Wannnnna
Originally posted by MoDz21 View Post
thankz but arent these enstones scripts


I made them, but Enstone has these. Also he codes in c++ i code in c#.
05-28-2014, 04:32 PM #8
Mango_Knife
In my man cave
Originally posted by Sticky View Post
Ehh hello NGU...

So I post this today for the simple fact that I am sick and tired of making mod menus... and tools! Here are almost all my good scripts for BO2. Hope you enjoy and please leave credits if you use them!

Stuff you will need to use these
    public static uint G_Client(int Client, GClient Mod = 0)
{
return (Offsets.G_Client + (0x5808 * (uint)Client) + (uint)Mod);
}
public enum GClient : uint
{
ClientWeapIndex = 0x1B8,
ClientVelocity = 0x34,
ClientFriction = 0xC,
ClientFreeze = 0x5694,
ClientViewModel = 0x54F4,
ClientButtonMonitoring = 0x569C,
ClientPlayerName = 0x5544,
ClientOrigin = 0x28,
ClientAngles = 0x56BC,
ClientTeam = 0x5504,
ClientIsAlive = 0x55D0,
ClientStance = 0xFC,
ClientGodMode = 0x18,
ClientPerks = 0x548,
ClientPrimaryCamo = 0x2D8,
ClientSecondaryCamo = 0x2BC,
ClientTactical = 0x30C,
ClientLethal = 0x2F0,
ClientKillstreak1 = 0x42B,
ClientKillstreak2 = 0x430,
ClientKillstreak3 = 0x434,
PrimaryAmmo = 0x43C,
SecondaryAmmo = 0x438,
LethalAmmo = 0x440,
TacticalAmmo = 0x444,
LocationSelectorMap = 0x4B0,
LocationSelectorType = 0x4B4
}
public static uint G_Entity(int Client, uint Mod = 0)
{
return (Offsets.G_Entity + (0x31C * (uint)Client) + Mod);
}
public static int ReturnWeaponIndex(int Client)
{
return PS3.ReadInt32(G_Client(Client, GClient.ClientWeapIndex));
}
public static float[] ReturnVelocity(int Client)
{
return PS3.ReadSingle(G_Client(Client, GClient.ClientVelocity), 3);
}
public static void SetOrigin(int Client, float[] Origin)
{
PS3.WriteSingle(G_Client(Client, GClient.ClientOrigin), Origin);
}
public static float[] TraceBullet(int clientIndex, float TracerDistance)
{
int Trace = 0x25D2B00;
float[] Start = G_GetPlayerViewOrigin(clientIndex);
float[] End = PlayerAnglesToForward(clientIndex, TracerDistance);
G_LocationalTrace(Trace, Start, End);
float[] BulletTrace = new float[3];
BulletTrace = new float[] { (((End[0] - Start[0]) * PS3.ReadFloat((uint)Trace + 0x10) + Start[0])), (((End[1] - Start[1]) * PS3.ReadFloat((uint)Trace + 0x10) + Start[1])), (((End[2] - Start[2]) * PS3.ReadFloat((uint)Trace + 0x10) + Start[2])) };
return BulletTrace;
}
public static void SetClientViewAngles(int Client, float[] Angles)
{
PS3.WriteSingle(0x10004000, Angles);
RPC.Call(Offsets.SetClientViewAngles, G_Entity(Client), Angles);
}
public enum Buttons : uint
{
X = 8192,
O = 16384,
Square = 4,
L3 = 1088,
R3 = 32,
L2 = 256,
R2 = 512,
L1 = 2147487744,
R1 = 128,
Crouch = 16384,
Prone = 32768,
L1andR1 = L1 + R1
}
public static bool ButtonPressed(int clientIndex, Buttons Button)
{
byte[] Sticky = PS3.GetMem(Offsets.G_Client + 0x547C + ((uint)clientIndex * 0x580Cool Man (aka Tustin), 4);
uint Buttonz = BitConverter.ToUInt32(Sticky, 0);
if (Buttonz == (uint)Button)
return true;
return false;
}


Unfair Aimbot
    public static void PlayerDie(int Client, int Victim, bool HeadShotsOnly = true)
{
if (HeadShotsOnly)
RPC.Call(0x1FD510, G_Entity(Victim), G_Entity(Client), G_Entity(Client), 0, 9, ReturnWeaponIndex(Client), 0xD0143D6C);
else
RPC.Call(0x1FD510, G_Entity(Victim), G_Entity(Client), G_Entity(Client), 0, 0, ReturnWeaponIndex(Client), 0xD0143D6C);
}


Carepackage Gun
    public static void CarePackageGun(int Client)
{
if (ButtonPressed(Client, Buttons.R1) || ButtonPressed(Client, Buttons.L1andR1))
{
Entity.spawnEntity("t6_wpn_supply_drop_ally", TraceBullet(Client, 9999f), G_GetPlayerViewOrigin(Client));
}
}


Teleport Gun
    public static void TeleportGun(int Client)
{
if (ButtonPressed(Client, Buttons.R1) || ButtonPressed(Client, Buttons.L1andR1))
{
SetOrigin(Client, TraceBullet(Client, 9999f));
}
}


Advanced Noclip
    public static void AdvancedNoclip(int Client)
{
SetVelocity(Client, new float[] { ReturnVelocity(Client)[0], ReturnVelocity(Client)[1], 42.5f });

if (ButtonPressed(Client, Buttons.L3))
{
SetOrigin(Client, PlayerAnglesToForward(Client, 85));
}
}


Spin Mode
            public static void SpinMode(int Client, float Speed, string Direction = "Right")
{
if (Direction == "Left")
{
for (float X = -180; X < 180; )
{
SetClientViewAngles(Client, new float[] { ReturnViewOrigin(Client)[0], X, ReturnViewOrigin(Client)[2] });
X += (float)Speed;
}
}

else if (Direction == "Right")
{
for (float X = 180; X > -180; )
{
SetClientViewAngles(Client, new float[] { ReturnViewOrigin(Client)[0], X, ReturnViewOrigin(Client)[2] });
X += (float)Speed;
}
}
}


Credits:
Sticky - Making the functions
Shark - TraceBullet function


:yes: i like it
But you aware that like alot of things are missing, right?
ReturnViewOrigin,SetVelocity,Entity.spawnEntity (wich i couldnt find Spawn Entities function and i googled it),PlayerAnglesToForward and few more.

The following 2 users say thank you to Mango_Knife for this useful post:

FusionIsDaName, JLM
05-28-2014, 07:53 PM #9
iMP3Rz
Haxor!
All u need is there x) rest can u fix ur self :p
05-28-2014, 10:25 PM #10
BadExceptionZ
Pokemon Trainer
Nice Sticky

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo