diagnostics.sqf 742 B

1234567891011121314151617181920212223
  1. private [ "_source" ];
  2. _source = "";
  3. if ( isServer ) then {
  4. _source = "Server";
  5. } else {
  6. _source = name player;
  7. };
  8. diag_log format ["[IA LIBERATION] [MISSIONSTART] Missionfile: %1 - World Name: %2 - Version: %3 - Unit Preset: %4 - Arsenal Preset: %5",(localize "STR_MISSION_TITLE"), worldName, (localize "STR_MISSION_VERSION"),IA_liberation_preset, IA_liberation_arsenal];
  9. while { true } do {
  10. diag_log format [ "[IA LIBERATION] [STATS] Source: %1 - Time: %2 - FPS: %3 - Total units: %4 - Hostile units: %5 - Local units: %6 - Vehicles: %7 - Unitcap: %8",
  11. _source,
  12. time,
  13. diag_fps,
  14. count allUnits,
  15. { side group _x == GRLIB_side_enemy } count allUnits,
  16. { local _x } count allUnits,
  17. count vehicles,
  18. GRLIB_sector_cap ];
  19. sleep 60;
  20. };