More Morph Virtuals

Moderator: GZDoom Developers

User avatar
Major Cooke
Posts: 8208
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town

More Morph Virtuals

Post by Major Cooke »

Pull Request

Simply adds four more blank virtuals that modders can use.
PreMorph, PostMorph, PreUnmorph, PostUnmorph. 'cls' is simply the other actor's class type.

The reason I need this is because of mod compatibility. No functions are called when the main player is brought back into the main body so restoring armor means going in a heavily roundabout manner. Right now, my armor saving system doesn't blanket carpet all cases for saving armor and restoring it for any and all morphs, and it's virtually impossible to perform without these.

Plus, I can make monsters react to what they transformed into or from without needing to rely upon hacks.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed

Re: More Morph Virtuals

Post by wildweasel »

This thread was Reported because the code submission is said to have been Added. Reminder that the Report button gets the attention of the moderators, not the developers.

Return to “Closed Feature Suggestions [GZDoom]”