PS3 [C#] Entity Spawning Script 1.16

  • Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.
Oct 29, 2013
283
191
53
How To Use

Code:
spawnEntity(ModelName, X, Y, Z, Yaw, Pitch, Roll)

C# Code
public class Offsets
{
public static uint
G_Client = 0x177E928,
G_Entity = 0x16B7920,
G_EntitySize = 0x31C,
G_SetModel = 0x277644,
G_Spawn = 0x278C60,
SP_Script_Model = 0x2670E8;
}

public UInt32 G_Spawn()
{
return RPC.Call(Offsets.G_Spawn);
}

public UInt32 spawnEntity(String ModelName, Single X, Single Y, Single Z, Single Yaw = 0, Single Pitch = 0, Single Roll = 0)
{
UInt32 Ent = G_Spawn();
Console.Write(Ent + "\n");
DEX.Extension.WriteFloat((Ent + 0x134), X);
DEX.Extension.WriteFloat((Ent + 0x13C), Y);
DEX.Extension.WriteFloat((Ent + 0x138), Z);
DEX.Extension.WriteFloat((Ent + 0x140), Yaw);
DEX.Extension.WriteFloat((Ent + 0x144), Pitch);
DEX.Extension.WriteFloat((Ent + 0x148), Roll);
RPC.Call(Offsets.G_SetModel, Ent, ModelName);
RPC.Call(Offsets.SP_Script_Model, Ent);
Thread.Sleep(20);
return Ent;
}

Some Models
Code:
t6_wpn_supply_drop_ally
t6_wpn_supply_drop_axis
t6_wpn_turret_sentry_gun
veh_t6_drone_quad_rotor_mp
german_shepherd
prop_suitcase_bomb
defaultactor
defaultvehicle
mp_flag_neutral
mp_flag_green
mp_flag_red
p6_dogtags
p6_dogtags_friend

Troubleshooting
If it is freezing you upon trying to spawn an entity try using this RPC
BO2 1.16 Fixed RPC > http://pastebin.com/fsLRrmuN

-TacticalLobbies

CREDITS Shark
 
General chit-chat
Help Users
    Chat Bot: Christo has joined the room.