Created
February 22, 2015 22:30
-
-
Save iaretechnician/6b26ad567f82c9264ba1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Tulga Terrorist | |
private ["_position","_box","_missiontimeout","_cleanmission","_playerPresent","_starttime","_currenttime","_cleanunits","_rndnum"]; | |
_position = [12300 +(random 600),3880+(random 600),0]; | |
if (isserver) then { | |
_box = createVehicle ["LocalBasicAmmunitionBox",[(_position select 0) + 2,(_position select 1) + 2,0], [], 0, "CAN_COLLIDE"]; | |
_box setVariable ["ObjectID","1",true]; | |
_box setVariable ["permaLoot",true]; | |
PVDZE_serverObjectMonitor set [count PVDZE_serverObjectMonitor,_box]; | |
clearWeaponCargoGlobal _box; | |
clearMagazineCargoGlobal _box; | |
switch (random 4) do { | |
case 0: { | |
_box addWeaponCargoGlobal ["DMR_DZ", 2]; | |
_box addWeaponCargoGlobal ["M9SD", 1]; | |
_box addMagazineCargoGlobal ["15Rnd_9x19_M9SD", 20]; | |
_box addMagazineCargoGlobal ["20Rnd_762x51_DMR", 20]; | |
}; | |
case 1: { | |
_box addWeaponCargoGlobal ["BAF_LRR_scoped", 1]; | |
_box addWeaponCargoGlobal ["M9SD", 2]; | |
_box addMagazineCargoGlobal ["15Rnd_9x19_M9SD", 10]; | |
_box addMagazineCargoGlobal ["5Rnd_86x70_L115A1", 5]; | |
_box addMagazineCargoGlobal ["20Rnd_762x51_B_SCAR", 5]; | |
// BACKPACKS | |
_box addBackpackCargoGlobal ["DZ_LargeGunBag_EP1", 2]; | |
}; | |
case 2: { | |
_box addWeaponCargoGlobal ["M110_NVG_EP1", 1]; | |
_box addWeaponCargoGlobal ["M9SD", 2]; | |
_box addMagazineCargoGlobal ["15Rnd_9x19_M9SD", 5]; | |
_box addMagazineCargoGlobal ["5Rnd_86x70_L115A1", 5]; | |
_box addMagazineCargoGlobal ["20Rnd_762x51_B_SCAR", 5]; | |
// CLOTHING | |
_box addMagazineCargoGlobal ["Skin_Sniper1_DZ", 2]; | |
}; | |
case 3: { | |
_box addWeaponCargoGlobal ["BAF_LRR_scoped", 1]; | |
_box addWeaponCargoGlobal ["M110_NVG_EP1", 1]; | |
_box addWeaponCargoGlobal ["M9SD", 2]; | |
_box addMagazineCargoGlobal ["15Rnd_9x19_M9SD", 20]; | |
_box addMagazineCargoGlobal ["5Rnd_86x70_L115A1", 5]; | |
_box addMagazineCargoGlobal ["20Rnd_762x51_B_SCAR", 5]; | |
// CLOTHING | |
_box addMagazineCargoGlobal ["Skin_Sniper1_DZ", 1]; | |
// BACKPACKS | |
_box addBackpackCargoGlobal ["DZ_LargeGunBag_EP1", 2]; | |
}; | |
}; | |
//---------------------------------------------------------------------------- | |
diag_log format["TULGA TERRORIST created at %1",_position]; | |
_baserunover = createVehicle ["Land_KBud",[(_position select 0) -2, (_position select 1) -2,0],[], 0, "CAN_COLLIDE"]; | |
_basecampfire = createVehicle ["Land_Campfire_burning",[(_position select 0) +2, (_position select 1) -2,0],[], 0, "CAN_COLLIDE"]; | |
_ttGroup = creategroup EAST; | |
"TK_INS_Soldier_3_EP1" createUnit [ _position, _ttGroup]; | |
_wp =_ttGroup addWaypoint [[12500, 4300,0],500 ]; | |
[_ttGroup, 0] setWaypointBehaviour "Combat"; | |
[_ttGroup, 0] setWaypointSpeed "Limited"; | |
[_ttGroup, 0] setWaypointType "move"; | |
_wp =_ttGroup addWaypoint [[12500, 4300,0],500 ]; | |
[_ttGroup, 1] setWaypointBehaviour "Combat"; | |
[_ttGroup, 1] setWaypointType "move"; | |
_wp =_ttGroup addWaypoint [[12500, 4300,0],500 ]; | |
[_ttGroup, 2] setWaypointBehaviour "Combat"; | |
[_ttGroup, 2] setWaypointType "move"; | |
//back to camp | |
_wp =_ttGroup addWaypoint [[(_position select 0), (_position select 1),0],0 ]; | |
[_ttGroup, 4] setWaypointType "cycle"; | |
terroristAlive = true; | |
if (terroristAlive) then { | |
waitUntil | |
{ | |
sleep 5; | |
terroristAlive = false; | |
{if((isPlayer _x) AND (_x distance _position <= 10)) then {terroristAlive = true};}forEach playableUnits; | |
(terroristAlive) | |
}; | |
diag_log format["TULGA TERRORIST: Location discovered %1",_position]; | |
[nil,nil,rTitleText,"The Tulga Terrorists camp has been located!", "PLAIN",10] call RE; | |
//make the terrorist run back to base camp | |
_wp =_ttGroup addWaypoint [[(_position select 0), (_position select 1),0], 0]; | |
[_ttGroup, 3] setWaypointBehaviour "Combat"; | |
[_ttGroup, 3] setWaypointSpeed "FULL"; | |
_ttGroup setCurrentWaypoint [_ttGroup, 3]; | |
deleteMarker _ttMarker; | |
//------------------------------------------------------------------------ | |
//Launch smoke into air .. triggered security system | |
//Set waypoint of TT to player, set speed to full, | |
}; | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment