More Morph Virtuals

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: More Morph Virtuals

Re: More Morph Virtuals

by wildweasel » Wed Apr 01, 2020 3:17 pm

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.

More Morph Virtuals

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.

Top