From 4089b7a045f339a1a742cb4563101dde290afd9b Mon Sep 17 00:00:00 2001 From: manups4e Date: Wed, 8 Sep 2021 11:03:50 +0200 Subject: [PATCH] Ensure that the spectator can move the camera.. for some servers it's necessary --- ESXSpectateControl.Client/Script/MainScript.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ESXSpectateControl.Client/Script/MainScript.cs b/ESXSpectateControl.Client/Script/MainScript.cs index cbd2870..586d3ef 100644 --- a/ESXSpectateControl.Client/Script/MainScript.cs +++ b/ESXSpectateControl.Client/Script/MainScript.cs @@ -43,6 +43,12 @@ private static async Task MainTick() Game.EnableControlThisFrame(0, Control.PushToTalk); Game.EnableControlThisFrame(1, Control.PushToTalk); Game.EnableControlThisFrame(2, Control.PushToTalk); + Game.EnableControlThisFrame(0, Control.LookLeftRight); + Game.EnableControlThisFrame(1, Control.LookLeftRight); + Game.EnableControlThisFrame(2, Control.LookLeftRight); + Game.EnableControlThisFrame(0, Control.LookUpDown); + Game.EnableControlThisFrame(1, Control.LookUpDown); + Game.EnableControlThisFrame(2, Control.LookUpDown); Notifications.DrawText(0.35f, 0.7f, $"GodMode: {(ped.IsInvincible ? $"~r~{ClientMain.Texts["Enabled"]}~w~." : $"~g~{ClientMain.Texts["Disabled"]}~w~")}"); if (!ped.IsInVehicle()) @@ -90,7 +96,6 @@ private static async Task MainTick() pos.Y += 0.024f; } } - } } }