/************************************
Script to deploy a sniper camo net at the location of the soldier.
While camo net backpacks are available in the editor, this script may 
be useful for automation purposes in a mission.

Edit the TWO (2) lines marked in the script below with any other type
of net you desire.  Use the following net types:

----------------------------
Prone-height East pattern:
----------------------------
pook_camonet_small_east  // BIS Chernarus Camo
pook_camonet_small_east2 // BIS Desert Brown
pook_camonet_small_east3 // Cadpat
pook_camonet_small_east4 // Desert Storm
pook_camonet_small_east5 // DPM Desert
pook_camonet_small_east6 // Flecktarn
pook_camonet_small_east7 // Flecktarn Desert
pook_camonet_small_east8 // Rus Desert Camo
pook_camonet_small_east9 // Rus Forest Camo
... etc.

----------------------------
Prone-height West pattern:
----------------------------
pook_camonet_small_west  // BIS Chernarus Camo
pook_camonet_small_west2 // BIS Desert Brown
pook_camonet_small_west3 // Cadpat
pook_camonet_small_west4 // Desert Storm
pook_camonet_small_west5 // DPM Desert
pook_camonet_small_west6 // Flecktarn
pook_camonet_small_west7 // Flecktarn Desert
pook_camonet_small_west8 // Rus Desert Camo
pook_camonet_small_west9 // Rus Forest Camo

----------------------------
Crouch-height East pattern:
----------------------------
pook_camonet_med_east  // BIS Chernarus Camo
pook_camonet_med_east2 // BIS Desert Brown
pook_camonet_med_east3 // Cadpat
pook_camonet_med_east4 // Desert Storm
pook_camonet_med_east5 // DPM Desert
pook_camonet_med_east6 // Flecktarn
pook_camonet_med_east7 // Flecktarn Desert
pook_camonet_med_east8 // Rus Desert Camo
pook_camonet_med_east9 // Rus Forest Camo

----------------------------
Crouch-height West pattern:
----------------------------
pook_camonet_med_west  // BIS Chernarus Camo
pook_camonet_med_west2 // BIS Desert Brown
pook_camonet_med_west3 // Cadpat
pook_camonet_med_west4 // Desert Storm
pook_camonet_med_west5 // DPM Desert
pook_camonet_med_west6 // Flecktarn
pook_camonet_med_west7 // Flecktarn Desert
pook_camonet_med_west8 // Rus Desert Camo
pook_camonet_med_west9 // Rus Forest Camo
************************************/

// Not on dedicated
if (isDedicated) exitWith {}; 

_soldier = _this;
sleep 1;

_soldier_camonetMarker = "HeliHEmpty" createVehicle [0,0,0]; 
_soldier_camonetMarker setPos [ getPos _soldier select 0, getPos _soldier select 1, 0];
sleep 1;
_soldier playMove "AinvPknlMstpSlayWrflDnon_medic";
///////////////////////////////////////////////////
// Edit this line (1 of 2) for different nets!!!
_soldier_camonet = "pook_camonet_med_west" createVehicle [0,0,0];   // Edit this line
///////////////////////////////////////////////////
_soldier_camonet setDir (getDir _soldier);
_soldier_camonet setPos [ getPos _soldier select 0, getPos _soldier select 1, 0];
sleep 1;

// Cleanup camo net if soldier is killed or leaves site

waitUntil {(_soldier distance _soldier_camonetMarker > 25) || !(alive _soldier)};

sleep 1;

///////////////////////////////////////////////////
// Edit this line (2 of 2) for different nets!!!
_soldier_camonet = nearestObject [_soldier, "pook_camonet_med_west"];  // Edit this line
///////////////////////////////////////////////////
deleteVehicle _soldier_camonet;
sleep 1;
_soldier_camonetMarker = nearestObject [_soldier, "HeliHEmpty"]; 
deleteVehicle _soldier_camonetMarker;
sleep 1;

