Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init spawn places rewrite #2668

Conversation

killerswin2
Copy link

@killerswin2 killerswin2 commented Mar 15, 2023

What type of PR is this.

  1. Bug
  2. Change
  3. Enhancement

What have you changed and why?

Information:
fixes the wrong variable being checked

Please specify which Issue this PR Resolves.

closes #2667

Please verify the following and ensure all checks are completed.

  1. Have you loaded the mission in LAN host?
  2. Have you loaded the mission on a dedicated server?

Is further testing or are further changes required?

  1. No
  2. Yes (Please provide further detail below.)

How can the changes be tested?

Steps:


Notes:

@killerswin2 killerswin2 changed the base branch from master to unstable March 15, 2023 20:02
Copy link

@jaj22 jaj22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least it's filling the markers the right way up now.

{
Error_1("InitSpawnPlaces: Marker %1 is not long enough for vehicles, required are 10 meters!", _x);
}
else
{
//Cleaning area
private _radius = sqrt (_length * _length + _width * _width);
private _radius = [0,0] vectorDistance [_width, _height];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could just do vectorMagnitude [_width, _height].

_realLength = _vehicleCount * 4;
_realSpace = (_length - _realLength) / (_vehicleCount + 1);
_realSpace = (_width - _realLength) / (_vehicleCount + 1);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What this does is increase the spacing between vehicles if there's some extra space left over in the marker. This is a bad idea. If the spacing is variable and in some cases not enough, then we're gonna have occasional spawn explosions that are difficult to pin down. Better to keep the spacing consistent and adjust until it doesn't blow things up.

Copy link

@Bob-Murphy Bob-Murphy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Bob-Murphy Bob-Murphy added this to the 3.2 milestone Mar 22, 2023
@Bob-Murphy Bob-Murphy merged commit ddcb40c into official-antistasi-community:unstable Mar 22, 2023
@Bob-Murphy Bob-Murphy added the Added to changelog Added to changelog label May 8, 2023
igorkis-scrts pushed a commit to igorkis-scrts/A3-Antistasi-Plus that referenced this pull request Aug 8, 2023
* removed nasty distance

* fixed wrong variables

* renamed width to height, because arma is dumb

* fixed height

* change for bob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rewrite fn_initSpawnPlaces
4 participants