[Fixed] [level refactor] player angle is wrong in hubs

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

[level refactor] player angle is wrong in hubs

Postby Nash » Sat Feb 09, 2019 4:02 am

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.
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: nVidia with Vulkan support

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

Postby Graf Zahl » Sat Feb 09, 2019 4:47 am

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.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

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

Postby Nash » Sat Feb 09, 2019 5:03 am

Here, example file. Supposedly in non-level-refactor version, the player will snap to the player start angles on the new map.
Attachments
HubStaticthinker.pk3
(3.46 KiB) Downloaded 9 times
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: nVidia with Vulkan support

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

Postby Graf Zahl » Sat Feb 09, 2019 6:08 am

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.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 1 guest