BetterDeadThanZed

Prevent loot from spawning

4 posts in this topic

My traders are not in safezones. They are in no-build zones. I also have no-build zones in other places around the map. What I'm looking for is a way to prevent loot from spawning within a certain radius. Does anyone know what file has the code that prevents loot from spawning in safezones? Perhaps I can change it so it checks for something else, or does anyone have a script that will let me blacklist coordinates/radius so loot won't spawn?

Share this post


Link to post
Share on other sites
Advertisement
9 minutes ago, deadeye2 said:

The file is ExileClient_system_lootManager_thread_spawn.sqf

 

Yeah, I found that file and looked it over but I'm not sure what else I could change it to look for:

		if (_minimumDistanceToTraderZones > 0) then
		{
			if ([_building, _minimumDistanceToTraderZones] call ExileClient_util_world_isTraderZoneInRange) then
			{
				throw false;
			};
		};

I guess I'd have to change that to include an array of blacklisted locations, and then maybe tell it if it's not within the range of those locations, throw false... would take some brainstorming and consulting with other scripts to figure it out.

Share this post


Link to post
Share on other sites

This works for me..

class Item15
		{
			position[]={1597.56,0,7795.57};
			name="TraderZoneMyshkinoNoLoot";
			text="";
			type="ExileTraderZone";
			markerType="ELLIPSE";
			alpha=0;
			colorName="ColorBlack";
			fillName="Border";
			a=0;
			b=0; //Setting 0 on both of these stops the safezone existing but the loot around it still gets blocked
		};

 

  • Like 1

Share this post


Link to post
Share on other sites
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

  • Recently Browsing   0 members

    No registered users viewing this page.