Advertisement
Guest User

Untitled

a guest
Jun 16th, 2018
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.69 KB | None | 0 0
  1. //This .sqf is used to setup TaskForce Arrowhead Radio mod in our missions.
  2. #include "\task_force_radio\functions\common.sqf";
  3.  
  4.  
  5. //Codes and frequencies
  6. //These 3 below are to do with encryption
  7. tf_west_radio_code = "bluefor"; // This is the default encryption code for Bluefor
  8. tf_east_radio_code = "opfor"; // This is the default encryption code for OpFor
  9. tf_guer_radio_code = "independent"; // This is the default encryption code for Independent - changing this to either Bluefor/OpFor will allow them to hear each other if allied.
  10.  
  11.  
  12. //This section should not be changed as this defines which channel in TeamSpeak is used
  13. tf_radio_channel_name = "TaskForceRadio";
  14. tf_radio_channel_password = "123";
  15.  
  16. //This defines how much interference the terrain/mountains gives during a mission - ranges from 0-10.
  17. TF_terrain_interception_coefficient = 10;
  18. //Equipment
  19. //Long Range radios
  20. tf_no_auto_long_range_radio = true; //change this to true to stop TFR from auto assigning lr backpacks
  21. TF_defaultWestBackpack = "tf_rt1523g_big"; // This defines the standard long range radio that is automatically given to team leaders on BlueFor
  22. TF_defaultEastBackpack = "tf_mr3000"; // This defines the standard long range radio that is automatically given to team leaders on OpFor
  23. TF_defaultGuerBackpack = "tfanprc155"; // This defines the standard long range radio that is automatically given to team leaders on Independent
  24.  
  25.  
  26. //Short range team leader radios
  27. TF_give_personal_radio_to_regular_soldier = false; //setting this to true gives all soldiers the team lead radio which can be re-programmed
  28. TF_defaultWestPersonalRadio = "tf_anprc152";
  29. TF_defaultEastPersonalRadio = "tf_fadak";
  30. TF_defaultGuerPersonalRadio = "tf_anprc148jem";
  31.  
  32. //Rifleman radios
  33. TF_defaultWestRiflemanRadio = "tf_rf7800str";
  34. TF_defaultEastRiflemanRadio = "tf_pnr1000a";
  35. TF_defaultGuerRiflemanRadio = "tf_anprc154";
  36.  
  37. //DAGR reprogrammer
  38. TF_give_microdagr_to_soldier = false; // Set to true if you want the DAGR short range radio programmer to be given to riflemen
  39.  
  40.  
  41. //Edit below only if you are aware of TFAR settings and what the below represents
  42. tf_same_sw_frequencies_for_side = false; // same SW freqs for each side
  43. publicVariable "tf_same_sw_frequencies_for_side";
  44.  
  45. tf_same_lr_frequencies_for_side = true; // same LR freqs for each side
  46. publicVariable "tf_same_lr_frequencies_for_side";
  47.  
  48. // WEST
  49. //Set SW frequencies for West
  50. _settingsSwest = false call TFAR_fnc_generateSwSettings;
  51. _settingsSwest set [2, ["311","312","313","314","315","316","317","318"]];
  52. tf_freq_west = _settingsSWest;
  53. publicVariable "tf_freq_west";
  54. //Set LR frequencies for West
  55. _settingsLRwest = false call TFAR_fnc_generateLRSettings;
  56. _settingsLRwest set [2, ["50","51","52","53","54","55","56","57","58"]];
  57. tf_freq_west_lr = _settingsLRwest;
  58. publicVariable "tf_freq_west_lr";
  59.  
  60.  
  61. //EAST
  62. //Set SW frequencies for East
  63. _settingsSweast = false call TFAR_fnc_generateSwSettings;
  64. _settingsSweast set [2, ["311","312","313","314","315","316","317","318"]];
  65. tf_freq_east = _settingsSwEast;
  66. publicVariable "tf_freq_east";
  67. //Set LR frequencies for East
  68. _settingsLReast = false call TFAR_fnc_generateLRSettings;
  69. _settingsLReast set [2, ["50","51","52","53","54","55","56","57","58"]];
  70. tf_freq_east_lr = _settingsLReast;
  71. publicVariable "tf_freq_east_lr";
  72.  
  73.  
  74. //Independent
  75. //Set SW frequencies for Independent
  76. _settingsSwguer = false call TFAR_fnc_generateSwSettings;
  77. _settingsSwguer set [2, ["311","312","313","314","315","316","317","318"]];
  78. tf_freq_guer = _settingsSwguer;
  79. publicVariable "tf_freq_guer";
  80. //Set LR frequencies for Independent
  81. _settingsLRguer = false call TFAR_fnc_generateLRSettings;
  82. _settingsLRguer set [2, ["50","51","52","53","54","55","56","57","58"]];
  83. tf_freq_guer_lr = _settingsLRguer;
  84. publicVariable "tf_freq_guer_lr";
  85.  
  86.  
  87.  
  88. //========================================Do not touch below - this deals with spectator mode TFR.
  89. private["_unit"];
  90.  
  91. _unit = player;
  92.  
  93. // ====================================================================================
  94.  
  95. // SET SPECTATOR MODE
  96. // If the player is alive and hence not a JIP player, the spectator voice chat will be
  97. // disabled. If the player is dead, and hence a JIP player that hasn't selected an
  98. // active slot, spectator chat will be enabled.
  99.  
  100. if(alive _unit) then {
  101.  
  102. // Disable spectator chat
  103. [_unit, false] call TFAR_fnc_forceSpectator;
  104.  
  105. } else {
  106.  
  107. // Enable spectator chat
  108. [_unit, true] call TFAR_fnc_forceSpectator;
  109.  
  110. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement