Advertisement
Guest User

Untitled

a guest
May 22nd, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 KB | None | 0 0
  1. enableSaving [ false, false ];
  2.  
  3.  
  4. #include "\task_force_radio\functions\common.sqf";
  5.  
  6. if ((isServer) or (isDedicated)) then {
  7.  
  8.  
  9. if (isDedicated) then {debug_source = "Server";} else {debug_source = name player;};
  10.  
  11. tf_giveLongRangeRadioToGroupLeaders = true;
  12. tf_givePersonalRadioToRegularSoldier = false;
  13. tf_giveMicroDagrToSoldier = false;
  14. tf_enableIntercom = true;
  15. tf_objectInterceptionEnabled = true;
  16. tf_spectatorCanHearEnemyUnits = true;
  17. tf_spectatorCanHearFriendlies = true;
  18. tf_pluginTimeout = 15;
  19. tf_radio_channel_name = "Funk Kommunikation";
  20. tf_radio_channel_password = "9500";
  21. tf_same_sw_frequencies_for_side = true; //Selbe Freuquenzen für Fraktion? - ja ^ nein
  22. publicVariable "tf_same_sw_frequencies_for_side";
  23.  
  24. _settingsSwWest = false call TFAR_fnc_generateSwSettings; //SW Freuquenzen voreinstellen.
  25. _settingsSwWest set [2, ["90","33"]];
  26. tf_freq_west = _settingsSwWest;
  27. publicVariable "tf_freq_west";
  28.  
  29. _settingsLRWest = false call TFAR_fnc_generateLRSettings; //LR Freuquenzen voreinstellen.
  30. _settingsLRWest set [2, ["45","46","48"]];
  31. tf_freq_west_lr = _settingsLRWest;
  32. publicVariable "tf_freq_west_lr";
  33. tf_terrain_interception_coefficient = 6.0;
  34. //Standardradios
  35. BLU_F_personal_tf_faction_radio = "tf_anprc148jem";
  36. BLU_F_rifleman_tf_faction_radio = "tf_anprc154";
  37. BLU_G_F_personal_tf_faction_radio = "tf_anprc148jem";
  38. BLU_G_F_rifleman_tf_faction_radio = "tf_anprc154";
  39. OPF_F_personal_tf_faction_radio = "tf_fadak";
  40. OPF_F_rifleman_tf_faction_radio = "tf_pnr1000a";
  41. };
  42.  
  43.  
  44. if (isDedicated) then {debug_source = "Server";} else {debug_source = name player;};
  45.  
  46. [] call compileFinal preprocessFileLineNumbers "scripts\shared\liberation_functions.sqf";
  47. [] call compileFinal preprocessFileLineNumbers "scripts\shared\init_sectors.sqf";
  48. [] call compileFinal preprocessFileLineNumbers "scripts\shared\fetch_params.sqf";
  49. [] call compileFinal preprocessFileLineNumbers "kp_liberation_config.sqf";
  50. [] call compileFinal preprocessFileLineNumbers "presets\init_presets.sqf";
  51.  
  52. [] execVM "GREUH\scripts\GREUH_activate.sqf";
  53.  
  54. [] call compileFinal preprocessFileLineNumbers "scripts\shared\init_shared.sqf";
  55.  
  56. if (isServer) then {
  57. [] call compileFinal preprocessFileLineNumbers "scripts\server\init_server.sqf";
  58. };
  59.  
  60. if (!isDedicated && !hasInterface && isMultiplayer) then {
  61. execVM "scripts\server\offloading\hc_manager.sqf";
  62. };
  63.  
  64. if (!isDedicated && hasInterface) then {
  65. waitUntil {alive player};
  66. if (debug_source != name player) then {debug_source = name player};
  67. [] call compileFinal preprocessFileLineNumbers "scripts\client\init_client.sqf";
  68. } else {
  69. setViewDistance 1600;
  70. };
  71.  
  72. // Execute fnc_reviveInit again (by default it executes in postInit)
  73. if ((isNil {player getVariable "bis_revive_ehHandleHeal"} || isDedicated) && !(bis_reviveParam_mode == 0)) then {
  74. [] call bis_fnc_reviveInit;
  75. };
  76.  
  77. //Das hier ist notwendig, um alles an die Clients weiterzugeben
  78. if (isServer) then{
  79. publicVariable "tf_no_auto_long_range_radio";
  80. publicVariable "tf_give_personal_radio_to_regular_soldier";
  81. publicVariable "TF_give_microdagr_to_soldier";
  82. publicVariable "tf_same_sw_frequencies_for_side";
  83. publicVariable "tf_same_lr_frequencies_for_side";
  84. publicVariable "tf_terrain_interception_coefficient";
  85. publicVariable "BLU_F_personal_tf_faction_radio";
  86. publicVariable "BLU_F_rifleman_tf_faction_radio";
  87. publicVariable "BLU_G_F_personal_tf_faction_radio";
  88. publicVariable "BLU_G_F_rifleman_tf_faction_radio";
  89. publicVariable "OPF_F_personal_tf_faction_radio";
  90. publicVariable "OPF_F_rifleman_tf_faction_radio";
  91. publicVariable "tf_freq_west";
  92. publicVariable "tf_freq_west_lr";
  93. publicVariable "tf_freq_east";
  94. publicVariable "tf_freq_east_lr";
  95. publicVariable "tf_freq_guer";
  96. publicVariable "tf_freq_guer_lr";
  97. publicVariable "tf_freq_name";
  98. };
  99.  
  100. if (true) exitWith {};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement