1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unleashed Salvaging

Discussion in 'Site News' started by thevisad, Jul 16, 2013.

By thevisad on Jul 16, 2013 at 2:54 PM
  1. thevisad

    thevisad HNGamers - HeadQuarters for all things fun! Staff Member

    Likes Received:
    Trophy Points:


Discussion in 'Site News' started by thevisad, Jul 16, 2013.

    1. cyrq
      Make a submenu for repair/salvege options:

      Smth like:

      //Repairing Vehicles
      if ((dayz_myCursorTarget != cursorTarget) and _isVehicle and !_isMan and _hasToolbox and (damage cursorTarget < 1)) then {
      if (s_player_repair_crtl < 0) then {
      _vehicle = cursorTarget;
      dayz_myCursorTarget = _vehicle;
      _menu = dayz_myCursorTarget addAction ["Repair Vehicle", "List_all_parts_and_then_call_the_repair_script.sqf",_vehicle, 0, true, false, "",""];
      _menu1 = dayz_myCursorTarget addAction ["Salvage Vehicle", "List_all_salvage_options_and then_call_the_salvage_script_sqf",_vehicle, 0, true, false, "",""];
      s_player_repairActions set [count s_player_repairActions,_menu];
      s_player_repairActions set [count s_player_repairActions,_menu1];
      s_player_repair_crtl = 1;
      } else {
      {dayz_myCursorTarget removeAction _x} forEach s_player_repairActions;s_player_repairActions = [];
      s_player_repair_crtl = -1;
      Also it looks like you're using Silvershot's version of the salvage script. This has/had some major problems with part duping. Consider looking at some older Epoch code which has a chance of failure when stripping the parts based on their damage.

      If you have a Github project page i would be more then happy to commit some of the ideas for further testing.
    2. Churchie
      Thank you for the feedback Cyrq! The DayZ Unleashed Developer Team includes the developers from Epoch and the script you are seeing was made from scratch. As we are still in Alpha there will be room for improvement in a lot of our features.

Share This Page