by Major Cooke » Sat Feb 15, 2020 4:21 pm
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.
[url=https://github.com/coelckers/gzdoom/pull/1037]Pull Request[/url]
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.