-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add docs for Issue #359 - Photobooth Enums #1403
Add docs for Issue #359 - Photobooth Enums #1403
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appreciate the efforts, but at the moment docs don't make it clear how to make use of this feature. I assume it expects mod authors to submit their own PRs that would add more members to the enum so then their mods can take advantage of the new values? TBH I have a hard understanding why this feature is necessary at all.
So based on some digging these enums are used in the ParticleEffects config array to add particle effects to photobooth poses via config, but like why do that when poses can be added to pose animations directly via animnotifies like TLE poses do? |
OK so - as I understand it, m_arrAnimationPoses is a config array of AnimationPoses structs with the following stuff inside:
By convention, most people add new poses by adding new lines to XComContent.ini like this: Presumably new poses can also specify particle effects, like this: Meanwhile, there is a config array of ParticleEffects which can be specified like: From what I can tell, the code in SetParticleEffects seems to goes through each ParticleEffectTypes in the array of AnimationPoses and checks those against each element of the seperate ParticleEffects array before playing them, with the link between the two being this ePPET_ enum which has to be specified in both arrays. So presumably, if one wants to add an animpose with a custom particle effect just using config, it would have to use one of the other not-already-defined enums otherwise the SetParticleEfffects code would prevent the effect from playing, maybe? |
So it's using a enum as a key to connect two config arrays. Sounds like if mod authors want to add new poses using this feature, they have to first submit a CHL PR to add new enums. Ugh, this is awful, how did this even get approved. I suppose at this point we just have to support it, but in the presence of a much simpler method (adding PFX directly to pose animsequences like TLP poses do), I don't see anybody ever using it. |
Yeah I don't know of any mods actively using the feature to be fair. It does seem like a very awkward way of doing it - the code should probably be refactored so that a single animpose config array including all the particle effects can be specified but yeah, maybe I should never have dug this up in the first place! |
Well, since you already started, would you mind laying out some of that in the docs? The short version. |
03080f3
to
fc7fe60
Compare
Updated docs.
I've reworded the docs a bit, please take a look and if you don't see anything objectionable, this is good to go. |
Fine by me :) |
Adds docs for issue #359