Jump to content
  • 0

DZE_BuildingLimit Questions/Help - Increase 30m size?


Sexysev

Question

14 answers to this question

Recommended Posts

  • 0

Quick question about DZE_BuildingLimit:

 

How do you increase the range of it? Right now it's 30 meters default. How can you increase the range so you can only have so many objects in lets say 300 meters.

 

Thanks in advance!

 

 

What you want to add in your init.sqf is: 

 

DZE_PlotPole = [50,75]; //[50,75] plot is 50m radius from pole and you cant place another pole within 75m of an existing pole radius

You can find this and other variables here: http://epochmod.gamepedia.com/Init.sqf

Link to comment
Share on other sites

  • 0

Thats for increasing the range of the plot pole - im interested in increasing the range of the built limit. I think I found it in player_build.sqf though.

 

Edit nope sure didnt.

 

That my friend will increase your building limit to 3000...which in turn will allow your players to place 3000 objects in a 30 meter area...not good considering default is something like 150.

 

 

Ok, so now I am confused - based on your OP, then reply to me and then reply to Cen - I'm not sure we are understanding what you want to have done. 

You ask about DZE_BuildingLimit, but then you move on to talk about range within plotpole. 

 

If you want to enforce a maximum of 500 building objects in a 300m plotpole radius, you need the following: 

 

DZE_BuildingLimit = 500; // Default = 300
DZE_PlotPole = [300,75]; //[40,55] plot is 40m from pole and you cant place another pole within 55m
DZE_requireplot = 1; //'0' means you dont need it to build. '1' means you have to place it down in order to build

Then, if you are using Maintenance with a 300m plotpole, put the following in as well: 

DZE_maintainRange = 300;

If you are still saying that it is no good, then I am sorry - but you need to clarify a bit better on what it is that you want to do... cause I am slightly confused now. 

Link to comment
Share on other sites

  • 0
No no...
 
Ok so I have my DZE_BuildingLimit set to 300. So: DZE_BuildingLimit = 300;
 
What I am looking to do now is extend the range of the 300 object rule from 30m to 300m. Right now default with DZE_BuildingLimit the limit for it is 30m.
 
It straight up has nothing to do with a plot pole what so ever.
Link to comment
Share on other sites

  • 0

https://github.com/vbawol/DayZ-Epoch/blob/master/SQF/dayz_code/actions/player_build.sqf#L11

 

The code that looks for amount of objects around is hardcoded to 30 meters. You will have to bring this file over to your mission file and change it there.

Alternatively if you are using some sort of snap building, change it there instead.

 

In 1.0.5.2 if using modular build setup, it will be reduced to a small function that can be easily changed within mission file separately from rest of the code, instead of reusing whole player_build file (just a heads up):

https://github.com/vbawol/DayZ-Epoch/blob/master/SQF/dayz_code/actions/player_build_countNearby.sqf

 

What I don't understand is - why? 

Link to comment
Share on other sites

  • 0

Maybe you are looking for this. Inside your player_build.sqf found inside your dayz_code\action\player_build.sqf

// disallow building if too many objects are found within 30m
if((count ((getPosATL player) nearObjects ["All",30])) >= DZE_BuildingLimit) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_41"), "PLAIN DOWN"];};

change to

// disallow building if too many objects are found within 30m
if((count ((getPosATL player) nearObjects ["All",300])) >= DZE_BuildingLimit) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_41"), "PLAIN DOWN"];};

You will need a custom compile to call it from inside your MPmission file.

Link to comment
Share on other sites

  • 0

Weird thing is I have tried this and it still doesnt work. I did exactly this:

 

// disallow building if too many objects are found within 30m
if((count ((getPosATL player) nearObjects ["All",300])) >= DZE_BuildingLimit) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_41"), "PLAIN DOWN"];};

 

and added it to "custom\player_build.sqf" in my custom compiles.

Link to comment
Share on other sites

  • 0

https://github.com/vbawol/DayZ-Epoch/blob/master/SQF/dayz_code/actions/player_build.sqf#L11

 

The code that looks for amount of objects around is hardcoded to 30 meters. You will have to bring this file over to your mission file and change it there.

Alternatively if you are using some sort of snap building, change it there instead.

 

In 1.0.5.2 if using modular build setup, it will be reduced to a small function that can be easily changed within mission file separately from rest of the code, instead of reusing whole player_build file (just a heads up):

https://github.com/vbawol/DayZ-Epoch/blob/master/SQF/dayz_code/actions/player_build_countNearby.sqf

 

What I don't understand is - why? 

 

 

Hello Ray!

 

I am actually using your kickbutt snap build pro. Could I somehow change it with that?

 

Why you ask? Players on my server have been abusing how much they can build...ALOT.

Link to comment
Share on other sites

  • 0

Hey bud, snap pro overwrites player_build, here's the line you wanna change, simple as that:

https://github.com/raymix/SnapPro/blob/master/custom/snap_pro/player_build.sqf#L12

 

Also I am adjusting the new modular build system as we speak, you will be able to change this variable from single line in your init.sqf file when 1052 comes out.

Link to comment
Share on other sites

  • 0

https://github.com/vbawol/DayZ-Epoch/blob/master/SQF/dayz_code/actions/player_build.sqf#L11

 

The code that looks for amount of objects around is hardcoded to 30 meters. You will have to bring this file over to your mission file and change it there.

Alternatively if you are using some sort of snap building, change it there instead.

 

In 1.0.5.2 if using modular build setup, it will be reduced to a small function that can be easily changed within mission file separately from rest of the code, instead of reusing whole player_build file (just a heads up):

https://github.com/vbawol/DayZ-Epoch/blob/master/SQF/dayz_code/actions/player_build_countNearby.sqf

 

What I don't understand is - why? 

 

Awesome!  I actually never hit this limit, so I had no idea that it did exist. :) 

 

Thanks everyone - did learn something new today. :D

Link to comment
Share on other sites

  • 0

Hey bud, snap pro overwrites player_build, here's the line you wanna change, simple as that:

https://github.com/raymix/SnapPro/blob/master/custom/snap_pro/player_build.sqf#L12

 

Also I am adjusting the new modular build system as we speak, you will be able to change this variable from single line in your init.sqf file when 1052 comes out.

 

This worked great! Thank you.

 

I am totally looking forward to 1.0.5.2!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...