Httempang: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
Jwaffe (talk | contribs)
m This is not just for pal
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
'''httempang''' holds the number of the sprite's previous pal (if the sprite is not a player).  The sprite's pal is set to this number when the [[getlastpal]] command is used.  Note that the previous pal is stored in httempang only when the [[spritepal]] command is used.
'''httempang''' holds the number of the sprite's previous [[pal|palette]] (if the sprite is not a player).  The sprite's palette is set to this number when the [[getlastpal]] command is used.  Note that the previous pal is stored in httempang only when the [[spritepal]] command is used.


Given the name of this member, it seems likely that it was originally intended to store an angle.
See [[pal]] for more information about palette swaps.
 
This variable is also used as temporary memory for certain actors, including:
 
*RECON (temporary angle data)
*ST_30_ROTATE_RISE_BRIDGE (stored in sector effector actor)
*temporarily storing the angle of a SE with a lotag of SE_27_DEMO_CAM, possibly for interpolation purposes


[[Category:Sprite structure members]]
[[Category:Sprite structure members]]

Latest revision as of 13:11, 15 June 2014

httempang holds the number of the sprite's previous palette (if the sprite is not a player). The sprite's palette is set to this number when the getlastpal command is used. Note that the previous pal is stored in httempang only when the spritepal command is used.

See pal for more information about palette swaps.

This variable is also used as temporary memory for certain actors, including:

  • RECON (temporary angle data)
  • ST_30_ROTATE_RISE_BRIDGE (stored in sector effector actor)
  • temporarily storing the angle of a SE with a lotag of SE_27_DEMO_CAM, possibly for interpolation purposes