public static uint G_SpawnTurret(float[] Origin, float[] Angles, string Model = "weapon_minigun", string Type = "sentry_minigun_mp", bool Operable = true, bool Lazer = true)
{
uint Entity = (uint)RPC.Call(0x01C058C);//G_Spawn
RPC.Call(0x001C0B14, Entity, Origin);//G_SetOrigin
RPC.Call(0x001C0D74, Entity, Angles);//G_SetAngles
RPC.Call(0x01BEF5C, Entity, Model);//G_SetModel
RPC.Call(0x01CF0E8, Entity, Type);//G_SpawnTurret
PS3.Extension.WriteByte((uint)Entity + 9, (byte)(Lazer ? 0x01 : 0x00));//lazer
Turret_CanOperate(Entity, Operable);
return Entity;
}
public static void Turret_CanOperate(uint Turret, bool State = true)
{
Turret = PS3.Extension.ReadUInt32(Turret + 0x15C);
PS3.Extension.WriteByte(Turret + 7, (byte)(State ? 0 :
);
}
public static uint Turret_Shoot(uint Turret)
{//0x001CA780 - Turret_Shoot(gentity_s *self)
return (uint)RPC.Call(0x001CA780, Turret);
}
public static uint G_SpawnTurret(float[] Origin, float[] Angles, string Model = "weapon_minigun", string Type = "sentry_minigun_mp", bool Operable = true, bool Lazer = true)
{
uint Entity = (uint)RPC.Call(0x01C058C);//G_Spawn
RPC.Call(0x001C0B14, Entity, Origin);//G_SetOrigin
RPC.Call(0x001C0D74, Entity, Angles);//G_SetAngles
RPC.Call(0x01BEF5C, Entity, Model);//G_SetModel
RPC.Call(0x01CF0E8, Entity, Type);//G_SpawnTurret
PS3.Extension.WriteByte((uint)Entity + 9, (byte)(Lazer ? 0x01 : 0x00));//lazer
Turret_CanOperate(Entity, Operable);
return Entity;
}
public static void Turret_CanOperate(uint Turret, bool State = true)
{
Turret = PS3.Extension.ReadUInt32(Turret + 0x15C);
PS3.Extension.WriteByte(Turret + 7, (byte)(State ? 0 :
);
}
public static uint Turret_Shoot(uint Turret)
{//0x001CA780 - Turret_Shoot(gentity_s *self)
return (uint)RPC.Call(0x001CA780, Turret);
}
public static uint G_SpawnTurret(float[] Origin, float[] Angles, string Model = "weapon_minigun", string Type = "sentry_minigun_mp", bool Operable = true, bool Lazer = true)
{
uint Entity = (uint)RPC.Call(0x01C058C);//G_Spawn
RPC.Call(0x001C0B14, Entity, Origin);//G_SetOrigin
RPC.Call(0x001C0D74, Entity, Angles);//G_SetAngles
RPC.Call(0x01BEF5C, Entity, Model);//G_SetModel
RPC.Call(0x01CF0E8, Entity, Type);//G_SpawnTurret
PS3.Extension.WriteByte((uint)Entity + 9, (byte)(Lazer ? 0x01 : 0x00));//lazer
Turret_CanOperate(Entity, Operable);
return Entity;
}
public static void Turret_CanOperate(uint Turret, bool State = true)
{
Turret = PS3.Extension.ReadUInt32(Turret + 0x15C);
PS3.Extension.WriteByte(Turret + 7, (byte)(State ? 0 :
);
}
public static uint Turret_Shoot(uint Turret)
{//0x001CA780 - Turret_Shoot(gentity_s *self)
return (uint)RPC.Call(0x001CA780, Turret);
}
Copyright © 2025, NextGenUpdate.
All Rights Reserved.