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

ECS Prerelease 2024-10-03: Default player heading at spawn has changed #2191

Closed
Xansta opened this issue Oct 3, 2024 · 2 comments
Closed

Comments

@Xansta
Copy link
Contributor

Xansta commented Oct 3, 2024

When a player ship is spawned, it used to default to heading 90. Now it's randomized. I noticed this on scenario Deliver Ambassador Gremus. When I wrote this scenario back in 2018, I specifically placed the player head to head with enemies. Now, that confrontation often does not take place because of the random heading of the player ship.

Relevant code in scenario:

	playerCallSign = "Carolina"
	player = PlayerSpaceship():setFaction("Human Navy"):setTemplate("Flavia P.Falcon")
	player:setPosition(22400, 18200):setCallSign(playerCallSign)

At the time I wrote Deliver Ambassador Gremus, I had problems figuring out heading vs rotation, so I just took the default and worked with it. Now, the scenario can probably be modified to point the ship in the 90 degree direction. This may be the only scenario that relies on the default player heading.

@daid
Copy link
Owner

daid commented Oct 6, 2024

It used to be inconsistent, cpu chips and stations have a random rotation. And player ships from the GM screen and ship selection screen also had a random rotation. Only those created by a script had the default.

So I made it consistent (and easier code wise) and I think it would be easier to fix the scenario.

@Xansta
Copy link
Contributor Author

Xansta commented Oct 8, 2024

Updated scenario in #2198

@Xansta Xansta closed this as completed Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants