[level refactor] player angle is wrong in hubs

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

[level refactor] player angle is wrong in hubs

Post 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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

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

Post 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.
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

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

Post by Nash »

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 30 times
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

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

Post 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.
Post Reply

Return to “Closed Bugs [GZDoom]”