From 0167a96cd2a924070fa7eaa2cdf8ed34b94611fb Mon Sep 17 00:00:00 2001 From: johnb432 <58661205+johnb432@users.noreply.github.com> Date: Wed, 30 Oct 2024 18:05:09 +0100 Subject: [PATCH] Fix Side spam RPT --- addons/spectator/functions/fnc_cam_setCameraMode.sqf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/addons/spectator/functions/fnc_cam_setCameraMode.sqf b/addons/spectator/functions/fnc_cam_setCameraMode.sqf index 2b0af6a80bd..e8eddfbb808 100644 --- a/addons/spectator/functions/fnc_cam_setCameraMode.sqf +++ b/addons/spectator/functions/fnc_cam_setCameraMode.sqf @@ -61,7 +61,12 @@ if (!isNull _focus || _newMode == MODE_FREE) then { if (_newMode == MODE_FREE) then { _camera cameraEffect ["Internal", "BACK"]; - switchCamera GVAR(camAgentFree); // Fix draw3D while in free camera for case where player is perma-dead + + // Waiting for correct client state avoids "Side" being spammed every frame in RPT + if (getClientStateNumber >= 10) then { + switchCamera GVAR(camAgentFree); // Fix draw3D while in free camera for case where player is perma-dead + }; + _camera setDir getDirVisual _camera; if (!isNull _focus) then {