Battlekeeper / Arma3PerformanceExtension

5 stars 2 forks source link

The Processed Clients includes Headless Clients #6

Open CalebSerafin opened 2 years ago

CalebSerafin commented 2 years ago

Problem

allPlayers includes headless clients, and they are not filtered out later. Hiding objects for headless clients would be unnecessary and may cause issues with others scripts running on them. https://github.com/Battlekeeper/Arma3PerformanceExtension/blob/b67f011804500c9083752ac65fe3cd13bf30198b/addons/A3PE/functions/A3PEInit.sqf#L55 https://github.com/Battlekeeper/Arma3PerformanceExtension/blob/b67f011804500c9083752ac65fe3cd13bf30198b/addons/A3PE/functions/A3PEInit.sqf#L73

Suggestion

Filter out headless clients by array subtraction (allPlayers - entities "HeadlessClient_F")