Jump to content

[Server Addon] ZCP - Zupa's Capture Points 2.0 Updated for Epoch 0.3


Zupa

Recommended Posts

Would anyone know how to stop the capture points from spawning off map?

See here:

XbN3roI.jpg

 

It's either spawning them over there on the left of the map or one left and one top but always off map??

Been looking at the: fn_findPosition.sqf and wondering if this:

private ["_i","_safepos","_validspot","_position"];
_safepos		= [getMarkerPos "center",0,8500,(_this select 0),0,0.5,0];
_validspot 	= false;

needs to be amended? I'm running Chernarus Summer - Not sure if this would make any difference though...

 

Regards,

Pry

Link to comment
Share on other sites

16 minutes ago, PryMary said:

Been looking at the: fn_findPosition.sqf and wondering if this:


private ["_i","_safepos","_validspot","_position"];
_safepos		= [getMarkerPos "center",0,8500,(_this select 0),0,0.5,0];
_validspot 	= false;

needs to be amended? I'm running Chernarus Summer - Not sure if this would make any difference though...

1)

It might be a problem with the Center pos not being defined correctly

You could try to change

getMarkerPos "center"

Into 

[4250,4250,0] 

You can also try 

OR

2)

The 0.5 might be quite low.

Since it stands for this:

maximum terrain gradient (average altitude difference in meters - Number)

SO you might want to up that abit 2

 

Link to comment
Share on other sites

Woah uber quick reply Zupa :P

 

OK so changed it to the following:

private ["_i","_safepos","_validspot","_position"];
_safepos		= [[4250,4250,0],0,8500,(_this select 0),0,20,0];
_validspot 	= false;

will post back once server restarted :)

Regards,

Pry

Link to comment
Share on other sites

Hmmm weird that's pushed them even further to the left (east) of the map:

h5oYPVi.jpg

 

Code in use:

private ["_i","_safepos","_validspot","_position"];
_safepos		= [[4250,4250,0],0,8500,(_this select 0),0,20,0];
_validspot 	= false;

How very strange :/ Don't suppose there is anything else I can try? As would love to keep this mod active as it gives the server something different ;-)

 

Regards,

Pry

Link to comment
Share on other sites

I ve changed it in the fn_config.sqf but its not working :(

// Server will keep as many missions up as ZCP_MaxMissions, And they will be randomly choosen from the following list
// Location is ignored if not using static points. just put [0,0,0] then.
// valid rewards -> Crypto , WeaponBox , BuildBox , Vehicle
ZCP_CapPoints = [ // [name,[x,y,z],reward, varname,index]
	["Cap Point Alpha",[3085.37,8775.07,0],"Crypto","alpha",0] ,
	["Cap Point Bravo",[13374.545,16029.155,0],"WeaponBox","beta",1] ,
	["Cap Point Charlie",[3085.37,8775.07,0],"BuildBox","charlie",2] ,
	["Cap Point Delta",[3085.37,8775.07,0],"Vehicle","delta",3] 
];

 

Link to comment
Share on other sites

18 hours ago, sCorporation said:

I ve changed it in the fn_config.sqf but its not working :(


// Server will keep as many missions up as ZCP_MaxMissions, And they will be randomly choosen from the following list
// Location is ignored if not using static points. just put [0,0,0] then.
// valid rewards -> Crypto , WeaponBox , BuildBox , Vehicle
ZCP_CapPoints = [ // [name,[x,y,z],reward, varname,index]
	["Cap Point Alpha",[3085.37,8775.07,0],"Crypto","alpha",0] ,
	["Cap Point Bravo",[13374.545,16029.155,0],"WeaponBox","beta",1] ,
	["Cap Point Charlie",[3085.37,8775.07,0],"BuildBox","charlie",2] ,
	["Cap Point Delta",[3085.37,8775.07,0],"Vehicle","delta",3] 
];

 

Have you set the following in fn_config.sqf to True?

ZCP_StaticPoints = false; // If true, the missions will use the provided location as spawnpoint.

I would imagine you have but just to rule that out ;-)

 

Pry

Link to comment
Share on other sites

All you need is the classnames and the co-ords for the objects then put those inside the:
 

private ["_obj"];

_obj=[
    ["Land_HBarrier_5_F",[3229.64,8732.69,0],32.7273,[[0.540641,0.841253,0],[0,0,1]],false],
    ["Land_HBarrier_5_F",[3240.75,8744.09,0],32.7273,[[0.540641,0.841253,0],[0,0,1]],false] //<------ Last entry has NO comma 
];

_obj

Just make it work ;-) It's what being a server admin is all about :P

Regards,

Pry

Link to comment
Share on other sites

  • 3 weeks later...

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
×
×
  • Create New...