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