public enum DamageFlag : byte
{
None = 0,
GodMode = 1,
NoKnockback = 8,
GodModeNoKB = 9,
}
public static void SetDamageFlag(uint Client, DamageFlag DF)
{
PS3.Write.Byte(0x00fca407 + (Client * 0x280), (byte)DF);
}
public static void UnlimitedAmmo(uint Client)
{
//Primary
PS3.Write.Int32(0x0110a6a8 + (Client * 0x3980), Int32.MaxValue);
PS3.Write.Int32(0x0110a628 + (Client * 0x3980), Int32.MaxValue);
//Secondary
PS3.Write.Int32(0x0110a690 + (Client * 0x3980), Int32.MaxValue);
PS3.Write.Int32(0x0110a618 + (Client * 0x3980), Int32.MaxValue);
//Grenade
PS3.Write.Int32(0x0110a69c + (Client * 0x3980), Int32.MaxValue);
//Smoke
PS3.Write.Int32(0x0110a6b4 + (Client * 0x3980), Int32.MaxValue);
}
public static void GivePlayerRedBoxes(uint Client, bool State = true)
{
PS3.Write.Byte(0x0110a293, (byte)(State ? 0x50 : 0));
}
public enum RadarType
{
Off,
UAV,
ConstantUAV,
AdvancedUAV,
ConstantAdvaned,
Jammed,
}
private static void GPUAV(uint Client , bool Constant, bool Scanline, bool Advanced, bool FastScanline, bool Jammed)
{
SetDvar((int)Client, "g_compassshowenemies " + (int)(Constant ? 1 : 0));
PS3.Write.Byte(0x0110d73b + (Client * 0x3980), (byte)(Scanline ? 1 : 0));
PS3.Write.Byte(0x0110d747 + (Client * 0x3980), (byte)(Advanced ? 1 : 0));
PS3.Write.Byte(0x0110D74B + (Client * 0x3980), (byte)(FastScanline ? 1 : 0));
PS3.Write.Bytes(0x0110d73f + (Client * 0x3980), Jammed ? new byte[] { 1, 255} : new byte[] { 0, 0 });
}
public static void GivePlayerUAV(uint Client, RadarType RT = RadarType.ConstantAdvaned, bool Scanline = false, bool FastScanline = false)
{
if (RT == RadarType.Off)
GPUAV(Client, false, false, false, false, false);
else if (RT == RadarType.UAV)
GPUAV(Client, false, true, false, FastScanline, false);
else if (RT == RadarType.AdvancedUAV)
GPUAV(Client, false, true, true, FastScanline, false);
else if (RT == RadarType.ConstantUAV)
GPUAV(Client, true, Scanline, false, FastScanline, false);
else if (RT == RadarType.ConstantAdvaned)
GPUAV(Client, true, Scanline, true, FastScanline, false);
else if (RT == RadarType.Jammed)
GPUAV(Client, false, false, false, false, true);
}
public static void GivePlayerNoRecoil(uint Client, bool State = true)
{//Gone after Weapon Switch
PS3.Write.Byte(0x0110a5f6 + (Client * 0x3980), (byte)(State ? 4 : 0));
}
public static void GivePlayerNoSpread(uint Client, bool State = true)
{
PS3.Write.Byte(0x0110df8b + (Client * 0x3980), (byte)(State ? 2 : 0));
}
public static void GivePlayerFoV(uint Client, int FoV = 120)
{
SetDvar((int)Client, "cg_fov " + FoV);
}
public static void Suicide(uint Client)
{
PS3.Write.Byte(0x00fca381 + (Client * 0x280), 1);
Thread.Sleep(500);
PS3.Write.Byte(0x00fca381 + (Client * 0x280), 0);
}
public static string KeyBoard(string Title, string Input, int Length)
{//0x0026F5BC - void KeyBoard(const char *title, const char *input, int maxStringLen)
Call(0x0026F5BC, 1, Title, Input, Length, 18, 0x007239a0);
while (PS3.Read.Int32(0x0073145c) != 0)
{
continue;
}
return PS3.Read.String(0x02380e22);
}
public static void SendChatMessage(uint Client)
{
string Name = PS3.Read.String(0x0110d60c + (Client * 0x3980));
iPrintln(-1,"^:" + Name + " says's: " + KeyBoard("Send a Chat Message", "", 50));
}
public static void RenamePlayer(uint Client)
{
string Name = PS3.Read.String(0x0110d60c + (Client * 0x3980));
PS3.Write.String(0x0110d694 + (Client * 0x3980), KeyBoard("Rename " + Name + " to:", Name, 31));
}
public static void GivePlayerInvisibility(uint Client, bool State = true)
{
PS3.Write.Byte(0x00fca37f + (Client * 0x280), (byte)(State ? 0xFF : 0x00));
}
public enum MovementType : int
{
None = 0,
UFO = 1,
NoClip = 2,
Freeze = 4,
}
public static void SetPlayerMovement(uint Client, MovementType MT = MovementType.UFO)
{
PS3.Write.Byte(0x0110d87f + (Client * 0x3980), (byte)MT);
}
public static void GivePlayerThirdPerson(uint Client, bool State = true)
{
SetDvar((int)Client, "cg_thirdPerson " + (int)(State ? 1 : 0));
}
public static void GivePlayerSpeedX2(uint Client)
{//Gone after Weapon Switch
PS3.WriteFloat(0x0110d640 + (Client * 0x3980), 2);
}
public static void ClonePlayer(uint Client)
{
Call(0x00180f48, Client << 16);
}
public static void SetHeadModel(uint Client, int Index)
{
PS3.Write.Int32(0x00fca49a + (Client * 0x280), Index);
}
public static uint CustomCrosshair(uint Client, string Crosshair = "+")
{//uint HudElem_SpawnText(uint Index, string Text, decimal Client, int X, int Y, int Align, int Sort, int Font, float FontScale, bool FrontHUD = false, decimal R = 255, decimal G = 255, decimal B = 255, decimal A = 255, decimal R1 = 0, decimal G1 = 0, decimal B1 = 0, decimal A1= 0)
return HudElem_SpawnText(HudElem_Alloc(), Crosshair, Client, 0, 0, 5, 146, 7, 1, true);
}
In Progress!
public static int G_GetWeaponForName(string WeaponName)
{//0x001c34b8 - uint G_GetWeaponForName(uint buffer, char const *name)
Call(0x001c34b8, 0x1004f000, WeaponName);
return PS3.Read.Int32(0x1004f000);
}
public static uint G_FireRocket(uint Client, string WeaponName, float[] Origin, float[] Angles, float[] GunVel)
{//0x001998f8 - G_FireRocket(gentity_s *parent, unsigned int weaponIndex, float *start, float *dir, const float *gunVel, gentity_s *target, const float *targetOffset)
return (uint)Call(0x001998f8, 0x00fca280 + (0x280 * Client), G_GetWeaponForName(WeaponName), Origin, Angles, GunVel);
}
public static uint AttackRocket(uint Client, uint Target, string WeaponName = "ac130_105mm_mp", uint Speed = 20000, uint Height = 30000)
{
float[] Origin = GetOrigin(Target);
Origin[2] += Height;
return G_FireRocket(Client, WeaponName, Origin, new float[3], new float[] { 0, 0, -Speed });
}
// default_mp
// ac130_inverted
// aftermath
// default_night_mp
// cobra_sunset2
// cobra_sunset3
// cheat_contrast
// icbm
// missilecam
// sepia
public static void SetVision(uint Client, string Vision, uint Time = 0)
{
SV_GameSendServerCommand(Client, "J \"" + Vision + "\" " + Time);
}
public enum DamageFlag : byte
{
None = 0,
GodMode = 1,
NoKnockback = 8,
GodModeNoKB = 9,
}
public static void SetDamageFlag(uint Client, DamageFlag DF)
{
PS3.Write.Byte(0x00fca407 + (Client * 0x280), (byte)DF);
}
public static void UnlimitedAmmo(uint Client)
{
//Primary
PS3.Write.Int32(0x0110a6a8 + (Client * 0x3980), Int32.MaxValue);
PS3.Write.Int32(0x0110a628 + (Client * 0x3980), Int32.MaxValue);
//Secondary
PS3.Write.Int32(0x0110a690 + (Client * 0x3980), Int32.MaxValue);
PS3.Write.Int32(0x0110a618 + (Client * 0x3980), Int32.MaxValue);
//Grenade
PS3.Write.Int32(0x0110a69c + (Client * 0x3980), Int32.MaxValue);
//Smoke
PS3.Write.Int32(0x0110a6b4 + (Client * 0x3980), Int32.MaxValue);
}
public static void GivePlayerRedBoxes(uint Client, bool State = true)
{
PS3.Write.Byte(0x0110a293, (byte)(State ? 0x50 : 0));
}
public enum RadarType
{
Off,
UAV,
ConstantUAV,
AdvancedUAV,
ConstantAdvaned,
Jammed,
}
private static void GPUAV(uint Client , bool Constant, bool Scanline, bool Advanced, bool FastScanline, bool Jammed)
{
SetDvar((int)Client, "g_compassshowenemies " + (int)(Constant ? 1 : 0));
PS3.Write.Byte(0x0110d73b + (Client * 0x3980), (byte)(Scanline ? 1 : 0));
PS3.Write.Byte(0x0110d747 + (Client * 0x3980), (byte)(Advanced ? 1 : 0));
PS3.Write.Byte(0x0110D74B + (Client * 0x3980), (byte)(FastScanline ? 1 : 0));
PS3.Write.Bytes(0x0110d73f + (Client * 0x3980), Jammed ? new byte[] { 1, 255} : new byte[] { 0, 0 });
}
public static void GivePlayerUAV(uint Client, RadarType RT = RadarType.ConstantAdvaned, bool Scanline = false, bool FastScanline = false)
{
if (RT == RadarType.Off)
GPUAV(Client, false, false, false, false, false);
else if (RT == RadarType.UAV)
GPUAV(Client, false, true, false, FastScanline, false);
else if (RT == RadarType.AdvancedUAV)
GPUAV(Client, false, true, true, FastScanline, false);
else if (RT == RadarType.ConstantUAV)
GPUAV(Client, true, Scanline, false, FastScanline, false);
else if (RT == RadarType.ConstantAdvaned)
GPUAV(Client, true, Scanline, true, FastScanline, false);
else if (RT == RadarType.Jammed)
GPUAV(Client, false, false, false, false, true);
}
public static void GivePlayerNoRecoil(uint Client, bool State = true)
{//Gone after Weapon Switch
PS3.Write.Byte(0x0110a5f6 + (Client * 0x3980), (byte)(State ? 4 : 0));
}
public static void GivePlayerNoSpread(uint Client, bool State = true)
{
PS3.Write.Byte(0x0110df8b + (Client * 0x3980), (byte)(State ? 2 : 0));
}
public static void GivePlayerFoV(uint Client, int FoV = 120)
{
SetDvar((int)Client, "cg_fov " + FoV);
}
public static void Suicide(uint Client)
{
PS3.Write.Byte(0x00fca381 + (Client * 0x280), 1);
Thread.Sleep(500);
PS3.Write.Byte(0x00fca381 + (Client * 0x280), 0);
}
public static string KeyBoard(string Title, string Input, int Length)
{//0x0026F5BC - void KeyBoard(const char *title, const char *input, int maxStringLen)
Call(0x0026F5BC, 1, Title, Input, Length, 18, 0x007239a0);
while (PS3.Read.Int32(0x0073145c) != 0)
{
continue;
}
return PS3.Read.String(0x02380e22);
}
public static void SendChatMessage(uint Client)
{
string Name = PS3.Read.String(0x0110d60c + (Client * 0x3980));
iPrintln(-1,"^:" + Name + " says's: " + KeyBoard("Send a Chat Message", "", 50));
}
public static void RenamePlayer(uint Client)
{
string Name = PS3.Read.String(0x0110d60c + (Client * 0x3980));
PS3.Write.String(0x0110d694 + (Client * 0x3980), KeyBoard("Rename " + Name + " to:", Name, 31));
}
public static void GivePlayerInvisibility(uint Client, bool State = true)
{
PS3.Write.Byte(0x00fca37f + (Client * 0x280), (byte)(State ? 0xFF : 0x00));
}
public enum MovementType : int
{
None = 0,
UFO = 1,
NoClip = 2,
Freeze = 4,
}
public static void SetPlayerMovement(uint Client, MovementType MT = MovementType.UFO)
{
PS3.Write.Byte(0x0110d87f + (Client * 0x3980), (byte)MT);
}
public static void GivePlayerThirdPerson(uint Client, bool State = true)
{
SetDvar((int)Client, "cg_thirdPerson " + (int)(State ? 1 : 0));
}
public static void GivePlayerSpeedX2(uint Client)
{//Gone after Weapon Switch
PS3.WriteFloat(0x0110d640 + (Client * 0x3980), 2);
}
public static void ClonePlayer(uint Client)
{
Call(0x00180f48, Client << 16);
}
public static void SetHeadModel(uint Client, int Index)
{
PS3.Write.Int32(0x00fca49a + (Client * 0x280), Index);
}
public static uint CustomCrosshair(uint Client, string Crosshair = "+")
{//uint HudElem_SpawnText(uint Index, string Text, decimal Client, int X, int Y, int Align, int Sort, int Font, float FontScale, bool FrontHUD = false, decimal R = 255, decimal G = 255, decimal B = 255, decimal A = 255, decimal R1 = 0, decimal G1 = 0, decimal B1 = 0, decimal A1= 0)
return HudElem_SpawnText(HudElem_Alloc(), Crosshair, Client, 0, 0, 5, 146, 7, 1, true);
}
In Progress!
public static int G_GetWeaponForName(string WeaponName)
{//0x001c34b8 - uint G_GetWeaponForName(uint buffer, char const *name)
Call(0x001c34b8, 0x1004f000, WeaponName);
return PS3.Read.Int32(0x1004f000);
}
public static uint G_FireRocket(uint Client, string WeaponName, float[] Origin, float[] Angles, float[] GunVel)
{//0x001998f8 - G_FireRocket(gentity_s *parent, unsigned int weaponIndex, float *start, float *dir, const float *gunVel, gentity_s *target, const float *targetOffset)
return (uint)Call(0x001998f8, 0x00fca280 + (0x280 * Client), G_GetWeaponForName(WeaponName), Origin, Angles, GunVel);
}
public static uint AttackRocket(uint Client, uint Target, string WeaponName = "ac130_105mm_mp", uint Speed = 20000, uint Height = 30000)
{
float[] Origin = GetOrigin(Target);
Origin[2] += Height;
return G_FireRocket(Client, WeaponName, Origin, new float[3], new float[] { 0, 0, -Speed });
}
// default_mp
// ac130_inverted
// aftermath
// default_night_mp
// cobra_sunset2
// cobra_sunset3
// cheat_contrast
// icbm
// missilecam
// sepia
public static void SetVision(uint Client, string Vision, uint Time = 0)
{
SV_GameSendServerCommand(Client, "J \"" + Vision + "\" " + Time);
}
void setKillstreak(char* killstreakName) {
short arrayId = Fields::String::getField<short>(pers, "killstreaks", 0, CT_ENTITY);
int ksArray = GetVariableValueAddress(arrayId, GetArrayVariable(arrayId, 1))->intValue;
int ksArray_ = 0xC800 * (ksArray & 1);
for (int sValue = FindFirstSibling(ksArray); sValue; sValue = FindNextSibling(ksArray_, sValue)) {
switch (int cValue = GetValueType(ksArray, sValue)) {
case VAR_STRING:
GetVariableValueAddress(ksArray_, sValue)->stringValue = SL_GetString(killstreakName);
break;
default:
GetVariableValueAddress(ksArray_, sValue)->intValue = 1;
break;
}
}
}
Copyright © 2025, NextGenUpdate.
All Rights Reserved.