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-
07-24-2014, 01:01 AM #38
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));
}
}


How to use this in you're bo2 source mod menu 1.18 ?
08-24-2014, 12:36 AM #39
FFM | iMoDzRGFR
Are you high?
Please help me : You must login or register to view this content.
08-24-2014, 05:39 AM #40
Originally posted by FFM
Please help me : You must login or register to view this content.


public static float[] PlayerAnglesToForward(int clientIndex, float Distance = 200f)
{
float[] Angles = Lib.ReadSingle(G_Client(clientIndex, 0x56BC), 3);
float[] Position = Lib.ReadSingle(G_Client(clientIndex, 0x2Cool Man (aka Tustin), 3);
float angle, sr, sp, sy, cr, cp, cy, PiDiv;
PiDiv = ((float)Math.PI / 180f);
angle = Angles[1] * PiDiv;
sy = (float)Math.Sin(angle);
cy = (float)Math.Cos(angle);
angle = Angles[0] * PiDiv;
sp = (float)Math.Sin(angle);
cp = (float)Math.Cos(angle);
angle = Angles[2] * PiDiv;
sr = (float)Math.Sin(angle);
cr = (float)Math.Cos(angle);
float[] Forward = new float[] { (cp * cy * Distance) + Position[0], (cp * sy * Distance) + Position[1], (-sp * Distance) + Position[2] };
return Forward;
}
public static float[] G_GetPlayerViewOrigin(int clientIndex)
{
PS3.SetMemory(0x2600250, new byte[0xC]);
RPC.Call(0x1E60D0, Function.G_Client(clientIndex), 0x2600250);
return Lib.ReadSingle(0x2600250, 3);
}
public static void G_LocationalTrace(int Trace, float[] Start, float[] End)
{
RPC.Call(0x35C5A8, Trace, Start, End, 0, 0x280E8B3, 0);
}

Credits:Shark
08-24-2014, 09:45 PM #41
FFM | iMoDzRGFR
Are you high?
Originally posted by ALI
public static float[] PlayerAnglesToForward(int clientIndex, float Distance = 200f)
{
float[] Angles = Lib.ReadSingle(G_Client(clientIndex, 0x56BC), 3);
float[] Position = Lib.ReadSingle(G_Client(clientIndex, 0x2Cool Man (aka Tustin), 3);
float angle, sr, sp, sy, cr, cp, cy, PiDiv;
PiDiv = ((float)Math.PI / 180f);
angle = Angles[1] * PiDiv;
sy = (float)Math.Sin(angle);
cy = (float)Math.Cos(angle);
angle = Angles[0] * PiDiv;
sp = (float)Math.Sin(angle);
cp = (float)Math.Cos(angle);
angle = Angles[2] * PiDiv;
sr = (float)Math.Sin(angle);
cr = (float)Math.Cos(angle);
float[] Forward = new float[] { (cp * cy * Distance) + Position[0], (cp * sy * Distance) + Position[1], (-sp * Distance) + Position[2] };
return Forward;
}
public static float[] G_GetPlayerViewOrigin(int clientIndex)
{
PS3.SetMemory(0x2600250, new byte[0xC]);
RPC.Call(0x1E60D0, Function.G_Client(clientIndex), 0x2600250);
return Lib.ReadSingle(0x2600250, 3);
}
public static void G_LocationalTrace(int Trace, float[] Start, float[] End)
{
RPC.Call(0x35C5A8, Trace, Start, End, 0, 0x280E8B3, 0);
}

Credits:Shark


Thank's , i have an other error :( You must login or register to view this content. please help me
08-25-2014, 12:06 PM #42
Originally posted by FFM
Thank's , i have an other error :( You must login or register to view this content. please help me


Use This

public static UInt32 G_Client(int clientIndex, UInt32 Mod = 0x00)
{
return (0x1780F28 + (UInt32)Mod) + ((UInt32)clientIndex * 0x580Cool Man (aka Tustin);
}

The following user thanked ALI ALHILFI for this useful post:

FFM | iMoDzRGFR
08-25-2014, 03:25 PM #43
FFM | iMoDzRGFR
Are you high?
Originally posted by ALI
Use This

public static UInt32 G_Client(int clientIndex, UInt32 Mod = 0x00)
{
return (0x1780F28 + (UInt32)Mod) + ((UInt32)clientIndex * 0x580Cool Man (aka Tustin);
}


Hello , thank's for your help , i have other errors : You must login or register to view this content. and You must login or register to view this content. :(
08-25-2014, 06:12 PM #44
Originally posted by FFM
Hello , thank's for your help , i have other errors : You must login or register to view this content. and You must login or register to view this content. :(


You Can Use My Soures To Fix Thes errors

downloads

You must login or register to view this content.

VirusTotal

You must login or register to view this content.

And Good luck!
08-27-2014, 03:43 PM #45
Boliberrys
^^ Sexy ^^
Sticky, awesome release!
10-20-2014, 05:39 PM #46
Hi Guys ! Very Nice Tuto but i have a problem with the line : You must login or register to view this content.

Can you help me i use the PS3Lib 4.3 !

Thx !

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo