Transition through portal with custom collision code

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Apeirogon
Posts: 1605
Joined: Mon Jun 12, 2017 12:57 am

Transition through portal with custom collision code

Post by Apeirogon »

I have actor with custom collision code.
It have a problem, it dont moves through line/sector portals smoothly/at all. Is there are any through portal transitioning functions which was exported in Zscript?
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: Transition through portal with custom collision code

Post by Graf Zahl »

No. The portal transition is handled inside P_XYMovement and P_ZMovement. Some of its subfunctions are exported but be prepared for some serious work to pull it off.
User avatar
Apeirogon
Posts: 1605
Joined: Mon Jun 12, 2017 12:57 am

Re: Transition through portal with custom collision code

Post by Apeirogon »

Awwwww....
Looks like it will be with hack "if hit portal wait one tick (for renderer interpolation) then warp to exit portal like nothing happened" for some time. Hope nobody notice it.
Post Reply

Return to “Scripting”