Jump to content

Vehicle/Aircraft spawn points for Napf Traders


(HPG) Heavy

Recommended Posts

It appears most of the vehicle spawn points for Napf traders are considerably off. e.g. AWOL's airfield, purchased a LB, and instead of LB spawning on the heli pad, the LB spawns next to building about 5 meters off the ground.  Another example is the Bandit Trader, the purchased vehicle spawns in back of the trader, not on the heli pad.  I have modified the mission.sqf, specifically the spawn points (the sqf located at \dayz_server\missions\DayZ_Epoch_24.Napf) with more precise coordinates which didn't help.  Modifying such coords, say on the Chernarus map works fine, but not on Napf.  Anyone run into this problem?  Possible fix? Apologize if this was posted in the wrong section and appreciate the help.

Link to comment
Share on other sites

  • 2 weeks later...

Hey Zed, thanks for the reply,

 

Here are the defaults for all the Napf vehicle traders...

_vehicle_2722 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHEmpty", [8283.61, 15491.1], [], 0, "CAN_COLLIDE"];
  _vehicle_2722 = _this;
  _this setPos [8283.61, 15491.1];
};

_vehicle_2880 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHEmpty", [12414.461, 5068.3276], [], 0, "CAN_COLLIDE"];
  _vehicle_2880 = _this;
  _this setDir 26.303728;
  _this setPos [12414.461, 5068.3276];
};

_vehicle_3015 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHEmpty", [15527.813, 13237.481, 1.2155863], [], 0, "CAN_COLLIDE"];
  _vehicle_3015 = _this;
  _this setDir -227.60321;
  _this setPos [15527.813, 13237.481, 1.2155863];
};

_vehicle_3140 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHEmpty", [15476.641, 13191.995, -7.6293945e-006], [], 0, "CAN_COLLIDE"];
  _vehicle_3140 = _this;
  _this setPos [15476.641, 13191.995, -7.6293945e-006];
};

_vehicle_3445 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHCivil", [10381.017, 8254.3301, -1.5258789e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_3445 = _this;
  _this setPos [10381.017, 8254.3301, -1.5258789e-005];
};

_vehicle_3458 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHCivil", [15093.325, 16403.578, 3.4332275e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_3458 = _this;
  _this setDir -42.604416;
  _this setPos [15093.325, 16403.578, 3.4332275e-005];
};

_vehicle_3463 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHCivil", [5139.6553, 4866.1377], [], 0, "CAN_COLLIDE"];
  _vehicle_3463 = _this;
  _this setDir -10.412536;
  _this setPos [5139.6553, 4866.1377];
};

_vehicle_3467 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHEmpty", [6780.2842, 16963.049, 0.029153228], [], 0, "CAN_COLLIDE"];
  _vehicle_3467 = _this;
  _this setPos [6780.2842, 16963.049, 0.029153228];
};

_vehicle_3468 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHEmpty", [16871.145, 5268.6265, 0.15640032], [], 0, "CAN_COLLIDE"];
  _vehicle_3468 = _this;
  _this setPos [16871.145, 5268.6265, 0.15640032];
};

I'm a bit confused as to why you would need a visible as well as an invisible heli pad for each vehicle trader, if that's what you're saying Zed?  Using Trader City Lenzburg as an example, there is no visible heli pad but the vehicle still spawns at the coordinates for the invisible one.  I don't believe the mod would care whether or not its visible, as long as there is a reference point to spawn the vehicle at. I understand the concept of using either a visible or hidden heli pad, just a bit perplexed as to why even after modifying coordinates or for that matter using a default file, they still spawn in same, wrong locations. Zed, I notice you have a Napf server, would you be willing to share your mission.sqf with me?  I've been pulling my hair out for the last week or so trying to figure this out.

 

Many thanks :D

Link to comment
Share on other sites

All of my traders are customized on my servers so I know what you need for spawning vehicles. If you do not have a "HeliHEmpty" at the trader, the vehicle will spawn someplace in the area. If you put the "HeliHEmpty", it will spawn dead center of that invisible helipad. While developing my custom traders, I forgot to put some invisible helipads and I experienced what you did. Once the invisible ones were placed, vehicles spawn properly. Just make sure you have an invisible helipad corresponding with any visible helipads you've placed.

Link to comment
Share on other sites

I added a "HeliHEmpty" to each of the "HeliHCivil" while using the same coords and such (of course changing both vehicle numbers for each "empty")

_vehicle_2722 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHEmpty", [8283.61, 15491.1], [], 0, "CAN_COLLIDE"];
  _vehicle_2722 = _this;
  _this setPos [8283.61, 15491.1];
};

_vehicle_2880 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHEmpty", [12414.461, 5068.3276], [], 0, "CAN_COLLIDE"];
  _vehicle_2880 = _this;
  _this setDir 26.303728;
  _this setPos [12414.461, 5068.3276];
};

_vehicle_3015 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHEmpty", [15527.813, 13237.481, 1.2155863], [], 0, "CAN_COLLIDE"];
  _vehicle_3015 = _this;
  _this setDir -227.60321;
  _this setPos [15527.813, 13237.481, 1.2155863];
};

_vehicle_3140 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHEmpty", [15476.641, 13191.995, -7.6293945e-006], [], 0, "CAN_COLLIDE"];
  _vehicle_3140 = _this;
  _this setPos [15476.641, 13191.995, -7.6293945e-006];
};

_vehicle_3445 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHCivil", [10381.017, 8254.3301, -1.5258789e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_3445 = _this;
  _this setPos [10381.017, 8254.3301, -1.5258789e-005];
};

_vehicle_3446 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHEmpty", [10381.017, 8254.3301, -1.5258789e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_3446 = _this;
  _this setPos [10381.017, 8254.3301, -1.5258789e-005];
};

_vehicle_3458 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHCivil", [15093.325, 16403.578, 3.4332275e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_3458 = _this;
  _this setDir -42.604416;
  _this setPos [15093.325, 16403.578, 3.4332275e-005];
};

_vehicle_3459 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHEmpty", [15093.325, 16403.578, 3.4332275e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_3459 = _this;
  _this setDir -42.604416;
  _this setPos [15093.325, 16403.578, 3.4332275e-005];
};

_vehicle_3462 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHCivil", [5139.6553, 4866.1377], [], 0, "CAN_COLLIDE"];
  _vehicle_3462 = _this;
  _this setDir -10.412536;
  _this setPos [5139.6553, 4866.1377];
};

_vehicle_3463 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHEmpty", [5139.6553, 4866.1377], [], 0, "CAN_COLLIDE"];
  _vehicle_3463 = _this;
  _this setDir -10.412536;
  _this setPos [5139.6553, 4866.1377];
};

_vehicle_3467 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHEmpty", [6780.2842, 16963.049, 0.029153228], [], 0, "CAN_COLLIDE"];
  _vehicle_3467 = _this;
  _this setPos [6780.2842, 16963.049, 0.029153228];
};

_vehicle_3468 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHEmpty", [16871.145, 5268.6265, 0.15640032], [], 0, "CAN_COLLIDE"];
  _vehicle_3468 = _this;
  _this setPos [16871.145, 5268.6265, 0.15640032];
};

However doing so did not work.  I tested the three traders that have visible helipads and vehicles still spawn far from where they should.  Also, for s&g I downloaded a new mission sqf from the Epoch site and that didn't help either.   

Link to comment
Share on other sites

Hey Zed, any chance you could paste an example of one of the empty heli pads you added that corresponds with a visible one?  I assume that each new vehicle added (an empty heli pad) needs it's own vehicle number? No duplicates numbers right?

 

As a test, I changed all the visible heli pads to "empty" ones and that did not help.  I double checked the coordinates of the visible heli pads before I changed them, and the coords seem to be correct so I have no idea what would be causing this spawn issue.

Link to comment
Share on other sites

This is an empty helipad in one of my trader cities. The traders there only sell land vehicles, so I do not use a visible helipad at those locations:

_vehicle_431 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHEmpty", [7479.167, 14852.96, 1.1444092e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_431 = _this;
  _this setDir 159.95271;
  _this setPos [7479.167, 14852.96, 1.1444092e-005];
};

Here's my helicopter trader, where I have both a visible and invisible helipad:

_vehicle_16 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHCivil", [15222.357, 16216.814, 5.7220459e-006], [], 0, "CAN_COLLIDE"];
  _vehicle_16 = _this;
  _this setDir -42.989822;
  _this setPos [15222.357, 16216.814, 5.7220459e-006];
};


_vehicle_16 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHEmpty", [15222.357, 16216.814, 5.7220459e-006], [], 0, "CAN_COLLIDE"];
  _vehicle_16 = _this;
  _this setDir -42.989822;
  _this setPos [15222.357, 16216.814, 5.7220459e-006];
};

I do not believe the "_vehicle" number has to be unique for each entry because that's exactly how it is and it works fine.

Link to comment
Share on other sites

I did the following...

_vehicle_3445 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHCivil", [10381.017, 8254.3301, -1.5258789e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_3445 = _this;
  _this setPos [10381.017, 8254.3301, -1.5258789e-005];
};

_vehicle_3445 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHEmpty", [10381.017, 8254.3301, -1.5258789e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_3445 = _this;
  _this setPos [10381.017, 8254.3301, -1.5258789e-005];
};

_vehicle_3458 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHCivil", [15093.325, 16403.578, 3.4332275e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_3458 = _this;
  _this setDir -42.604416;
  _this setPos [15093.325, 16403.578, 3.4332275e-005];
};

_vehicle_3458 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHEmpty", [15093.325, 16403.578, 3.4332275e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_3458 = _this;
  _this setDir -42.604416;
  _this setPos [15093.325, 16403.578, 3.4332275e-005];
};

_vehicle_3463 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHCivil", [5139.6553, 4866.1377], [], 0, "CAN_COLLIDE"];
  _vehicle_3463 = _this;
  _this setDir -10.412536;
  _this setPos [5139.6553, 4866.1377];
};

_vehicle_3463 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHEmpty", [5139.6553, 4866.1377], [], 0, "CAN_COLLIDE"];
  _vehicle_3463 = _this;
  _this setDir -10.412536;
  _this setPos [5139.6553, 4866.1377];
};

...and did not resolve the issue. :unsure:

Link to comment
Share on other sites

I doubt the anti-hack would cause this issue but thought I would ask.  I checked some Epoch code, specifically where it looks for either heli pad when spawning a vehicle and it lists HeliHCivil and HeliHempty (with a lower case "e").  I don't think case sensitivity plays a part however I did change the three HeliHEmpty I added to HeliHempty and doing so didn't help.

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