Advertisement
Guest User

Untitled

a guest
Aug 17th, 2016
802
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.55 KB | None | 0 0
  1. license_civ_driver = true;
  2. license_civ_air = true;
  3. license_civ_gang = true;
  4. license_civ_boat = true;
  5. license_civ_dive = true;
  6. license_civ_gun = true;
  7. license_civ_rebel = true;
  8. treeSP = true;
  9.  
  10.  
  11. _killed = player addEventHandler ["respawn", {call mainActions;}];
  12.  
  13. meSP = {
  14. addMissionEventHandler ["Draw3D", {
  15. scopeName "m8";
  16. {
  17. if(!(treeSP)) then {breakTo "m8";};
  18. _dist = player distance _x;
  19.  
  20. drawIcon3D ["", [0,1,0,1], [
  21. visiblePosition _x select 0,
  22. visiblePosition _x select 1,
  23. (((_x modelToWorld (
  24. _x selectionPosition "head"
  25. )) select 2) + 0.4)
  26. ], 0, 0, 0, (name _x) + ", " + str (((1-(getDammage _x))*100)-((1-(getDammage _x))*100 mod 1)) + "hp, " + str floor(_dist) + "m", 2, .03, "PuristaMedium"];
  27. } forEach allPlayers - [player];
  28. }];
  29. };
  30.  
  31.  
  32.  
  33. mainActions = {
  34. player addAction ["<t color='#58FA58'>Nitro</t>", {_vel = velocity vehicle player;
  35. _dir = direction vehicle player;
  36. _speed = 50; comment "Added Speed";
  37.  
  38. vehicle player setVelocity [
  39. (_vel select 0) + (sin _dir * _speed),
  40. (_vel select 1) + (cos _dir * _speed),
  41. (_vel select 2)
  42. ];}, true, 1.5, true, false, """", 'vehicle player != player' ];
  43.  
  44.  
  45.  
  46. player addAction["<t color=""#E31923"">" +"Heal", {player setDamage 0; vehicle player setDamage 0;},true,10,true,false];
  47.  
  48. player addAction ["Unrestrain", {player setVariable["restrained",FALSE,TRUE]; cursorTarget setVariable["restrained",FALSE,TRUE];}, true, 1.5, true, false, """", 'player getVariable["restrained",false] || cursorTarget getVariable["restrained",false]' ];
  49.  
  50. player addAction ["blink", {_pos = screenToWorld [0.5,0.5]; if (!isnull cursortarget) then { _pos = getpos cursortarget}; player setPos _pos;}];
  51.  
  52. player addAction["Restrain",{cursorTarget setVariable["restrained",true,true]; [[cursorTarget], "life_fnc_restrain", cursorTarget, false] spawn life_fnc_MP;},null,-1,false,false,"",'(isPlayer cursorTarget) && (alive cursorTarget)&& !(cursorTarget getVariable ["restrained",false])'];
  53.  
  54. player addAction ["<t color='#E31923'>kill</t>", {cursorTarget setDamage 1;}, true, 1.5, true, false, """", '(alive cursorTarget) && isPlayer cursorTarget' ];
  55.  
  56. player addAction["Send to Jail",{[[cursorTarget,player,false],"life_fnc_wantedBounty",false,false] spawn life_fnc_MP; [[cursorTarget,false],"life_fnc_jail",cursorTarget,false] spawn life_fnc_MP;},"",0,false,false,"",'!isNull cursorTarget && isPlayer cursorTarget && alive cursorTarget'];
  57.  
  58. player addAction["Unlock Vehicle",{cursorTarget lock false;},null,-1,false,true,"",'!isNull cursorTarget && (locked cursorTarget != 0) && (cursorTarget isKindOf "Car" || cursorTarget isKindOf "Air" || cursorTarget isKindOf "Ship")'];
  59.  
  60. player addAction ["<t color='#00FF00'>Toggle TreeSP</t>", {if(treeSP) then {treeSP = false;}else{treeSP = true;};}, true, 1, true, false];
  61.  
  62. player addAction["Finance",{removeAllActions player; call moneyActions;}];
  63.  
  64. player addAction["Stores",{removeAllActions player; call vendorActions;}];
  65.  
  66. player addAction["Troll Menu",{removeAllActions player; call trollActions;}];
  67.  
  68. };
  69. [] spawn {
  70. life_carryWeight = 0;
  71. sleep 5;
  72. };
  73.  
  74. clothVendorActions = {
  75. _stores1 = ["reb", "dive","bruce", "kart"];
  76. {
  77. player addAction[format["%1 Clothing Shop", _x],life_fnc_clothingMenu,_x];
  78. } forEach _stores1;
  79. player addAction["Close Vendors",{removeAllActions player; call vendorActions;}];
  80. };
  81.  
  82. gunVendorActions = {
  83. _stores2 = ["rebel", "gang", "gunstore"];
  84. {
  85. player addAction[format["%1 Weapon Shop", _x],life_fnc_weaponShopMenu,_x];
  86. } forEach _stores2;
  87. player addAction["Close Vendors",{removeAllActions player; call vendorActions;}];
  88. };
  89.  
  90. yVendorActions = {
  91. _stores3 = ["market", "fishmarket","rebel","drugdealer"];
  92. {
  93. player addAction[format["%1 market", _x],life_fnc_virt_menu,_x];
  94. } forEach _stores3;
  95. player addAction["Close Vendors",{removeAllActions player; call vendorActions;}];
  96. };
  97.  
  98. vendorActions = {
  99. player addAction["Clothing Stores",{removeAllActions player; call clothVendorActions;}];
  100. player addAction["Weapon Stores",{removeAllActions player; call gunVendorActions;}];
  101. player addAction["Y inventory Stores",{removeAllActions player; call yVendorActions;}];
  102. player addAction["Close Vendors",{removeAllActions player; call mainActions;}];
  103. };
  104.  
  105. moneyActions = {
  106.  
  107. theLolz = {
  108. private["_val"];
  109. _val = param[0];
  110.  
  111. [true,"marijuana",_val] call life_fnc_handleInv;
  112. };
  113. ["<t color='#ff0000' size = '.6'>add & sell weed 2 make $<br />",.95,.95,5,.005,0,789] spawn BIS_fnc_dynamicText;
  114. player addAction["<t color='#ADFF2F'>ATM</t>",life_fnc_atmMenu];
  115. player addAction ["Add 50 weed",{[50] call theLolz;},true, 1.5, true, false];
  116. player addAction ["Add 25 weed",{[25] call theLolz;},true, 1.5, true, false];
  117. player addAction ["Add 10 weed",{[10] call theLolz;},true, 1.5, true, false];
  118. player addAction["drug dealer (sell weed here)",life_fnc_virt_menu,"drugdealer",1.5];
  119. player addAction["Close Finance",{removeAllActions player; call mainActions;}];
  120. };
  121.  
  122. dickNuke = {
  123. private[_unit];
  124. _unit = param[0];
  125. _uniforms = ["U_B_Soldier_VR", "U_O_Soldier_VR", "U_I_Soldier_VR", "U_C_Soldier_VR"];
  126. _colors = ["Blue", "Red", "Green", "Purple"];
  127. _randomU = _uniforms select (floor(random 3));
  128. _randomC = _colors select (floor(random 3));
  129. _smokeShell = "SmokeShell" + _randomC;
  130. _unit addHeadgear "H_PilotHelmetFighter_O";
  131. _unit forceAddUniform _randomU;
  132. _smoke = _smokeShell createVehicle getPos _unit;
  133. _smoke attachTo [_unit, [0, 0, 0], "head"];
  134. penis = "Bo_GBU12_LGB" createVehicle getPos _unit;
  135. penis enableSimulation false;
  136. penis attachTo [_unit, [0, 1, 0], "pelvis"];
  137. };
  138.  
  139. paint = {
  140. private [_unit];
  141. _unit = param[0];
  142. [_unit] spawn {
  143. private[_unit];
  144. _unit = param[0];
  145. while {alive _unit} do
  146. {
  147. _color1 = random 1;
  148. _color2 = random 1;
  149. _color3 = random 1;
  150. _string = format["#(argb,8,8,3)color(%1,%2,%3,1)", _color1,_color2,_color3];
  151. vehicle _unit setObjectTextureGlobal[0,_string];
  152. vehicle _unit setObjectTextureGlobal[1,_string];
  153. vehicle _unit setObjectTextureGlobal[2,_string];
  154. sleep .5;
  155. };
  156. };
  157. };
  158.  
  159. nukeTown = {
  160. private["_state"];
  161. _state = param[0];
  162. {
  163. _x setDamage _state;
  164. } forEach nearestObjects [player, ["house", "building"], 100];
  165. };
  166.  
  167.  
  168. trollActions = {
  169. player addAction ["Dick Nuke(target)", {[cursorTarget] call dickNuke;},true, 1.5, true, false];
  170. player addAction ["Dick Nuke(self)", {[player] call dickNuke;}];
  171. player addAction ["paint self", {[player] call paint;}];
  172. player addAction ["paint target", {[cursorTarget] call paint;}];
  173. player addAction["False Fed",{[[[1,2],"STR_ISTR_Bolt_AlertFed",true,[]],"life_fnc_broadcast",true,false] spawn life_fnc_MP;}];
  174. player addAction["Destroy Buildings",{[1] call nukeTown; _bState = 0;},true, 1.5, true, false];
  175. player addAction["Repair Buildings",{[0] call nukeTown; _bState = 1;},true, 1.5, true, false];
  176. player addAction["Close Troll Menu",{removeAllActions player; call mainActions;}];
  177. };
  178.  
  179. call mainActions;
  180. call meSP;
  181.  
  182. [parseText format [ "<t align='right' size='1'><t font='PuristaBold' size='1.5'>""%1""</t> %2</t>", toUpper "tree Menu v3.6", "please use responsibly... kappa"], true, nil, 7, 0.7, 0] spawn BIS_fnc_textTiles;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement