Advertisement
Guest User

Untitled

a guest
May 6th, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.71 KB | None | 0 0
  1. scriptName "Functions\misc\fn_selfActions.sqf";
  2.  
  3. private ["_mags","_hastinitem","_canPickLight","_text","_driver","_hasRawMeat","_isFuel","_menu","_isHarvested","_isVehicle","_isVehicletype","_isMan","_ownerID","_isAnimal","_isZombie","_isDestructable","_isTent","_part","_isStash","_isMediumStash","_hasFuel20","_hasFuel5","_isAlive","_canmove","_isPlant","_rawmeat","_vehicle","_inVehicle","_hasFuelE20","_hasFuelE5","_cursorTarget","_hasbottleitem","_primaryWeapon","_currentWeapon","_hasKnife","_hasToolbox","_onLadder","_nearLight","_canDo"];
  4.  
  5. _vehicle = vehicle player;
  6. _inVehicle = (_vehicle != player);
  7. //_bag = unitBackpack player;
  8. //_classbag = typeOf _bag;
  9. //_isWater = (surfaceIsWater (getPosATL player)) or dayz_isSwimming;
  10. //_hasAntiB = "ItemAntibiotic" in magazines player;
  11. _hasFuelE20 = "ItemJerrycanEmpty" in magazines player;
  12. _hasFuelE5 = "ItemFuelcanEmpty" in magazines player;
  13. _cursorTarget = cursorTarget;
  14. //boiled Water
  15. _hasbottleitem = "ItemWaterbottle" in magazines player;
  16. _hastinitem = false;
  17. _primaryWeapon = primaryWeapon player;
  18. _currentWeapon = currentWeapon player;
  19. {
  20. if (_x in magazines player) then {
  21. _hastinitem = true;
  22. };
  23.  
  24. } forEach boil_tin_cans;
  25.  
  26. _hasKnife = "ItemKnife" in items player;
  27. _hasMatches = "ItemMatchbox" in items player;
  28. _hasToolbox = "ItemToolbox" in items player;
  29. //_hasTent = "ItemTent" in items player;
  30. _onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
  31. _nearLight = nearestObject [player,"LitObject"];
  32. _canPickLight = false;
  33.  
  34. if (!isNull _nearLight) then {
  35. if (_nearLight distance player < 4) then {
  36. _canPickLight = isNull (_nearLight getVariable ["owner",objNull]);
  37. };
  38. };
  39. _canDo = (!r_drag_sqf and !r_player_unconscious and !_onLadder);
  40.  
  41. // -------------------------------------- Deploy Bike --------------------------------------
  42. _weapons = [currentWeapon player] + (weapons player) + (magazines player);
  43. _isBike = typeOf cursorTarget in ["Old_bike_TK_INS_EP1","Old_bike_TK_CIV_EP1"];
  44.  
  45. // -------------------------------------- Deploy Bike --------------------------------------
  46. _weapons = [currentWeapon player] + (weapons player) + (magazines player);
  47. _isBike = typeOf cursorTarget in ["Old_bike_TK_INS_EP1","Old_bike_TK_CIV_EP1"];
  48.  
  49. // -------------------------------------- BIKE DEPLOY --------------------------------------
  50. if ("ItemToolbox" in _weapons) then {
  51. hasBikeItem = true;
  52. } else { hasBikeItem = false;};
  53. if((speed player <= 1) && hasBikeItem && _canDo) then {
  54. if (s_player_deploybike < 0) then {
  55. s_player_deploybike = player addaction[("<t color=""#b4b700"">" + ("Deploy Bike") +"</t>"),"deploys\bike\deploy.sqf","",5,false,true,"", ""];
  56. };
  57. } else {
  58. player removeAction s_player_deploybike;
  59. s_player_deploybike = -1;
  60. };
  61.  
  62. // -------------------------------------- PACK BIKE --------------------------------------
  63. if((_isBike) and _canDo) then {
  64. if (s_player_deploybike2 < 0) then {
  65. s_player_deploybike2 = player addaction[("<t color=""#b4b700"">" + ("Re-Pack Bike") +"</t>"),"deploys\bike\pack.sqf","",5,false,true,"", ""];
  66. };
  67. } else {
  68. player removeAction s_player_deploybike2;
  69. s_player_deploybike2 = -1;
  70. };
  71. // -------------------------------------- PACK BIKE --------------------------------------
  72.  
  73.  
  74. _mags = magazines player;
  75.  
  76. // Krixes Self Bloodbag
  77. if ("ItemBloodbag" in _mags) then {
  78. hasBagItem = true;
  79. } else { hasBagItem = false;};
  80. if((speed player <= 1) && hasBagItem && _canDo) then {
  81. if (s_player_selfBloodbag < 0) then {
  82. s_player_selfBloodbag = player addaction[("<t color=""#c70000"">" + ("Self Bloodbag") +"</t>"),"Scripts\player_selfbloodbag.sqf","",5,false,true,"", ""];
  83. };
  84. } else {
  85. player removeAction s_player_selfBloodbag;
  86. s_player_selfBloodbag = -1;
  87. };
  88.  
  89. //Grab Flare
  90. if (_canPickLight and !dayz_hasLight) then {
  91. if (s_player_grabflare < 0) then {
  92. _text = getText (configFile >> "CfgAmmo" >> (typeOf _nearLight) >> "displayName");
  93. s_player_grabflare = player addAction [format[localize "str_actions_medical_15",_text], "\z\addons\dayz_code\actions\flare_pickup.sqf",_nearLight, 1, false, true, "", ""];
  94. s_player_removeflare = player addAction [format[localize "str_actions_medical_17",_text], "\z\addons\dayz_code\actions\flare_remove.sqf",_nearLight, 1, false, true, "", ""];
  95. };
  96. } else {
  97. player removeAction s_player_grabflare;
  98. player removeAction s_player_removeflare;
  99. s_player_grabflare = -1;
  100. s_player_removeflare = -1;
  101. };
  102.  
  103. if (dayz_onBack != "" && !dayz_onBackActive && !_inVehicle && !_onLadder && !r_player_unconscious) then {
  104. if (s_player_equip_carry < 0) then {
  105. _text = getText (configFile >> "CfgWeapons" >> dayz_onBack >> "displayName");
  106. s_player_equip_carry = player addAction [format[localize "STR_ACTIONS_WEAPON", _text], "\z\addons\dayz_code\actions\player_switchWeapon.sqf", "action", 0.5, false, true];
  107. };
  108. } else {
  109. player removeAction s_player_equip_carry;
  110. s_player_equip_carry = -1;
  111. };
  112.  
  113. //fishing
  114. if ((_currentWeapon in Dayz_fishingItems) && !dayz_fishingInprogress && !_inVehicle) then {
  115. if (s_player_fishing < 0) then {
  116. s_player_fishing = player addAction [localize "STR_ACTION_CAST", "\z\addons\dayz_code\actions\player_goFishing.sqf","action", 0.5, false, true];
  117. };
  118. } else {
  119. player removeAction s_player_fishing;
  120. s_player_fishing = -1;
  121. };
  122.  
  123. if (_inVehicle) then {
  124. //_assignedRole = assignedVehicleRole player;
  125. _driver = driver (vehicle player);
  126. if ((_primaryWeapon in Dayz_fishingItems) && !dayz_fishingInprogress && (_vehicle isKindOf "Ship") && (_driver != player)) then {
  127. if (s_player_fishing_veh < 0) then {
  128. s_player_fishing_veh = _vehicle addAction [localize "STR_ACTION_CAST", "\z\addons\dayz_code\actions\player_goFishing.sqf","action", 0.5, false, true];
  129. };
  130. } else {
  131. player removeAction s_player_fishing_veh;
  132. s_player_fishing_veh = -1;
  133. };
  134. } else {
  135. player removeAction s_player_fishing_veh;
  136. s_player_fishing_veh = -1;
  137. };
  138.  
  139. if (!isNull _cursorTarget and !_inVehicle and (player distance _cursorTarget < 4)) then { //Has some kind of target
  140. _isHarvested = _cursorTarget getVariable["meatHarvested",false];
  141. _isVehicle = _cursorTarget isKindOf "AllVehicles";
  142. _isVehicletype = typeOf _cursorTarget in ["ATV_US_EP1","ATV_CZ_EP1"];
  143. _isMan = _cursorTarget isKindOf "Man";
  144. _ownerID = _cursorTarget getVariable ["characterID","0"];
  145. _isAnimal = _cursorTarget isKindOf "Animal";
  146. _isZombie = _cursorTarget isKindOf "zZombie_base";
  147. _isDestructable = _cursorTarget isKindOf "BuiltItems";
  148. _isTent = _cursorTarget isKindOf "TentStorage";
  149. _isStash = _cursorTarget isKindOf "StashSmall";
  150. _isMediumStash = _cursorTarget isKindOf "StashMedium";
  151. _isFuel = false;
  152. _hasFuel20 = "ItemJerrycan" in magazines player;
  153. _hasFuel5 = "ItemFuelcan" in magazines player;
  154. _isAlive = alive _cursorTarget;
  155. _canmove = canmove _cursorTarget;
  156. _text = getText (configFile >> "CfgVehicles" >> typeOf _cursorTarget >> "displayName");
  157. _isPlant = typeOf _cursorTarget in Dayz_plants;
  158.  
  159. _rawmeat = meatraw;
  160. _hasRawMeat = false;
  161. {
  162. if (_x in magazines player) then {
  163. _hasRawMeat = true;
  164. };
  165. } forEach _rawmeat;
  166.  
  167. //gather
  168. if(_isPlant and _canDo) then {
  169. if (s_player_gather < 0) then {
  170. _text = getText (configFile >> "CfgVehicles" >> typeOf _cursorTarget >> "displayName");
  171. s_player_gather = player addAction [format[localize "str_actions_gather",_text], "\z\addons\dayz_code\actions\player_gather.sqf",_cursorTarget, 1, true, true, "", ""];
  172. };
  173. } else {
  174. player removeAction s_player_gather;
  175. s_player_gather = -1;
  176. };
  177. if (_hasFuelE20 or _hasFuelE5) then {
  178. _isFuel = (_cursorTarget isKindOf "Land_Ind_TankSmall") or (_cursorTarget isKindOf "Land_fuel_tank_big") or (_cursorTarget isKindOf "Land_fuel_tank_stairs") or (_cursorTarget isKindOf "Land_wagon_tanker");
  179. };
  180. //diag_log ("OWNERID = " + _ownerID + " CHARID = " + dayz_characterID + " " + str(_ownerID == dayz_characterID));
  181.  
  182. //Allow player to delete objects
  183. if(_isDestructable and _hasToolbox and _canDo) then {
  184. if (s_player_deleteBuild < 0) then {
  185. s_player_deleteBuild = player addAction [format[localize "str_actions_delete",_text], "\z\addons\dayz_code\actions\remove.sqf",_cursorTarget, 1, true, true, "", ""];
  186. };
  187. } else {
  188. player removeAction s_player_deleteBuild;
  189. s_player_deleteBuild = -1;
  190. };
  191.  
  192. /*
  193. //Allow player to force save
  194. if((_isVehicle or _isTent or _isStash or _isMediumStash) and _canDo and !_isMan and (damage _cursorTarget < 1)) then {
  195. if (s_player_forceSave < 0) then {
  196. s_player_forceSave = player addAction [format[localize "str_actions_save",_text], "\z\addons\dayz_code\actions\forcesave.sqf",_cursorTarget, 1, true, true, "", ""];
  197. };
  198. } else {
  199. player removeAction s_player_forceSave;
  200. s_player_forceSave = -1;
  201. };
  202. *\
  203. //flip vehicle
  204. if ((_isVehicletype) and !_canmove and _isAlive and (player distance _cursorTarget >= 2) and (count (crew _cursorTarget))== 0 and ((vectorUp _cursorTarget) select 2) < 0.5) then {
  205. if (s_player_flipveh < 0) then {
  206. s_player_flipveh = player addAction [format[localize "str_actions_flipveh",_text], "\z\addons\dayz_code\actions\player_flipvehicle.sqf",_cursorTarget, 1, true, true, "", ""];
  207. };
  208. } else {
  209. player removeAction s_player_flipveh;
  210. s_player_flipveh = -1;
  211. };
  212.  
  213. //Allow player to fill Fuel can
  214. if((_hasFuelE20 or _hasFuelE5) and _isFuel and _canDo and !a_player_jerryfilling) then {
  215. if (s_player_fillfuel < 0) then {
  216. s_player_fillfuel = player addAction [localize "str_actions_self_10", "\z\addons\dayz_code\actions\jerry_fill.sqf",[], 1, false, true, "", ""];
  217. };
  218. } else {
  219. player removeAction s_player_fillfuel;
  220. s_player_fillfuel = -1;
  221. };
  222.  
  223.  
  224.  
  225. //Allow player to fill vehilce 20L
  226. if(_hasFuel20 and _canDo and _isVehicle and (fuel _cursorTarget < 1)) then {
  227. if (s_player_fillfuel20 < 0) then {
  228. s_player_fillfuel20 = player addAction [format[localize "str_actions_medical_10",_text,"20"], "\z\addons\dayz_code\actions\refuel.sqf",["ItemJerrycan"], 0, true, true, "", "'ItemJerrycan' in magazines player"];
  229. };
  230. } else {
  231. player removeAction s_player_fillfuel20;
  232. s_player_fillfuel20 = -1;
  233. };
  234.  
  235.  
  236. //Allow player to fill vehilce 5L
  237. if(_hasFuel5 and _canDo and _isVehicle and (fuel _cursorTarget < 1)) then {
  238. if (s_player_fillfuel5 < 0) then {
  239. s_player_fillfuel5 = player addAction [format[localize "str_actions_medical_10",_text,"5"], "\z\addons\dayz_code\actions\refuel.sqf",["ItemFuelcan"], 0, true, true, "", "'ItemFuelcan' in magazines player"];
  240. };
  241. } else {
  242. player removeAction s_player_fillfuel5;
  243. s_player_fillfuel5 = -1;
  244. };
  245.  
  246. //Allow player to spihon vehicles
  247. if ((_hasFuelE20 or _hasFuelE5) and _isVehicle and _canDo and !a_player_jerryfilling and (fuel _cursorTarget > 0)) then {
  248. if (s_player_siphonfuel < 0) then {
  249. s_player_siphonfuel = player addAction [format[localize "str_siphon_start"], "\z\addons\dayz_code\actions\siphonFuel.sqf",_cursorTarget, 0, true, true, "", ""];
  250. };
  251. } else {
  252. player removeAction s_player_siphonfuel;
  253. s_player_siphonfuel = -1;
  254. };
  255.  
  256. //Hostage menu
  257. if ((player getVariable"humanity") >= 5000) then {
  258. if(_isMan && !_isZombie && _canDo && _isAlive) then {
  259. if (s_player_arrest < 0) then {
  260. s_player_arrest = player addaction ['<t color="#0074E8">' + "Hostage Menu" + '</t>', "Scripts\Investigation\investigation.sqf","",100,false,true,"", ""];
  261. };
  262. } else {
  263. player removeAction s_player_arrest;
  264. s_player_arrest = -1;
  265. };
  266. };
  267.  
  268.  
  269.  
  270. //Harvested
  271. if (!alive _cursorTarget and _isAnimal and _hasKnife and !_isHarvested and _canDo) then {
  272. if (s_player_butcher < 0) then {
  273. s_player_butcher = player addAction [localize "str_actions_self_04", "\z\addons\dayz_code\actions\gather_meat.sqf",_cursorTarget, 3, true, true, "", ""];
  274. };
  275. } else {
  276. player removeAction s_player_butcher;
  277. s_player_butcher = -1;
  278. };
  279.  
  280. //Fireplace Actions check
  281. if (inflamed _cursorTarget and _hasRawMeat and _canDo and !a_player_cooking) then {
  282. if (s_player_cook < 0) then {
  283. s_player_cook = player addAction [localize "str_actions_self_05", "\z\addons\dayz_code\actions\cook.sqf",_cursorTarget, 3, true, true, "", ""];
  284. };
  285. } else {
  286. player removeAction s_player_cook;
  287. s_player_cook = -1;
  288. };
  289. if (inflamed _cursorTarget and (_hasbottleitem and _hastinitem) and _canDo and !a_player_boil) then {
  290. if (s_player_boil < 0) then {
  291. s_player_boil = player addAction [localize "str_actions_boilwater", "\z\addons\dayz_code\actions\boil.sqf",_cursorTarget, 3, true, true, "", ""];
  292. };
  293. } else {
  294. player removeAction s_player_boil;
  295. s_player_boil = -1;
  296. };
  297.  
  298. if(_cursorTarget == dayz_hasFire and _canDo) then {
  299. if ((s_player_fireout < 0) and !(inflamed _cursorTarget) and (player distance _cursorTarget < 3)) then {
  300. s_player_fireout = player addAction [localize "str_actions_self_06", "\z\addons\dayz_code\actions\fire_pack.sqf",_cursorTarget, 0, false, true, "",""];
  301. };
  302. } else {
  303. player removeAction s_player_fireout;
  304. s_player_fireout = -1;
  305. };
  306.  
  307.  
  308. //Burn Tent
  309. if(_isTent and _hasMatches and _canDo and !_isMan) then {
  310. if (s_player_igniteTent < 0) then {
  311. s_player_igniteTent = player addAction [format["Ignite Tent"], "scripts\tent_ignite.sqf",cursorTarget, 1, true, true, "", ""];
  312. };
  313. } else {
  314. player removeAction s_player_igniteTent;
  315. s_player_igniteTent = -1;
  316. };
  317.  
  318.  
  319. //Packing my tent
  320. if(_cursorTarget isKindOf "TentStorage" and _canDo and _ownerID == dayz_characterID) then {
  321. if ((s_player_packtent < 0) and (player distance _cursorTarget < 3)) then {
  322. s_player_packtent = player addAction [localize "str_actions_self_07", "\z\addons\dayz_code\actions\tent_pack.sqf",_cursorTarget, 0, false, true, "",""];
  323. };
  324. } else {
  325. player removeAction s_player_packtent;
  326. s_player_packtent = -1;
  327. };
  328. //Sleep
  329. if(_cursorTarget isKindOf "TentStorage" and _canDo and _ownerID == dayz_characterID) then {
  330. if ((s_player_sleep < 0) and (player distance _cursorTarget < 3)) then {
  331. s_player_sleep = player addAction [localize "str_actions_self_sleep", "\z\addons\dayz_code\actions\player_sleep.sqf",_cursorTarget, 0, false, true, "",""];
  332. };
  333. } else {
  334. player removeAction s_player_sleep;
  335. s_player_sleep = -1;
  336. };
  337.  
  338.  
  339. _clothesTaken = cursorTarget getVariable["clothesTaken",false];
  340.  
  341. //take clothes
  342. if (_isMan and !_isAlive and !_isZombie and !_clothesTaken) then {
  343. if (s_player_clothes < 0) then {
  344. s_player_clothes = player addAction [("<t color='#0096ff'>")+("Take Clothes")+("</t>"), "scripts\player_takeClothes.sqf",cursorTarget, -10, false, true, "",""];
  345. };
  346. } else {
  347. player removeAction s_player_clothes;
  348. s_player_clothes = -1;
  349. };
  350.  
  351.  
  352.  
  353. //Salvage
  354. if( !_isMan and _canDo and _hasToolbox and (silver_myCursorTarget != cursorTarget) and cursorTarget isKindOf "AllVehicles" and (getDammage cursorTarget < 0.95) ) then {
  355. _vehicle = cursorTarget;
  356. _invalidVehicle = (_vehicle isKindOf "Motorcycle") or (_vehicle isKindOf "Tractor");
  357. if( !_invalidVehicle ) then {
  358. {silver_myCursorTarget removeAction _x} forEach s_player_removeActions;
  359. s_player_removeActions = [];
  360. silver_myCursorTarget = _vehicle;
  361.  
  362. _hitpoints = _vehicle call vehicle_getHitpoints;
  363.  
  364. {
  365. _damage = [_vehicle,_x] call object_getHit;
  366.  
  367. if( _damage < 0.25 ) then {
  368.  
  369. _cmpt = toArray (_x);
  370. _cmpt set [0,20];
  371. _cmpt set [1,toArray ("-") select 0];
  372. _cmpt set [2,20];
  373. _cmpt = toString _cmpt;
  374.  
  375. _skip = true;
  376. if( _skip and _x == "HitFuel" ) then { _skip = false; _part = "PartFueltank"; _cmpt = _cmpt + "tank"};
  377. if( _skip and _x == "HitEngine" ) then { _skip = false; _part = "PartEngine"; };
  378. if( _skip and _x == "HitLFWheel" ) then { _skip = false; _part = "PartWheel"; };
  379. if( _skip and _x == "HitRFWheel" ) then { _skip = false; _part = "PartWheel"; };
  380. if( _skip and _x == "HitLBWheel" ) then { _skip = false; _part = "PartWheel"; };
  381. if( _skip and _x == "HitRBWheel" ) then { _skip = false; _part = "PartWheel"; };
  382. if( _skip and _x == "HitGlass1" ) then { _skip = false; _part = "PartGlass"; };
  383. if( _skip and _x == "HitGlass2" ) then { _skip = false; _part = "PartGlass"; };
  384. if( _skip and _x == "HitGlass3" ) then { _skip = false; _part = "PartGlass"; };
  385. if( _skip and _x == "HitGlass4" ) then { _skip = false; _part = "PartGlass"; };
  386. if( _skip and _x == "HitGlass5" ) then { _skip = false; _part = "PartGlass"; };
  387. if( _skip and _x == "HitGlass6" ) then { _skip = false; _part = "PartGlass"; };
  388. if( _skip and _x == "HitHRotor" ) then { _skip = false; _part = "PartVRotor"; };
  389.  
  390. if (!_skip ) then {
  391. _string = format["<t color='#0096ff'>Remove%1</t>",_cmpt,_color];
  392. _handle = silver_myCursorTarget addAction [_string, "scripts\Salvage\ss_remove.sqf",[_vehicle,_part,_x], 0, true, true, "",""];
  393. s_player_removeActions set [count s_player_removeActions,_handle];
  394. };
  395. };
  396.  
  397. } forEach _hitpoints;
  398. };
  399. };
  400.  
  401.  
  402.  
  403. //Repairing Vehicles
  404. if ((dayz_myCursorTarget != _cursorTarget) and _isVehicle and !_isMan and _hasToolbox and (damage _cursorTarget < 1)) then {
  405. if (s_player_repair_crtl < 0) then {
  406. dayz_myCursorTarget = _cursorTarget;
  407. _menu = dayz_myCursorTarget addAction [localize "str_actions_rapairveh", "\z\addons\dayz_code\actions\repair_vehicle.sqf",_cursorTarget, 0, true, false, "",""];
  408. //_menu1 = dayz_myCursorTarget addAction [localize "str_actions_salvageveh", "\z\addons\dayz_code\actions\salvage_vehicle.sqf",_cursorTarget, 0, true, false, "",""];
  409. s_player_repairActions set [count s_player_repairActions,_menu];
  410. //s_player_repairActions set [count s_player_repairActions,_menu1];
  411. s_player_repair_crtl = 1;
  412. } else {
  413. {dayz_myCursorTarget removeAction _x} forEach s_player_repairActions;s_player_repairActions = [];
  414. s_player_repair_crtl = -1;
  415. };
  416. };
  417.  
  418.  
  419. //Gut human
  420. if (!_isAlive and !_isZombie and !_isAnimal and !_isHarvested and _isMan and _hasKnife and _canDo) then {
  421. if (s_player_butcher_human < 0) then {
  422. s_player_butcher_human = player addAction [format["<t color='#42426F'>Gut Human%1</t>"], "Cannibalism\gather_meat_human.sqf",cursorTarget, 3, true, true, "", ""];
  423. };
  424. } else {
  425. player removeAction s_player_butcher_human;
  426. s_player_butcher_human = -1;
  427. };
  428.  
  429. if (_isMan and !_isAlive and !_isZombie) then {
  430. if (s_player_studybody < 0) then {
  431. s_player_studybody = player addAction [localize "str_action_studybody", "\z\addons\dayz_code\actions\study_body.sqf",_cursorTarget, 0, false, true, "",""];
  432. };
  433. } else {
  434. player removeAction s_player_studybody;
  435. s_player_studybody = -1;
  436. };
  437. } else {
  438. //Engineering
  439. {silver_myCursorTarget removeAction _x} forEach s_player_removeActions;s_player_removeActions = [];
  440. silver_myCursorTarget = objNull;
  441.  
  442.  
  443. {dayz_myCursorTarget removeAction _x} forEach s_player_repairActions;s_player_repairActions = [];
  444. player removeAction s_player_repair_crtl;
  445. s_player_repair_crtl = -1;
  446. dayz_myCursorTarget = objNull;
  447.  
  448.  
  449.  
  450. player removeAction s_player_arrest;
  451. s_player_arrest = -1;
  452. player removeAction s_player_release;
  453. s_player_release = -1;
  454. player removeAction s_player_escort;
  455. s_player_escort = -1;
  456. player removeAction s_player_search;
  457. s_player_search = -1;
  458. //player removeAction s_player_forceSave;
  459. //s_player_forceSave = -1;
  460. player removeAction s_player_flipveh;
  461. s_player_flipveh = -1;
  462. player removeAction s_player_butcher_human;
  463. s_player_butcher_human = -1;
  464. player removeAction s_player_sleep;
  465. s_player_sleep = -1;
  466. player removeAction s_player_deleteBuild;
  467. s_player_deleteBuild = -1;
  468. player removeAction s_player_butcher;
  469. s_player_butcher = -1;
  470. player removeAction s_player_cook;
  471. s_player_cook = -1;
  472. player removeAction s_player_boil;
  473. s_player_boil = -1;
  474. player removeAction s_player_fireout;
  475. s_player_fireout = -1;
  476. player removeAction s_player_packtent;
  477. s_player_packtent = -1;
  478. player removeAction s_player_igniteTent;
  479. s_player_igniteTent = -1;
  480. player removeAction s_player_fillfuel;
  481. s_player_fillfuel = -1;
  482. player removeAction s_player_studybody;
  483. s_player_studybody = -1;
  484. /*
  485. //Drag Body
  486. player removeAction s_player_dragbody;
  487. s_player_dragbody = -1;
  488. */
  489. //fuel
  490. player removeAction s_player_fillfuel20;
  491. s_player_fillfuel20 = -1;
  492. player removeAction s_player_fillfuel5;
  493. s_player_fillfuel5 = -1;
  494. player removeAction s_player_clothes;
  495. s_player_clothes = -1;
  496.  
  497. //Allow player to spihon vehicle fuel
  498. player removeAction s_player_siphonfuel;
  499. s_player_siphonfuel = -1;
  500.  
  501. //Allow player to gather
  502. player removeAction s_player_gather;
  503. s_player_gather = -1;
  504. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement