Server side prop control

This commit is contained in:
Sardelka
2022-07-02 17:14:56 +08:00
parent 335ea2ca38
commit d8ac486984
22 changed files with 392 additions and 112 deletions

View File

@ -637,6 +637,10 @@ namespace RageCoop.Server
}.Pack(outgoingMessage);
MainNetServer.SendMessage(outgoingMessage, newClient.Connection, NetDeliveryMethod.ReliableOrdered, 0);
});
// Send all props to this player
BaseScript.SendServerObjectsTo( new(Entities.ServerProps.Values), new() { newClient});
// Send new client to all players
var cons = MainNetServer.Connections.Exclude(newClient.Connection);
if (cons.Count!=0)