Jump to content
juandayz

[Find Items on Wreck]

Recommended Posts

I just can not follow ATM. Deconstruct wrecks and get vehicle parts are allready build in and are very popular on PVE servers.

What exactly does this script @juandayz?

Add "normal" loot to a wreck? And search means find without deconstructing?

 

Share this post


Link to post
Share on other sites
22 minutes ago, Cherdenko said:

Does it safe the variable werver side pr can you sinply relog to get the loot again. If thats the case it might be a good idea to remove the wreck after looting. Just a little idea.

Anyway great woek mate

it sets a variable on the wreck so no-one else can loot it

Share this post


Link to post
Share on other sites

I have updated the wrecks to where you can scroll on more of them if anyone is interested.

Spoiler

DZE_isWreck = ["SKODAWreck","HMMWVWreck","UralWreck","datsun01Wreck","hiluxWreck","datsun02Wreck","UAZWreck","Land_Misc_Garb_Heap_EP1","Fort_Barricade_EP1","Rubbish2","BMP2Wreck","BRDMWreck","C130J_wreck_EP1","UH1Wreck","Mi8Wreck","GLT_UH60_ARMY_Wreck","GLT_UH60_NAVY_Wreck","T72Wreck","UH60_ARMY_Wreck_burned_DZ","UH60_NAVY_Wreck_burned_DZ","UH60_ARMY_Wreck_DZ"];
 

 

Share this post


Link to post
Share on other sites
On 24/05/2017 at 0:16 AM, juandayz said:

DZE_isWreck = ["SKODAWreck","HMMWVWreck","UralWreck","datsun01Wreck","hiluxWreck","datsun02Wreck","UAZWreck","Land_Misc_Garb_Heap_EP1","Fort_Barricade_EP1","Rubbish2"];

quick question...where abouts should this line go? I've presumed mission side init. Ive added it in my list of epoch config variables in init.sqf.

Share this post


Link to post
Share on other sites
36 minutes ago, leegreaves said:

quick question...where abouts should this line go? I've presumed mission side init. Ive added it in my list of epoch config variables in init.sqf.

Custom variables.sqf

Share this post


Link to post
Share on other sites
52 minutes ago, leegreaves said:

i assume it can just go at bottom of file and doesnt need to be in any particular section of variables.sqf.

Check your original vAriables.sqf thers a dze_iswreck line by default. Copy this paste in somewhere of your custom variables and add the hootys wrecks ids inside. Also you can add other objects.

Share this post


Link to post
Share on other sites

Hello, I love this script. Makes wrecks more versatile for use. However, I found a bug. If you deconstruct the wreck without choosing the Find Loot option. It bugs out your mousewheel. Locks Find Items to your action menu and prevents you from further checking items on other wrecks. When chosen on another wreck it will say "Another Process is being used". It works great otherwise, and gives people a reason to clear out those wrecks.

EDIT:   It actually breaks the mousewheel so you cant use it for anything but switching weapons until you soft log to the lobby.

Share this post


Link to post
Share on other sites

hey @Runewulv  nice spot..  i dont have the game installed any more.. so cannot test..  can you try this fix?

in your fn_selfactions.sqf

add the line commented:

Spoiler

if (_typeOfCursorTarget in DZE_isWreck) then {			
_waslooted = _cursorTarget getVariable["waslooted",false];
if (!_waslooted) then {
_player_deleteBuild = false;//ADD THIS LINE
if (s_player_wreckloot < 0) then {
s_player_wreckloot = player addAction [format["<t color='#0096ff'>Find Items</t>"], "scripts\wreck\wreck.sqf",_cursorTarget,0, false,true];};
      
    } else {
        player removeAction s_player_wreckloot;
        s_player_wreckloot = -1;
    
	};
	};

 

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By Bloodthirsty
      Hey I just need some files for this server, any and all you guys can come up with and think it deserve post that shit in chat rn. I want to see some crazy ideas and additions if you got em :) Lets see what you guys can come up with

    • By juandayz
      I JUST LEAVE THIS ONE CUZ I KNOW YOU GUYS GONNA NEED IT..
       
      The very old safezone script by infistar... i was using it in 1.0.5.1  and made some changes to use in 1.6.
      Instructions:
          1. Copy paste the code of below into a file called 16_safezone.sqf - save the file.
          2. Paste this 16_safezone.sqf into mpmissioms\instance_11.chernarus\custom\
          3. Open your init.sqf
          4. At the very bottom of the file add this line:  [] execVM "custom\16_safezone.sqf";
          5. Save the init.sqf and restart your server.
          6-WARNING!!! if ure using some kind of mod that allow vehicles with GodMode out of safezones..  then you will need in 16_safezone.sqf change the path for veh_handleDam.sqf by the path that youre using your custom veh_handleDam.sqf
      this line:  fnc_veh_handleDam = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\veh_handleDam.sqf';
          16_safezone.sqf
       
      OPTIONAL:
      @BetterDeadThanZed here you got.
      REMOVE LOOT FROM TRADER CITIES AND PLOT POLES. (should removes zeds from trader places and poles too)
       
       
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...