Add new script cvars system
This commit is contained in:
@@ -465,3 +465,9 @@ function updatePlayerPing(playerName, ping) {
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
function receiveClientVariablesFromServer(clientVariablesString) {
|
||||
serverData.cvars = JSON.parse(clientVariablesString);
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
@@ -1318,3 +1318,9 @@ function fadePlayerCamera(client, fadeIn, time, colour = toColour(0, 0, 0, 255))
|
||||
}
|
||||
|
||||
// ==========================================================================
|
||||
|
||||
function sendClientVariablesToClient(client) {
|
||||
sendNetworkEventToPlayer("agrp.cvar", client, JSON.stringify(clientVariables));
|
||||
}
|
||||
|
||||
// ==========================================================================
|
||||
Reference in New Issue
Block a user