Flags are additive and stored in hex. for each place in hex, there is a flag with the value 1
, 2
, 4
, and 8
. if you notice, these add up to F
in hex.
if you want to set flag 00 01 00 00
and 01 00 00 00
, you would set the flag value to 01 01 00 00
Set: replaces all the flags following this header
Add: adds the flags following this header to the current flags
Remove: removes the flags following this header of the current flags
Projectile: flag header for projectile
24 1A 00 00
Set
24 1A 03 00
Add
24 1A 01 00
Remove