Spriteflags: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
bit 32 of spriteflags is via SpriteFlags[] while useractor enemy types are via ActorType[]. Be careful in the wording that suggests these two being the same.
Line 8: Line 8:
'''8'''  - Is a [[defineprojectile|projectile]].<br />
'''8'''  - Is a [[defineprojectile|projectile]].<br />
'''16''' - Prevents teleporting. The sprite is not entered into the [[decal deletion queue]].<br />
'''16''' - Prevents teleporting. The sprite is not entered into the [[decal deletion queue]].<br />
'''32''' - Is an enemy. See [[useractor]].<br />
'''32''' - Is an enemy. See [[useractor]], but note that this is distinct from setting the useractor type to either of the enemy types.<br />
'''64''' - Sprite will be insusceptible to floor palette of sector containing this sprite. See [[spritenopal]].<br />
'''64''' - Sprite will be insusceptible to floor palette of sector containing this sprite. See [[spritenopal]].<br />



Revision as of 08:51, 20 July 2011

spriteflags <value>

Sets special flags for sprites. The values are:

1 - Generates a shadow. See spriteshadow.
2 - Turns palette 6 whenever night vision goggles are used. See spritenvg.
4 - The sprite's shade is unaffected by the shade of its sector. See spritenoshade.
8 - Is a projectile.
16 - Prevents teleporting. The sprite is not entered into the decal deletion queue.
32 - Is an enemy. See useractor, but note that this is distinct from setting the useractor type to either of the enemy types.
64 - Sprite will be insusceptible to floor palette of sector containing this sprite. See spritenopal.

It is a bitfield, so add together the values you want and then use spriteflags with the sum.