public static void Spawn(Player dst, Player p, Position pos, Orientation rot, string possession = "") { byte id = p == dst ? Entities.SelfID : p.id; string name = p.color + p.truename + possession; string skin = p.SkinName, model = p.Model; OnEntitySpawnedEvent.Call(p, ref name, ref skin, ref model, dst); SpawnRaw(dst, id, p, pos, rot, skin, name, model); if (!Server.Config.TablistGlobal) { TabList.Add(dst, p, id); } }
internal static void Spawn(Player dst, PlayerBot b) { string name = Chat.Format(b.color + b.DisplayName, dst, true, false); if (b.DisplayName.CaselessEq("empty")) { name = ""; } string skin = Chat.Format(b.SkinName, dst, true, false); string model = Chat.Format(b.Model, dst, true, false); OnEntitySpawnedEvent.Call(b, ref name, ref skin, ref model, dst); SpawnRaw(dst, b.id, b, b.Pos, b.Rot, skin, name, model); if (Server.Config.TablistBots) { TabList.Add(dst, b); } }