Pre/PostTeleport virtuals for actors

Moderator: GZDoom Developers

User avatar
Marisa the Magician
 
 
Posts: 3802
Joined: Fri Feb 08, 2008 9:15 am
Discord: Marisa the Magician#1666
Twitch ID: MarisaDOOM
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia

Pre/PostTeleport virtuals for actors

Post by Marisa the Magician »

I swear this isn't something I ripped straight out of Unreal Engine again (well actually it is, kinda, it's just implemented differently).

During actor teleport, PreTeleport is first called, and if it returns false, the move is cancelled early. PostTeleport is called at the very end if the move succeeded. I figured some people other than myself would find these very useful.

Pull request here.

Return to “Closed Feature Suggestions”