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

Implements NumberOfDocks and DockingOffset# for BuildingTypes. #790

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

CCHyper
Copy link
Contributor

@CCHyper CCHyper commented Apr 30, 2022

Closes #786

This pull request implements NumberOfDocks and DockingOffset# for BuildingTypes.

NOTE1: This feature currently only applies to the following BuildingTypes;
- Structures with Helipad=yes, where DockingOffset0 adjusts the docking position for aircraft. A NumberOfDocks value greater than 1 has no additional effect at this time.
- Structures with Refinery=yes or Weeder=yes, where DockingOffset0 adjusts the docking position for the harvester. A NumberOfDocks value greater than 1 has no additional effect.

NOTE2: The default docking coord is offset from the center of the building for the following BuildingTypes;
- Refinery=yes is offset by 128 leptons on the x-axis.
- Weeder=yes is offset by 512 leptons on the x-axis, and 256 leptons on the y-axis


[BuildingType] (RULES.INI)
NumberOfDocks=<integer> - The number of docking locations this building has. Defaults to 1 for buildings with Helipad=yes, and 0 for all other buildings.

[Image] (ART.INI)
DockingOffset#=<X,Y,Z> - The coord offset from the center of the building for the respective docking location. This list must contain the same number of entries as defined by NumberOfDocks, with # being replaced by the docking position starting from zero. Each entry defaults to 0,0,0.

@CCHyper CCHyper added the new-feature New feature or request. label Apr 30, 2022
@CCHyper CCHyper requested a review from a team April 30, 2022 23:53
@CCHyper CCHyper force-pushed the feature/ra2/dockingoffset branch from 7727cb6 to abf4a66 Compare May 1, 2022 00:20
@github-actions
Copy link

github-actions bot commented May 1, 2022

This comment is automaticly generated by Nightly.link and allows non-registered users to get download the artifacts for this pull request.

These links are also updated when the pull request is pushed to.

@Longshanks1
Copy link

Tested on Freeware TS and the TS Client. The only one currently working on Freeware TS is the Helipad; the Refinery and Waste Facility do not use the offsets for docking. In the TS Client, newly constructed units from the Helipad do follow the DockingOffset values, but when trying to land, they either land on the Helipad itself or stay hovering in the air trying to land at the DockingOffset coords. The Refinery and Waste Facility do not use their docking offsets either

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature New feature or request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[New Feature] Allow a DockingOffset to be specified for helipads
2 participants