• 0
Sign in to follow this  
Followers 0
Mr.Pig

Adding nonConstructionZones

Question

Posted (edited)

The Config.cpp asks for the following.

// A list of {position, radius} where building is not allowed at all

However, The file it references "ExileClient_util_world_isInNonConstructionZone" uses the following coding.

private["_position","_result","_distance"];
_position = _this;
_result = false;
{
	_distance = (_x select 0) distance _position;
	if (_distance < (_x select 2)) exitWith
	{
		_result = true;
	};
}
forEach ExileNonConstructionZones;
_result

Meaning in the Config.cpp would need to be.

{{position},0,radius}

The file "ExileClient_util_world_isInNonConstructionZone" should change line 

	if (_distance < (_x select 2)) exitWith

with

	if (_distance < (_x select 1)) exitWith

 

For now server admins can just use the following format.

{{position},0,radius}

Edited by Mr.Pig
4 people like this

Share this post


Link to post
Share on other sites

2 answers to this question

Advertisement

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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.