Htflags: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Created page with 'Controls special flags for sprites. The values are: '''1''' - Generates a shadow. See spriteshadow.<br /> '''2''' - Turns palette 6 whenever night vision gog…'
 
No edit summary
Line 1: Line 1:
Controls special flags for sprites. The values are:
Controls special flags for sprites. The values are:


'''1''' - Generates a shadow. See [[spriteshadow]].<br />
'''1'''   - Generates a shadow. See [[spriteshadow]].<br />
'''2''' - Turns [[spritepal|palette]] 6 whenever night vision goggles are used. See [[spritenvg]].<br />
'''2'''   - Turns [[spritepal|palette]] 6 whenever night vision goggles are used. See [[spritenvg]].<br />
'''4''' - The sprite's shade is unaffected by the shade of its sector. See [[spritenoshade]].<br />
'''4'''   - The sprite's shade is unaffected by the shade of its sector. See [[spritenoshade]].<br />
'''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]].<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 />
'''128''' - Sprite will not be run through [[event]] code.<br />
'''256''' - Sprite will not emit hardcoded Polymer-based lights.


It is a bitfield, so add together the values you want and then set htflags to the sum.
'''htflags''' is a bitfield, so add together the values you want and then set htflags to the sum.

Revision as of 09:05, 29 June 2009

Controls 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.
64 - Sprite will be insusceptible to floor palette of sector containing this sprite. See spritenopal.
128 - Sprite will not be run through event code.
256 - Sprite will not emit hardcoded Polymer-based lights.

htflags is a bitfield, so add together the values you want and then set htflags to the sum.