Advertisement
Guest User

Untitled

a guest
Feb 24th, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. /*
  2. Bandit Party by lazyink (Full credit for code to TheSzerdi & TAW_Tonic)
  3. Updated to new format by Vampire
  4. Edited by Fuchs for EMS
  5. */
  6. private ["_missName","_coords","_crash","_tent"];
  7.  
  8. //Name of the Mission
  9. _missName = "Bandit Party";
  10.  
  11. //DZMSFindPos loops BIS_fnc_findSafePos until it gets a valid result
  12. _coords = call DZMSFindPos;
  13.  
  14. [nil,nil,rTitleText,"Another bandit party has started!", "PLAIN",10] call RE;
  15.  
  16. //DZMSAddMinMarker is a simple script that adds a marker to the location
  17. [_coords,_missName] ExecVM DZMSAddMinMarker;
  18.  
  19. //Add scenery
  20. _crash = createVehicle ["UralWreck",_coords,[], 0, "CAN_COLLIDE"];
  21.  
  22. //DZMSProtectObj prevents it from disappearing
  23. [_crash] call DZMSProtectObj;
  24.  
  25. //DZMSAISpawn spawns AI to the mission.
  26. //Usage: [_coords, count, skillLevel]
  27. [_coords,4,1] ExecVM DZMSAISpawn;
  28. sleep 1;
  29. [_coords,4,2] ExecVM DZMSAISpawn;
  30. sleep 1;
  31.  
  32.  
  33. //This function is !! Not tested !!
  34. _tent = createVehicle ["TentStorage",_coords select 1,[], 0, "NONE"];
  35. _tent call DZMSProtectObj;
  36. sleep 1;
  37.  
  38. _tent addWeaponCargoGlobal ["ItemCompass", 2];
  39. _tent addWeaponCargoGlobal ["ItemGPS", 3];
  40. _tent addWeaponCargoGlobal ["NVGoggles", 1];
  41. _tent addMagazineCargoGlobal ["FoodCanBakedBeans", 4];
  42. _tent addMagazineCargoGlobal ["ItemBandage", 4];
  43. _tent addMagazineCargoGlobal ["ItemMorphine", 4];
  44. _tent addMagazineCargoGlobal ["ItemPainkiller", 4];
  45. _tent addMagazineCargoGlobal ["ItemAntibiotic", 2];
  46. _tent addWeaponCargoGlobal ["ItemKnife", 2];
  47. _tent addWeaponCargoGlobal ["ItemToolbox", 2];
  48. _tent addWeaponCargoGlobal ["ItemMatches", 2];
  49. _tent addMagazineCargoGlobal ["ItemBloodbag", 2];
  50. _tent addMagazineCargoGlobal ["ItemJerryCan", 2];
  51. _tent addMagazineCargoGlobal ["MP5A5", 2];
  52. _tent addMagazineCargoGlobal ["30Rnd_9x19_MP5", 5];
  53. _tent addMagazineCargoGlobal ["glock17_EP1", 2];
  54. _tent addMagazineCargoGlobal ["17Rnd_9x19_glock17", 4];
  55.  
  56. //Wait until the player is within 30meters
  57. waitUntil{{isPlayer _x && _x distance _coords <= 30 } count playableunits > 0};
  58.  
  59. //Let everyone know the mission is over
  60. [nil,nil,rTitleText,"Bandit party rushed by survivors!", "PLAIN",6] call RE;
  61. diag_log format["[DZMS]: Minor SM8 Bandit Party Mission has Ended."];
  62. deleteMarker "DZMSMinMarker";
  63. deleteMarker "DZMSMinDot";
  64.  
  65. //Let the timer know the mission is over
  66. DZMSMinDone = true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement