Advertisement
Guest User

Untitled

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