-
Notifications
You must be signed in to change notification settings - Fork 631
Add Blood Color options to Cosmetics Editor #6007
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
base: develop
Are you sure you want to change the base?
Conversation
| } | ||
|
|
||
| // (Un)register Hooks | ||
| if (manualChange) { |
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.
this shouldn't be necessary with shipinit hooks
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.
Normally not necessary due to automatic register/unregister calls by shipinit, but in my case it doesn't work. Despite all relevant CVar names (CVAR_COSMETIC("Blood.Blue0Begin.Changed") etc) are listed to be watched by RegisterShipInitFunc, the RegisterBlue/GreenBloodHook functions never gets called automatically when blood colors are changed from the default.
| } | ||
|
|
||
| static void RegisterBlueBloodHook() { | ||
| static bool previousHookState = false; // Previous hook enabled state (we don't re-register if unchanged) |
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.
COND_VB_SHOULD handles this, can remove this variable. Same for green blood
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.
If the register functions are automatically called by shipinit then this isn't needed. As of now, the register functions aren't called automatically by shipinit for some reason.
|
Would this replace the old red ganon blood option in restorations? |
No. Codes related to Ganon blood exist in completely separate locations from regular enemy blood splatter/hitmark. |
This Pull Request adds enemy blood color options to Cosmetics Editor.
(Please note Mac build is repeatedly and randomly failing. I don't own a Mac, so if I introduce Mac-exclusive bugs, I can't fix it myself.)
Build Artifacts