Page 1 of 1

[level refactor] player angle is wrong in hubs

Posted: Sat Feb 09, 2019 3:02 am
by Nash
Can't fit everything in title.

In hub levels, the player will not follow player start angles when entering a level. Instead, the player will spawn into the new level facing whichever angle they were in from the previous level.

Re: [level refactor] player angle is wrong in hubs

Posted: Sat Feb 09, 2019 3:47 am
by Graf Zahl
Works for me. Keep in mind that this is a parameter of Teleport_NewMap.
I tested it with Hexen which doesn't preserve the angle and with Strife which does.

Both worked correctly. So please post a runnable example where you think it is wrong.

Re: [level refactor] player angle is wrong in hubs

Posted: Sat Feb 09, 2019 4:03 am
by Nash
Here, example file. Supposedly in non-level-refactor version, the player will snap to the player start angles on the new map.

Re: [level refactor] player angle is wrong in hubs

Posted: Sat Feb 09, 2019 5:08 am
by Graf Zahl
You omitted the crucial bit of info that this only happens when using ChangeLevel with a certain combination of flags. That's why it worked in Hexen and not in your demo.