Got access: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Matteus (talk | contribs)
No edit summary
 
Nexus (talk | contribs)
m reorder
 
(6 intermediate revisions by 4 users 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_walnum]] or [[access_spritenum]] to itself. <BR>
A [[bitfield]] that holds if the current player has the access cards or not.
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>
:'''1''' - Blue access card
pal: 0 bit 0<BR>
:'''2''' - Red  access card
Pal: 21 Bit 2<BR>
:'''4''' - Yellow access card
Pal: 23 Bit 3<BR>
 
[[Category:Bitfields]]
[[Category:Player structure members]]

Latest revision as of 13:01, 11 February 2015

A bitfield that holds if the current player has the access cards or not.

1 - Blue access card
2 - Red access card
4 - Yellow access card