123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- #include "../../config_macros.hpp"
- params[
- ["_vic",objNull ,[player]]
- ];
-
- if (!canSuspend) exitWith {
- _vic spawn macro_fnc_name(atte_uav_init);
- };
-
- if (!isServer) exitWith {};
-
- if(isNull _vic || !(alive _vic)) exitWith {
-
- };
-
-
- sleep 1;
-
- if(isNull _vic || !(alive _vic)) exitWith {
-
- };
-
-
- _atte_tank = createVehicle [macro_quote(macro_new_vehicle(ATTE,MkII)), getPosASL _vic, [], 0, 'CAN_COLLIDE'];
- if(isNull _atte_tank) exitWith {
-
- };
-
-
-
- _atte_tank addAction ["<t color='#00FF00'>Hull Damage Report</t>",
- {
- hint parseText format["<t color='#0099FF'> Hull Integrity is :%1%2</t>",((1-(damage (_this select 0)))*100),"%"];
- }];
-
- _vic call macro_fnc_name(add_remove_attached_EH);
- [_vic, -1] call ace_cargo_fnc_setSpace;
-
-
-
-
-
- _vic allowDamage false;
- _vic lockTurret [[1], true];
- clearMagazineCargoGlobal _vic;
- clearItemCargoGlobal _vic;
- _vic addItemCargoGlobal ["ACE_elasticBandage", 40];
- _vic addItemCargoGlobal ["ACE_quikclot", 40];
- _vic addItemCargoGlobal ["ACE_morphine", 15];
- _vic addItemCargoGlobal ["ACE_epinephrine", 15];
- _vic addItemCargoGlobal ["ACE_plasmaIV_500", 40];
- _vic addItemCargoGlobal ["ACE_packingBandage", 20];
- _vic addItemCargoGlobal ["SW_SquadShield_Mag", 3];
- _vic addItemCargoGlobal ["B_UavTerminal", 5];
-
-
-
- _atte_tank attachTo [_vic,[0,0,-1.9]];
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [_vic,[0,-4.2,1.9]] spawn macro_fnc_name(create_itt);
- [_vic,[0,3.2,1.9]] spawn macro_fnc_name(create_itt);
- [
- _atte_tank,
- macro_quote(macro_new_vehicle(turret_ATTE,Front_Right_UAV)),
- [1.25,4.5,4]
- ] spawn macro_fnc_name(create_atte_turrets);
- [
- _atte_tank,
- macro_quote(macro_new_vehicle(turret_ATTE,Front_Left_UAV)),
- [-1.05,4.5,4]
- ] spawn macro_fnc_name(create_atte_turrets);
- [
- _atte_tank,
- macro_quote(macro_new_vehicle(turret_ATTE,Rear_UAV)),
- [-0.75,-7.8,3.733],
- 180
- ] spawn macro_fnc_name(create_atte_turrets);
-
-
|