Advertisement
Guest User

Untitled

a guest
Jun 16th, 2018
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. #include "\task_force_radio\functions\common.sqf";
  2.  
  3. /*
  4. The first part of the array is the squad name. If blueforce tracker is on this is the name that will display on the map.
  5. The second number in the array is the channel number for short range radios that will be displayed in the hint provided to players upon start.
  6. The remainder of the array is the units that make up each squad.
  7. The below are examples, change as neccessary.
  8. The last group array should NOT have a comma at the end.
  9. Any changes made here must also be reflected in setpatch.sqf in order to display insignia.
  10. */
  11.  
  12. TFD_ORBAT = [
  13. ["Command",8,"s1","s2"],
  14. ["Anna",1,"s3","s4","s5","s6","s7"],
  15. ["Borris",2,"s8","s9","s10","s11","s12"],
  16. ["Vasily",3,"s13","s14","s15","s16","s17"],
  17. ["Gregory",4,"s18","s19","s20","s21","s22"],
  18. ["Dmitri",5,"s23","s24","s25","s26","s27"],
  19. ["Yelena",6,"s28","s29","s30","s31","s32"],
  20. ["Ivan",7,"s33","s34","s35","s36","s37"]
  21. ];
  22.  
  23.  
  24. [] spawn {
  25.  
  26. _name = format ["%1", player];
  27. _role = getText (configFile >> "CfgVehicles" >> typeOf player >> "displayname");
  28. {
  29. if (_name in _x) then {
  30.  
  31. _channel = (_x select 1);
  32. waitUntil {[] call TFAR_fnc_haveSWRadio};
  33. // Channels are 0 indexed so must be _channel - 1
  34. [(call TFAR_fnc_activeSwRadio), _channel - 1] call TFAR_fnc_setSwChannel;
  35. sleep 0.5;
  36.  
  37. "Attention" hintC [
  38. if ( player == s1 ) then {
  39. "You are the mission commander.";
  40. } else {
  41. format[ "Mission commander is %1." , name s1 ];
  42. },
  43. format[ "You are in %1." , (_x select 0) ],
  44. if ( _role == "Squad Leader" || _role == "Team Leader" || _role == "Officer" ) then {
  45. "You are the leader of your group, please report to the command area for briefing.";
  46. } else {
  47. format[ "Your group leader is %1, please wait in your rally area until the mission begins." , (name leader group player) ];
  48. },
  49. format[ "Your SR channel is %1." , _channel ],
  50. "LR comms are channel 1." //Edit here if neccessary to define LR channels.
  51. ];
  52. };
  53. } forEach TFD_ORBAT;
  54.  
  55. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement