int roundstart(PacketStream ps) { ps.ReadByte();//unknown int count = ps.ReadByte(); for (int i = 0; i < count; i++) { byte id = ps.ReadByte(); if (id == own_id) { botLogics.OnRoundStart(); } short sx = ps.ReadShort(); short sy = ps.ReadShort(); float rot = ps.ReadFloat(); byte wpn_id = ps.ReadByte(); /*if (team == 1) * team = 2; * else if (team == 2) * team = 1;*/ byte uk2 = ps.ReadByte(); byte uk3 = ps.ReadByte(); if (id > 0 && id < 33) { PlayerObject tmp = players[id]; tmp.Id = id; //LogConsole(String.Format("mass spawn {0} wpn:{1} uk:{2} uk:{3}", tmp.Name, wpn_id, uk2, uk3)); tmp.X = sx; tmp.Y = sy; tmp.Rotation = rot; tmp.Currentweapon = wpn_id; tmp.Health = 100; } else { return(0); } } short money = ps.ReadShort(); byte wpnCount = ps.ReadByte(); for (int j = 0; j < wpnCount; j++) { ps.ReadByte(); } return(1); }