Guniqhudid: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
New page: guniqhudid <slotID> <slotID> is slot's ID. Legal values are 0..254 Select an extra slots so HUD models can store animation state without messing game sprites. By default it uses the firs...
 
No edit summary
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
guniqhudid <slotID>
'''guniqhudid''' <slotID>


<slotID> is slot's ID. Legal values are 0..254
<slotID> is the index of the slot which will be used to draw a model. Legal values are 0 through 254.


Select an extra slots so HUD models can store animation state without messing game sprites. By default it uses the first slot(#0). If you need several animating HUD sprites, you should switch to another slot, draw a sprite with [[rotatesprite]], switch back to "guniqhudid 0".
The purpose of the guniqhudid command is that models drawn to the screen via rotatesprite do not have a [[sprite id]] like all other sprites in the game world. The engine needs some sort of ID so that it knows where and what to draw.
 
This command will allow you to select a different slot so that any HUD models you are drawing can store their animation state independently, without conflict. By default it uses the first slot, 0. If you need several animating HUD models, you should switch to another slot, draw the model with [[rotatesprite]], then switch back using <code>guniqhudid 0</code>.
 
'''guniqhudid''' is short for "g (game? gun?) unique HUD ID".
 
[[Category:EDuke32 specific commands]]
[[Category:Screen drawing commands]]

Latest revision as of 00:59, 15 August 2011

guniqhudid <slotID>

<slotID> is the index of the slot which will be used to draw a model. Legal values are 0 through 254.

The purpose of the guniqhudid command is that models drawn to the screen via rotatesprite do not have a sprite id like all other sprites in the game world. The engine needs some sort of ID so that it knows where and what to draw.

This command will allow you to select a different slot so that any HUD models you are drawing can store their animation state independently, without conflict. By default it uses the first slot, 0. If you need several animating HUD models, you should switch to another slot, draw the model with rotatesprite, then switch back using guniqhudid 0.

guniqhudid is short for "g (game? gun?) unique HUD ID".