Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Export of 'altis-01.Altis' by smokeOut on v0.9
- ///////////////////////////////////////////////////////////////////////////////////////////
- // Init
- params [["_layerWhiteList",[],[[]]],["_layerBlacklist",[],[[]]],["_posCenter",[0,0,0],[[]]],["_dir",0,[0]],["_idBlacklist",[],[[]]]];
- private _allWhitelisted = _layerWhiteList isEqualTo [];
- private _layerRoot = (_allWhitelisted || {true in _layerWhiteList}) && {!(true in _layerBlackList)};
- ///////////////////////////////////////////////////////////////////////////////////////////
- // Markers
- private _markers = [];
- private _markerIDs = [];
- ///////////////////////////////////////////////////////////////////////////////////////////
- // Groups
- private _groups = [];
- private _groupIDs = [];
- private _item25 = grpNull;
- if (_layerRoot) then {
- _item25 = createGroup civilian;
- _this = _item25;
- _groups pushback _this;
- _groupIDs pushback 25;
- };
- ///////////////////////////////////////////////////////////////////////////////////////////
- // Objects
- private _objects = [];
- private _objectIDs = [];
- private _item2 = objNull;
- if (_layerRoot) then {
- _item2 = createVehicle ["Weapon_hgun_P07_F",[13708.7,12182.1,0],[],0,"CAN_COLLIDE"];
- _this = _item2;
- _objects pushback _this;
- _objectIDs pushback 2;
- _this setPosWorld [13708.7,12182.1,0.991401];
- _this setVectorDirAndUp [[0.819799,0.502889,-0.27392],[0.295525,0.0381894,0.954571]];
- gun1 = _this;
- _this setVehicleVarName "gun1";
- };
- private _item4 = objNull;
- if (_layerRoot) then {
- _item4 = createVehicle ["Land_WoodenTable_small_F",[13419,11900.1,0.339372],[],0,"CAN_COLLIDE"];
- _this = _item4;
- _objects pushback _this;
- _objectIDs pushback 4;
- _this setPosWorld [13419,11900.1,14.0156];
- _this setVectorDirAndUp [[0.206674,-0.97841,0],[0,0,1]];
- };
- private _item5 = objNull;
- if (_layerRoot) then {
- _item5 = createVehicle ["Land_CampingChair_V2_F",[13417.5,11899.6,0.264827],[],0,"CAN_COLLIDE"];
- _this = _item5;
- _objects pushback _this;
- _objectIDs pushback 5;
- _this setPosWorld [13417.5,11899.6,14.0898];
- _this setVectorDirAndUp [[-0.967244,-0.253847,0],[0,0,1]];
- };
- private _item17 = objNull;
- if (_layerRoot) then {
- _item17 = createVehicle ["Land_FMradio_F",[13419.2,11900.6,1.225],[],0,"CAN_COLLIDE"];
- _this = _item17;
- _objects pushback _this;
- _objectIDs pushback 17;
- _this setPosWorld [13419.2,11900.6,14.5204];
- _this setVectorDirAndUp [[-0.799999,-0.600001,0],[0,0,1]];
- radio1 = _this;
- _this setVehicleVarName "radio1";
- };
- private _item18 = objNull;
- if (_layerRoot) then {
- _item18 = createVehicle ["Land_FirePlace_F",[13433.5,11902.4,-1.52588e-005],[],0,"CAN_COLLIDE"];
- _this = _item18;
- _objects pushback _this;
- _objectIDs pushback 18;
- _this setPosWorld [13433.5,11902.4,12.7912];
- _this setVectorDirAndUp [[0.900022,0.435712,0.0107389],[-0.0466163,0.0717359,0.996334]];
- };
- private _item26 = objNull;
- if (_layerRoot) then {
- _item26 = _item25 createUnit ["C_man_p_fugitive_F_afro",[13418.3,11895.8,0],[],0,"CAN_COLLIDE"];
- _item25 selectLeader _item26;
- _this = _item26;
- _objects pushback _this;
- _objectIDs pushback 26;
- _this setPosWorld [13418.3,11895.8,13.3968];
- _this setVectorDirAndUp [[0.225682,-0.974201,0],[0,0,1]];
- _this setUnitLoadout [[],[],[],["U_I_C_Soldier_Bandit_2_F",[]],[],[],"H_Cap_blk","G_Shades_Green",[],["ItemMap","","","ItemCompass","ItemWatch",""]];
- selectPlayer _this;
- _this setname "Katungi Okoye";;
- _this setface "AfricanHead_02";;
- _this setpitch 0.97;;
- };
- private _item27 = objNull;
- if (_layerRoot) then {
- _item27 = createVehicle ["Land_PenBlack_F",[13419,11899.7,1.20183],[],0,"CAN_COLLIDE"];
- _this = _item27;
- _objects pushback _this;
- _objectIDs pushback 27;
- _this setPosWorld [13419,11899.7,14.4663];
- _this setVectorDirAndUp [[-0.971632,-0.236497,0],[0,0,1]];
- };
- private _item28 = objNull;
- if (_layerRoot) then {
- _item28 = createVehicle ["Land_Notepad_F",[13419,11899.8,1.1959],[],0,"CAN_COLLIDE"];
- _this = _item28;
- _objects pushback _this;
- _objectIDs pushback 28;
- _this setPosWorld [13419,11899.8,14.459];
- _this setVectorDirAndUp [[-0.3229,0.946433,0],[0,0,1]];
- _this setObjectTextureGlobal [0,"#(argb,8,8,3)color(0.835294,0,0,0.0,ca)"];
- };
- private _item41 = objNull;
- if (_layerRoot) then {
- _item41 = createVehicle ["Land_Sleeping_bag_brown_F",[13415.6,11899.2,0.377682],[],0,"CAN_COLLIDE"];
- _this = _item41;
- _objects pushback _this;
- _objectIDs pushback 41;
- _this setPosWorld [13415.6,11899.2,13.6092];
- _this setVectorDirAndUp [[-0.974819,-0.222997,0],[0,0,1]];
- };
- private _item44 = objNull;
- if (_layerRoot) then {
- _item44 = createVehicle ["Land_Pillow_grey_F",[13414.9,11898.7,0.440938],[],0,"CAN_COLLIDE"];
- _this = _item44;
- _objects pushback _this;
- _objectIDs pushback 44;
- _this setPosWorld [13414.9,11898.7,13.6454];
- _this setVectorDirAndUp [[0.80129,-0.598272,0.0024221],[-0.0080009,-0.00666765,0.999946]];
- };
- private _item50 = objNull;
- if (_layerRoot) then {
- _item50 = createVehicle ["Land_Workbench_01_F",[13414.2,11897,0],[],0,"CAN_COLLIDE"];
- _this = _item50;
- _objects pushback _this;
- _objectIDs pushback 50;
- _this setPosWorld [13414.1,11897,13.6186];
- _this setVectorDirAndUp [[0.965601,0.241041,0.0975355],[-0.0995108,-0.00399438,0.995028]];
- wb1 = _this;
- _this setVehicleVarName "wb1";
- };
- private _item59 = objNull;
- if (_layerRoot) then {
- _item59 = createVehicle ["Item_SecretDocuments",[13418.8,11900.4,1.202],[],0,"CAN_COLLIDE"];
- _this = _item59;
- _objects pushback _this;
- _objectIDs pushback 59;
- _this setPosWorld [13418.8,11900.4,14.7157];
- _this setVectorDirAndUp [[-0.769366,-0.638808,0],[0,0,1]];
- };
- ///////////////////////////////////////////////////////////////////////////////////////////
- // Triggers
- private _triggers = [];
- private _triggerIDs = [];
- private _item31 = objNull;
- if (_layerRoot) then {
- _item31 = createTrigger ["EmptyDetector",[13419.1,11891.7,0],true];
- _this = _item31;
- _triggers pushback _this;
- _triggerIDs pushback 31;
- _item31 setPosATL [13419.1,11891.7,0];
- _this setTriggerStatements ["time > 1","nul = [this] spawn {while {true} do {playSound3D [getMissionPath '\sfx\track1_hp12.ogg', radio1, true]; sleep 34;playSound3D [getMissionPath '\sfx\track2_hp12.ogg', radio1, true];sleep 19;};};
- ",""];
- _this setTriggerText "tr_radio";
- };
- private _item54 = objNull;
- if (_layerRoot) then {
- _item54 = createTrigger ["EmptyDetector",[13415.6,11899.1,0.405],true];
- _this = _item54;
- _triggers pushback _this;
- _triggerIDs pushback 54;
- _item54 setPosATL [13415.6,11899.1,0.405];
- _this setTriggerArea [1.2,0.6,346,true,0.25];
- _this setTriggerActivation ["ANYPLAYER","PRESENT",true];
- _this setTriggerStatements ["this","act0 = player addAction [""Sleep ten hours"", {skipTime 10;}];
- ","player removeAction act0;"];
- _this setTriggerText "tr_sleep";
- };
- private _item55 = objNull;
- if (_layerRoot) then {
- _item55 = createTrigger ["EmptyDetector",[13413.5,11896.8,0],true];
- _this = _item55;
- _triggers pushback _this;
- _triggerIDs pushback 55;
- _item55 setPosATL [13413.5,11896.8,0];
- _this setTriggerArea [1.4,0.6,76,true,1.5];
- _this setTriggerActivation ["ANYPLAYER","PRESENT",true];
- _this setTriggerStatements ["this && bp && col","act0 = player addAction [""Craft magazine"", { player addMagazine ""16Rnd_9x21_Mag"" }];","player removeAction act0;"];
- _this setTriggerText "tr_craft";
- };
- private _item61 = objNull;
- if (_layerRoot) then {
- _item61 = createTrigger ["EmptyDetector",[13704.3,12180.5,0],true];
- _this = _item61;
- _triggers pushback _this;
- _triggerIDs pushback 61;
- _item61 setPosATL [13704.3,12180.5,0];
- _this setTriggerArea [10,10,0,false,-1];
- _this setTriggerActivation ["ANYPLAYER","PRESENT",false];
- _this setTriggerStatements ["this && (player hasWeapon ""hgun_P07_F"")","""task1"" call BIS_fnc_deleteTask; col = true;
- [side player, ""task1"", [""Craft something"", ""Crafting"", ""craftmarker""],
- getPos wb1, ""ASSIGNED"", 2, true] call BIS_fnc_taskCreate;
- ",""];
- _this setTriggerText "tr_gun";
- };
- private _item62 = objNull;
- if (_layerRoot) then {
- _item62 = createTrigger ["EmptyDetector",[13412.4,11891.1,0],true];
- _this = _item62;
- _triggers pushback _this;
- _triggerIDs pushback 62;
- _item62 setPosATL [13412.4,11891.1,0];
- _this setTriggerStatements ["(""16Rnd_9x21_Mag"" in magazines player)","""task1"" call BIS_fnc_deleteTask;g1 = createGroup [civilian, true];
- ""O_G_officer_F"" createUnit [[13593.531, 12200.022, 0],g1,""bot1 = this;"",0.6,""corporal""];
- [side player, ""task1"", [""Remove local target"", ""Remove"", ""killmarker""], getPos bot1, ""ASSIGNED"", 2, true] call BIS_fnc_taskCreate;",""];
- _this setTriggerText "tr_hunt";
- };
- private _item64 = objNull;
- if (_layerRoot) then {
- _item64 = createTrigger ["EmptyDetector",[13591,12202.1,0],true];
- _this = _item64;
- _triggers pushback _this;
- _triggerIDs pushback 64;
- _item64 setPosATL [13591,12202.1,0];
- _this setTriggerStatements ["!alive bot1","[""END1""] remoteExec [""endMission"", 0, true];",""];
- _this setTriggerText "tr_fin";
- };
- ///////////////////////////////////////////////////////////////////////////////////////////
- // Group attributes (applied only once group units exist)
- _this = _item25;
- if !(units _this isEqualTo []) then {
- [_this,0] setWaypointPosition [position leader _this,0];
- _this setGroupID ["Alpha 1-1"];;
- };
- ///////////////////////////////////////////////////////////////////////////////////////////
- // Waypoints
- private _waypoints = [];
- private _waypointIDs = [];
- ///////////////////////////////////////////////////////////////////////////////////////////
- // Logics
- private _logics = [];
- private _logicIDs = [];
- ///////////////////////////////////////////////////////////////////////////////////////////
- // Layers
- ///////////////////////////////////////////////////////////////////////////////////////////
- // Crews
- ///////////////////////////////////////////////////////////////////////////////////////////
- // Vehicle cargo
- ///////////////////////////////////////////////////////////////////////////////////////////
- // Connections
- ///////////////////////////////////////////////////////////////////////////////////////////
- // Inits (executed only once all entities exist; isNil used to ensure non-scheduled environment)
- isNil {
- if !(isnull _item26) then {
- this = _item26;
- player enableStamina false; col = false;;
- };
- if !(isnull _item59) then {
- this = _item59;
- bp = false;player addEventHandler ["Take", {_this execVM "blueprint.sqf"}];;
- };
- };
- ///////////////////////////////////////////////////////////////////////////////////////////
- // Module activations (only once everything is spawned and connected)
- ///////////////////////////////////////////////////////////////////////////////////////////
- [[_objects,_groups,_triggers,_waypoints,_logics,_markers],[_objectIDs,_groupIDs,_triggerIDs,_waypointIDs,_logicIDs,_markerIDs]]
Advertisement
Add Comment
Please, Sign In to add comment