I'm trying to build compatibility to other InstaGib mutators in my own, but I don't know how I would go seeing if those mutators exist in the current level. Could I interate through the level's mutator list somehow and search for the class? Or could I do it some other way (foreach DynamicActors, my mutator's CheckReplacement function)?
Feel me. Do I feel pretty?
15th September 2004
I'm not sure. What are you looking to do?
Do you want your mutator to merge in with other active mutators?
Do you want your mutator to change it's relevant settings (i.e. not skeletize if another mutator is active that conflicts with that) so that the mutator won't conflict with others or not crash the game? I think that is what you were talking about on IRC.
If so, it might take some tricky coding, but it may be possible. I couldn't do it on the fly at this second, though, since I have no U-script experience. I have C-experience.
Hmm. I'll see what I can do or find someone that can fix that. It may just take if commands to make it work in my opinion (if U-script is like C or C++).
I'm looking to integrate this with the standard Instagib mutator, the Zoom Instagib mutator, and the XxxX ESR mutator. Each one has its different settings which need to be changed. The thing is, I have to find out which if any is active in the current game/level. I'll mess around with using an iterator function tonight, and let you know how it turns out tomorrow.