Jump to content
  • 0
joshnz1995

indestructible bases but not doors

Question

28 answers to this question

Recommended Posts

  • 0

THers an option in init or configvariables to allow,disallow indestructibles bases. I cannot acces to my server files now. But check how is the name for the variable. For example dzegodmod. And find it in custom variables, maybe all objects ids are defined. 

Share this post


Link to post
Share on other sites
  • 0

well i got my server files now.. see i was following the route for it..

in init.sqf you have an option to allow disallow god mode on bases/modulars.

DZE_GodModeBase = true; // Make player built base objects indestructible

now... in server monitor.sqf you have:

if (DZE_GodModeBase && {!(_type in DZE_GodModeBaseExclude)}) then {

this means if DZE_godmodebase is true.. and if the object its not into DZE_godModeBaseExclude  then  proceeed with the handledamage false.

 

So i think this global variable DZE_GodModeBaseExclude contain all object excluded for godmode.

maybe im wrong.. but if u find whers DZE_GodModeBaseExclude is defined you can add/remove objects ids.

or maybe you can try to add your own global variable.... i gonna post it in a new comment to not confuse you.

Share this post


Link to post
Share on other sites
  • 0

you will need a custom variables.sqf

in this new custom variables find:

DayZ_SafeObjects

above paste:

DZE_NONgodmode = ["entry your doors ids here",""];

now go to your server_monitor.sqf

find:

if (DZE_GodModeBase && {!(_type in DZE_GodModeBaseExclude)}) then {

change by:

_isnongodmode = _type in DZE_NONgodmode;
if (DZE_GodModeBase && !_isnongodmode && {!(_type in DZE_GodModeBaseExclude)}) then {

 

its just a suggestion,, dont know if gonna works or not

Share this post


Link to post
Share on other sites
  • 0
8 minutes ago, joshnz1995 said:

I discovered that DZE_GodModebaseexclude can be defined in the init file the the DZE_GodModebase =true; doesnt seem to work at all

it's defined in configVariables.sqf https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_code/configVariables.sqf#L33

So you would want DZE_GodModeBaseExclude = ["Land_DZE_GarageWoodDoorLocked","Land_DZE_LargeWoodDoorLocked","Land_DZE_WoodDoorLocked","CinderWallDoorLocked_DZ","CinderWallDoorSmallLocked_DZ"];

Share this post


Link to post
Share on other sites
  • 0

1-so go to init.sqf

DZE_GodModeBase = true; // Make player built base objects indestructible

b- find:

configVariables.sqf 

change the whole line by:

#include "custom\configVariables.sqf" 

 

configvariables.sqf needs be taking off the @Dayz_Epoch folder to start to use it as a custom file so:

2-Open your \@DayZ_Epoch\addons\dayz_code\

in the root of dayz_code you will find the configvariables.sqf copy and paste into Mpmissions\yourInstance\custom\

 

3-open your new configvariables.sqf

find:

DZE_GodModeBaseExclude = [];

change by:

DZE_GodModeBaseExclude = ["Land_DZE_GarageWoodDoorLocked","Land_DZE_LargeWoodDoorLocked","Land_DZE_WoodDoorLocked","CinderWallDoorLocked_DZ","CinderWallDoorSmallLocked_DZ"]; 

 

Share this post


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

1-so go to init.sqf

DZE_GodModeBase = true; // Make player built base objects indestructible

b- find:

configVariables.sqf 

change the whole line by:

#include "custom\configVariables.sqf" 

 

configvariables.sqf needs be taking off the @Dayz_Epoch folder to start to use it as a custom file so:

2-Open your \@DayZ_Epoch\addons\dayz_code\

in the root of dayz_code you will find the configvariables.sqf copy and paste into Mpmissions\yourInstance\custom\

 

3-open your new configvariables.sqf

find:

DZE_GodModeBaseExclude = [];

change by:

DZE_GodModeBaseExclude = ["Land_DZE_GarageWoodDoorLocked","Land_DZE_LargeWoodDoorLocked","Land_DZE_WoodDoorLocked","CinderWallDoorLocked_DZ","CinderWallDoorSmallLocked_DZ"]; 

 

You don't need to copy the whole file across, this just wastes mission file space. You only need to copy the specific variables that you want.

Share this post


Link to post
Share on other sites
  • 0
2 minutes ago, joshnz1995 said:

iv done all that to the word but its still not working

 

This is what I am running on my 1.0.6 server:

DZE_GodModeBase = true;
DZE_GodModeBaseExclude = DZE_DoorsLocked; //Array of object class names excluded from the god mode bases feature

This makes ALL lockable doors destructible and all other objects have god mode.

Share this post


Link to post
Share on other sites
  • 0

is there something im missing iv done all this

8 hours ago, juandayz said:

1-so go to init.sqf

DZE_GodModeBase = true; // Make player built base objects indestructible

b- find:

configVariables.sqf 

change the whole line by:

#include "custom\configVariables.sqf" 

 

configvariables.sqf needs be taking off the @Dayz_Epoch folder to start to use it as a custom file so:

2-Open your \@DayZ_Epoch\addons\dayz_code\

in the root of dayz_code you will find the configvariables.sqf copy and paste into Mpmissions\yourInstance\custom\

 

3-open your new configvariables.sqf

find:

DZE_GodModeBaseExclude = [];

change by:

DZE_GodModeBaseExclude = ["Land_DZE_GarageWoodDoorLocked","Land_DZE_LargeWoodDoorLocked","Land_DZE_WoodDoorLocked","CinderWallDoorLocked_DZ","CinderWallDoorSmallLocked_DZ"]; 

 

 

Then I have 1 door and 2 wood walls placed down and i set a satchel charge on them and it gets 33% damage still

Share this post


Link to post
Share on other sites
  • 0
2 minutes ago, joshnz1995 said:

is there something im missing iv done all this

 

Then I have 1 door and 2 wood walls placed down and i set a satchel charge on them and it gets 33% damage still

Does the door get 33% damage or does the door and walls?

Share this post


Link to post
Share on other sites
  • 0
2 minutes ago, joshnz1995 said:

walls

Did you change anything in the dayz_server folder?

As long as you are running Epoch 1.0.6 this WILL work. 

DZE_GodModeBase = true;
DZE_GodModeBaseExclude = DZE_DoorsLocked; //Array of object class names excluded from the god mode bases feature

This is what I am running on my 1.0.6 server to make all objects god mode EXCEPT all locked doors.

It works 100% with NO issues.

Share this post


Link to post
Share on other sites
  • 0
Just now, joshnz1995 said:

where in dayz_server.pbo are you putting it

It does not go in dayz_server, it will go in your mission file.

 

Put those 2 lines I gave you down the VERY bottom of the init.sqf in your mission folder and give it a try. (I have a custom variables file so I put mine in there)

Share this post


Link to post
Share on other sites
  • 0

I have tried now to make wood destructible but think Im missing something and would be really thankfull for some help... on 1.0.6.1 in init.sqf after include I put

DZE_GodModeBase = true; // Make player built base objects indestructible
DZE_GodModeBaseExclude = [
"WoodFloor_DZ",
"WoodFloorhalf_DZ",
"WoodFloorQuarter_DZ",
"WoodLargeWallWin_DZ",
"WoodLargeWallDoor_DZ",
"Land_DZE_LargeWoodDoorLocked",
"WoodSmallWallDoor_DZ",
"WoodSmallWallWin_DZ",
"Land_DZE_GarageWoodDoor",
"Land_DZE_GarageWoodDoorLocked",
"WoodLadder_DZ",
"WoodRamp_DZ",
"WoodStairsSans_DZ",
"WoodSmallWall_DZ",
"WoodSmallWallThird_DZ",
"WoodStairs_DZ",
"WoodShack_DZ"
]

But this doesnt seem to work :( 

I would love to have wood items destructible on the server... 

 

 

Share this post


Link to post
Share on other sites
  • 0

Hello,

This does work for me. It would seem you are probably putting it before this line in your init.sqf: https://github.com/EpochModTeam/DayZ-Epoch/blob/master/Server Files/MPMissions/DayZ_Epoch_11.Chernarus/init.sqf#L47

I would guess that you are doing that then it is being overwritten so nothing is excluded.

If you have a custom variables.sqf (as per ZSC or any one of my other mods) I would put it in there.

Share this post


Link to post
Share on other sites
  • 0

I have tried now to make wood destructible but think Im missing something and would be really thankfull for some help... on 1.0.6.1 in init.sqf after include I put

DZE_GodModeBase = true; // Make player built base objects indestructible
DZE_GodModeBaseExclude = [
"WoodFloor_DZ",
"WoodFloorhalf_DZ",
"WoodFloorQuarter_DZ",
"WoodLargeWallWin_DZ",
"WoodLargeWallDoor_DZ",
"Land_DZE_LargeWoodDoorLocked",
"WoodSmallWallDoor_DZ",
"WoodSmallWallWin_DZ",
"Land_DZE_GarageWoodDoor",
"Land_DZE_GarageWoodDoorLocked",
"WoodLadder_DZ",
"WoodRamp_DZ",
"WoodStairsSans_DZ",
"WoodSmallWall_DZ",
"WoodSmallWallThird_DZ",
"WoodStairs_DZ",
"WoodShack_DZ"
]

But this doesnt seem to work :( 

I would love to have wood items destructible on the server... 

 

Its for sure after that line so not sure why its not kicking in..

I do have a custom Variables as I did put in the coins and so... but where in the variables should I put it in?

Thanks alot for answering !

Share this post


Link to post
Share on other sites
  • 0
11 hours ago, JonasF said:

I have tried now to make wood destructible but think Im missing something and would be really thankfull for some help... on 1.0.6.1 in init.sqf after include I put

DZE_GodModeBase = true; // Make player built base objects indestructible
DZE_GodModeBaseExclude = [
"WoodFloor_DZ",
"WoodFloorhalf_DZ",
"WoodFloorQuarter_DZ",
"WoodLargeWallWin_DZ",
"WoodLargeWallDoor_DZ",
"Land_DZE_LargeWoodDoorLocked",
"WoodSmallWallDoor_DZ",
"WoodSmallWallWin_DZ",
"Land_DZE_GarageWoodDoor",
"Land_DZE_GarageWoodDoorLocked",
"WoodLadder_DZ",
"WoodRamp_DZ",
"WoodStairsSans_DZ",
"WoodSmallWall_DZ",
"WoodSmallWallThird_DZ",
"WoodStairs_DZ",
"WoodShack_DZ"
]

But this doesnt seem to work :( 

I would love to have wood items destructible on the server... 

 

Its for sure after that line so not sure why its not kicking in..

I do have a custom Variables as I did put in the coins and so... but where in the variables should I put it in?

Thanks alot for answering !

Be sure to put a ; at the end

DZE_GodModeBase = true; // Make player built base objects indestructible
DZE_GodModeBaseExclude = [
"WoodFloor_DZ",
"WoodFloorhalf_DZ",
"WoodFloorQuarter_DZ",
"WoodLargeWallWin_DZ",
"WoodLargeWallDoor_DZ",
"Land_DZE_LargeWoodDoorLocked",
"WoodSmallWallDoor_DZ",
"WoodSmallWallWin_DZ",
"Land_DZE_GarageWoodDoor",
"Land_DZE_GarageWoodDoorLocked",
"WoodLadder_DZ",
"WoodRamp_DZ",
"WoodStairsSans_DZ",
"WoodSmallWall_DZ",
"WoodSmallWallThird_DZ",
"WoodStairs_DZ",
"WoodShack_DZ"
];

 

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
Answer this question...

×   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...

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...