Add new skin flag SF_NOSHIELDABILITY
This adds the skin flag SF_NOSHIELDABILITY
, an easy way of disabling shield abilities for custom characters. The main difference between this flag and just returning true
in ShieldSpecial
is that this prevents target arrows from appearing with the attraction shield.
Also allows ShieldSpecial
to access the whirlwind emergency jump so it's less of a pain to override that by itself.
-
Master
Based idea. You have merge conflicts though! D:
-
added 133 commits
-
4521827e...760e083c - 132 commits from branch
STJr:next
- 721170f5 - lol
Toggle commit list -
4521827e...760e083c - 132 commits from branch
-
love when a blank line causes a merge conflict
fixed now
-
Owner
A GETFLAG macro for the new skin flag needs to be added, at around https://git.do.srb2.org/STJr/SRB2/blob/next/src/r_skins.c#L496
Otherwise it would be impossible to set it using noshieldability = 1 for example
-
What's the limit on the amount of character flags we could have, if there's one?
-
Owner
Since it is a 32-bit number, 12 left after this merged.
-
could we eventually make it 64-bit if we bloat it enough??
🍭 -
Owner
:VVv
-
-
added the getflag macro @SteelTitanium mentioned
-
oh yeah, I had an idea for a character flag yesterday.. gotta wait for this to get merged then i guess :)
-
merged
Toggle commit list