Jump to content
nova

player removal of building parts to get back

Recommended Posts

I have it in the  configVariables.sqf

 

add this

DZE_modularConfig = [
        ["CinderWall_DZ", [["CinderBlocks",7],["MortarBucket",2]]],
        ["CinderWallDoor_DZ", [["CinderBlocks",7],["MortarBucket",2],["ItemTankTrap",3],          ["ItemPole",[1,3]]]]
    ];

 

Share this post


Link to post
Share on other sites
Just now, salival said:

What did your modular config array look like? This worked perfect for me last I checked.

its works without anykind of changes in remove.sqf? just adding the global variable in configvariables?

Share this post


Link to post
Share on other sites
7 hours ago, juandayz said:

its works without anykind of changes in remove.sqf? just adding the global variable in configvariables?

There are changes for remove.sqf, I realise now that because I don't have commit access on github and I have to do pull requests seperately, they come through seperate.

https://github.com/EpochModTeam/DayZ-Epoch/commit/0507563e17b7e00e2bed0c23cc3e72ba9ababeb7 is the commit for remove.sqf

https://github.com/EpochModTeam/DayZ-Epoch/commit/e1f48ea5579d65b36acf36d6f7d6e50def4042e8 is the commit for configVariables.sqf

So i'm guessing @SKS.Goliath is missing the remove.sqf part (which was easily done considering my first post)

Share this post


Link to post
Share on other sites

Hey guys,

For anyone else that wants to switch to this before the release of 1.0.6.2, here's a simple installation example:

1. If you have my zsc/vkc/vg or similar that uses the epoch dayz_code structure in your mission pbo, copy the supplied remove.sqf to your <mission folder>\dayz_code\action folder.

2. Find this line in your fn_selfActions.sqf: 

s_player_deleteBuild = player addAction [format[localize "STR_EPOCH_REMOVE",_text], "\z\addons\dayz_code\actions\remove.sqf",_cursorTarget, 1, false, true];

Change it to reference the updated remove.sqf (if you use a different folder structure other than dayz_code like I do, you can edit this here (boooo!)) like this:

s_player_deleteBuild = player addAction [format[localize "STR_EPOCH_REMOVE",_text], "dayz_code\actions\remove.sqf",_cursorTarget, 1, false, true];

3. If you have a custom variables.sqf (which is where I put all my configVariables.sqf overrides, copy paste this into it somewhere at the top:

DZE_modularConfig = [];
/*
	Array of classnames with magazine based loot to be refunded on deconstruction of modular built items that do not typically refund.
	For example:
	DZE_modularConfig = [
		["CinderWall_DZ", [["CinderBlocks",7],["MortarBucket",2]]],
		["CinderWallDoor_DZ", [["CinderBlocks",7],["MortarBucket",2],["ItemTankTrap",3],["ItemPole",[1,3]]]]
	];
	This would refund 7 cinder blocks and 2 mortar for "CinderWall_DZ"
	For "CinderWallDoor_DZ" you would get 7 cinder blocks, 2 mortar, 3 tank traps and a random number of poles between 1 and 3.
	The refund amount can be an array where the first param is the minimum and the second is the maximum, it will refund a random amount between them.
*/

4. Repack your mission pbo and restart your server.

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 thegdog
      when attempting to upgrade my doorways.  im getting not setup yet error.  no errors in rpt other then one thats been spamming it the entire time.  i dont know if this error is causing the other issues im having that iv made other post about
      Error Type Any, expected String 0:36:42 File z\addons\dayz_server\compile\server_playerSync.sqf, line 41 0:36:55 Error in expression <ceFoot = 0;   
    • By ziggah
      The editor just seems really clunky and impractical. Plus when using it, most of the buildings and trees are gone, so I can't build bases on top of premade buildings (which is the meat and bone of DayZ in my opinion). Anyone know how to practice building?
      One of my favourite things in games is base building. To be more specific, making shooting ports. Arrow slit like holes that make it impossible to kill you from a certain angle. They're really OP in games like Rust. The building system in Epoch is my absolute favourite, I'd play on empty servers just so I can dupe glitch in cinder blocks and shit and make epic bases (then never play on the server again). But I usually practice on sandbox servers in Rust, Is there anything similar in DayZ Epoch? I have no experience making my own servers, so that is out of the question.
    • By lesvieuxcrevards
      Hi,
      I've an issue with plaicing new structures : "Building disallowed: limit 4"
      Partial content of my CfgEpochClient.hpp file :
      Any one have idea about this issue ?
      Best regard.
    • By Ghostman
      Who can help me with script refund materials (default when deconstruct no parts found).
    • By cowley-s1s
      Hi all,
      I host a couple of server and having lots of issue with players saying the doors and garage doors will not work.  Is there a fix for this?
      Please can someone help me out here as players are dropping of my servers at the moment due to this problem.
      Thanks,  Mark
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...