GREUH_activate.sqf 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. if (isDedicated) then { exit };
  2. waitUntil { alive player };
  3. desiredviewdistance_inf = viewDistance;
  4. desiredviewdistance_veh = viewDistance;
  5. desiredviewdistance_obj = 75;
  6. desired_fps = 0;
  7. show_teammates = false;
  8. show_nametags = false;
  9. show_platoon = false;
  10. desired_vehvolume = 100;
  11. greuh_options_profile = profileNamespace getVariable "GREUH_OPTIONS_PROFILE";
  12. if ( !isNil "greuh_options_profile" ) then {
  13. desiredviewdistance_inf = greuh_options_profile select 0;
  14. desiredviewdistance_veh = greuh_options_profile select 1;
  15. desiredviewdistance_obj = greuh_options_profile select 2;
  16. show_teammates = greuh_options_profile select 3;
  17. show_platoon = greuh_options_profile select 4;
  18. if ( count greuh_options_profile > 5 ) then {
  19. desired_vehvolume = greuh_options_profile select 5;
  20. if ( isNil "desired_vehvolume" ) then {
  21. desired_vehvolume = 100;
  22. };
  23. };
  24. if ( count greuh_options_profile > 6 ) then {
  25. show_nametags = greuh_options_profile select 6;
  26. if ( isNil "show_nametags" ) then {
  27. show_nametags = false;
  28. };
  29. };
  30. if ( count greuh_options_profile > 7) then {
  31. desired_fps = greuh_options_profile select 7;
  32. if ( isNil "desired_fps" ) then {
  33. desired_fps = 0;
  34. };
  35. };
  36. };
  37. [] call compile preprocessFileLineNumbers "GREUH\GREUH_config.sqf";
  38. [] call compile preprocessFileLineNumbers "GREUH\scripts\GREUH_version.sqf";
  39. [] spawn compile preprocessFileLineNumbers "GREUH\scripts\GREUH_actionmanager.sqf";
  40. [] spawn compile preprocessFileLineNumbers "GREUH\scripts\GREUH_revive_camera.sqf";
  41. [] spawn compile preprocessFileLineNumbers "GREUH\scripts\GREUH_medic_listener.sqf";
  42. if ( GREUH_allow_mapmarkers ) then { [] spawn compile preprocessFileLineNumbers "GREUH\scripts\GREUH_playermarkers.sqf"; };
  43. if ( GREUH_allow_platoonview ) then { [] spawn compile preprocessFileLineNumbers "GREUH\scripts\GREUH_platoonoverlay.sqf"; };
  44. if ( GREUH_allow_platoonview ) then { [] spawn compile preprocessFileLineNumbers "GREUH\scripts\GREUH_cache_units.sqf"; };
  45. if ( GREUH_allow_customsquads ) then { [] spawn compile preprocessFileLineNumbers "GREUH\scripts\GREUH_squadmanagement.sqf"; };
  46. if ( GREUH_allow_viewdistance ) then { [] spawn compile preprocessFileLineNumbers "GREUH\scripts\GREUH_view_distance_management.sqf"; };
  47. [] spawn compile preprocessFileLineNumbers "GREUH\scripts\GREUH_dynamic_view_distance.sqf";