aeroson

Untitled

Dec 9th, 2015
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. enableSaving[false,false];
  2. enableEnvironment false;
  3.  
  4.  
  5.  
  6. [] execVM 'unit_markers_for_zeus.sqf';
  7.  
  8.  
  9.  
  10. // prevent automatic LR backpack on squad leaders
  11. tf_no_auto_long_range_radio = true;
  12.  
  13.  
  14.  
  15. // put this at the bottom of init.sqf to remove player's silencers on primary weapon and handgun
  16. [] spawn {
  17. while{hasInterface} do {
  18. _silencer = (primaryWeaponItems player) select 0;
  19. if(_silencer != "") then { player removePrimaryWeaponItem _silencer; };
  20. _silencer = (handgunItems player) select 0;
  21. if(_silencer != "") then { player removeHandgunItem _silencer; };
  22. sleep 1;
  23.  
  24.  
  25. };
  26. };
  27.  
  28.  
  29. // this is the script that makes it work
  30. // you need to specify and name squad leader in here and in editor
  31. // then you need to list names of all markers where the box for that squad leader should spawn
  32. [
  33. // [ squad leader unit name, [marker name where to place first box, marker name where to place second box, etc..] ],
  34. ["alphaSL", ["alpha1","alpha2"] ],
  35. ["bravoSL", ["bravo1"] ],
  36. ["charlieSL", ["charlie1"] ],
  37. ["deltaSL", ["delta1"] ] // last line must not end with ,
  38. ] execVM "init_squad_resupply_box.sqf";
Advertisement
Add Comment
Please, Sign In to add comment