Access spritenum: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Matteus (talk | contribs)
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
When 'using' a [[wall]] or [[sprite]] that needs access, it checks to see if the [[player]] has the correct access card and then starts the access animation by setting [[access_incs]] to one. It also sets the [[access wallnum]] or [[access_spritenum]] to itself. <BR>
'''''access_spritenum''''' is the sprite ID of the access card lock sprite currently in use, if the player is using one. Otherwise, it is set to -1.
For [[sprite]]s, the access card animation takes on the palette of the 'target' access [[sprite]].
 
[[got_access]] bits are UN-set for the access after it is granted:<BR>
[[Category:Player structure members]]
pal: 0 bit 0<BR>
Pal: 21 Bit 2<BR>
Pal: 23 Bit 3<BR>

Latest revision as of 09:02, 8 September 2006

access_spritenum is the sprite ID of the access card lock sprite currently in use, if the player is using one. Otherwise, it is set to -1.