Skip to content

Commit

Permalink
Spectator - Fix "Side" RPT spam (#10464)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnb432 authored Oct 30, 2024
1 parent 2dc6774 commit b8fab7a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion addons/spectator/functions/fnc_cam_setCameraMode.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b8fab7a

Please sign in to comment.