Advertisement
Guest User

Untitled

a guest
Nov 24th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. [] execVM "briefing.sqf";
  2. [] call WMT_fnc_BriefingMap;
  3. wog3_no_auto_long_range_radio = true;
  4. //бегущая строка после фризтайма
  5. waitUntil{!(isNil "BIS_fnc_init")};
  6. waitUntil {sleep 5; WMT_pub_frzState >= 3};
  7. ["WOG3", "Team Yanki", str(date select 2) + "." + str(date select 1) + "." + str(date select 0), "Автор: [OSA]DenusKO"] call BIS_fnc_infoText;
  8. _arrayOfTank = ["WOG_LAV25_d"];
  9. typesOfVehCrewTank = ["wog_army_ucp_crew_commander", "wog_army_ucp_crew_gunner", "wog_army_ucp_crew_driver"];
  10. EjectSeatTank = {if !(typeOf (_this select 1) in typesOfVehCrewTank) then {moveOut (_this select 1)};};
  11.  
  12. {
  13. _x addEventHandler ["GetIn", {
  14. if (((_this select 1) == "driver") && !((typeOf (_this select 2)) in typesOfVehCrewTank)) then {
  15. moveOut (_this select 2);
  16. };
  17. }];
  18. } forEach _arrayOfTank;
  19.  
  20. {
  21. _x addEventHandler ["SeatSwitched", {
  22. _assignedVehicleRoleArray = assignedVehicleRole (_this select 1);
  23. switch (_assignedVehicleRoleArray select 0) do {
  24. case "driver": { //driver
  25. call EjectSeatTank;
  26. };
  27. case "Turret": {
  28. switch (str (_assignedVehicleRoleArray select 1)) do {
  29. case "[0]": { //gunner
  30. call EjectSeatTank;
  31. };
  32. default {};
  33. };
  34. };
  35. default {}; //cargo
  36. };
  37. }];
  38. } forEach _arrayOfTank;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement