Advertisement
sonixapache

TFR script stuff

Aug 20th, 2015
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.03 KB | None | 0 0
  1. /*
  2. Works great in combination with the 'wowFUCKTFR' script found here;
  3. http://pastebin.com/ScR3nNgs
  4. */
  5.  
  6. //Wait until TFR is done converting radios to unique radios so the script at the end doesn't break
  7. //Script halts until item in radio slot is equal to a TFR radio
  8. waituntil {sleep 0.1;
  9.     ([(Assigneditems player select 3),"tf_anprc152"] call TFAR_fnc_isSameRadio) ||
  10.     ([(Assigneditems player select 3),"tf_anprc148jem"] call TFAR_fnc_isSameRadio)} ||
  11.     ([(Assigneditems player select 3),"tf_fadak"] call TFAR_fnc_isSameRadio)} ||
  12.     ([(Assigneditems player select 3),"tf_rf7800str"] call TFAR_fnc_isSameRadio) ||
  13.     ([(Assigneditems player select 3),"tf_anprc154"] call TFAR_fnc_isSameRadio)} ||
  14.     ([(Assigneditems player select 3),"tf_pnr1000a"] call TFAR_fnc_isSameRadio)};
  15.     }; 
  16.    
  17.    
  18.     //set the default channel for the players - thanks, >>95335962
  19.     //Also sets the default ear to left
  20.     //Set group ID with setGroupId
  21.     //ex. "  (group this) setGroupId ["alpha"]; " in the init of a sql
  22.     switch (groupID group player) do {
  23.         case "Alpha": {
  24.         [(call TFAR_fnc_activeSwRadio), 0] call TFAR_fnc_setSwChannel;
  25.         [(Call TFAR_fnc_ActiveSWRadio), 1] call TFAR_fnc_setSwStereo;
  26.         }; 
  27.        
  28.         case "Bravo": {
  29.         [(call TFAR_fnc_activeSwRadio), 1] call TFAR_fnc_setSwChannel;
  30.         [(call TFAR_fnc_ActiveSWRadio), 1] call TFAR_fnc_setSwStereo;
  31.         };
  32.        
  33.         case "Charlie": {
  34.         [(call TFAR_fnc_activeSwRadio), 2] call TFAR_fnc_setSwChannel;
  35.         [(call TFAR_fnc_ActiveSWRadio), 1] call TFAR_fnc_setSwStereo;
  36.         }; 
  37.     };
  38.    
  39.    
  40. //For squad leaders and other long-range equipped folk that don't have a pack radio;
  41. //Sets channel 7 (highest channel on a normal radio) to the LR channel And sets it active on the additional channel.
  42. //Also sets the additional channel to the right ear.
  43. /*
  44.     [(call TFAR_fnc_activeSwRadio), 7] call TFAR_fnc_setAdditionalSwChannel;
  45.     [(call TFAR_fnc_ActiveSWRadio), 2] call TFAR_fnc_setAdditionalSwStereo;
  46.     hint "Your radio's additional channel is set to the long-range channel. Default keybind to speak on the additional channel: T";
  47. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement