Closed longtimegamer closed 1 year ago
@Xeno69 any suggestions to fix or troubleshoot?
Yeah, but I'm not near my PC till tomorrow
Found a bug here. Steps to reproduce:
Mkay, will check in the next days.
I have checked that now. The viewdistance doesn't change. inf vd is the same as before spawning the combat UAV.
I am also using these settings:
d_InitialViewDistance = 1000; d_ViewdistanceChange = 2; // server sets, client may change later
EDIT: nevermind not relevant, the bug appears with default settings
I am able to easily reproduce this bug. I edited the steps above in the top post. Please review.
Did you try with the combat UAV turret control? That step seems to cause the bug.
It seems to set view distance here:
https://github.com/Xeno69/Domination/blob/master/co30_Domination.Altis/client/fn_uav_check.sqf#L30
the while loop exits when the player chooses "release UAV controls" but the viewdistance stays set at d_ViewDistanceAir
maybe after getConnectedUAV player returns null do:
if(_uav is a greyhawk) then { updated vd}
I added a fix for review.
Infantry viewdistance is applied while flying a combat drone.
Steps to reproduce: