Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [] execVM "briefing.sqf";
- [] call WMT_fnc_BriefingMap;
- wog3_no_auto_long_range_radio = true;
- //бегущая строка после фризтайма
- waitUntil{!(isNil "BIS_fnc_init")};
- waitUntil {sleep 5; WMT_pub_frzState >= 3};
- ["WOG3", "Team Yanki", str(date select 2) + "." + str(date select 1) + "." + str(date select 0), "Автор: [13th] DenusKO"] call BIS_fnc_infoText;
- _arrayOfTank = [a1,a2,a3];
- typesOfVehCrewTank = ["wog_army_ucp_crew_commander", "wog_army_ucp_crew_gunner", "wog_army_ucp_crew_driver"];
- EjectSeatTank = {if !(typeOf (_this select 1) in typesOfVehCrewTank) then {moveOut (_this select 1)};};
- {
- _x addEventHandler ["GetIn", {
- if (((_this select 1) == "driver") && !((typeOf (_this select 2)) in typesOfVehCrewTank)) then {
- moveOut (_this select 2);
- };
- }];
- } forEach _arrayOfTank;
- {
- _x addEventHandler ["SeatSwitched", {
- _assignedVehicleRoleArray = assignedVehicleRole (_this select 1);
- switch (_assignedVehicleRoleArray select 0) do {
- case "driver": { //driver
- call EjectSeatTank;
- };
- case "Turret": {
- switch (str (_assignedVehicleRoleArray select 1)) do {
- case "[0]": { //gunner
- call EjectSeatTank;
- };
- default {};
- };
- };
- default {}; //cargo
- };
- }];
- } forEach _arrayOfTank;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement