Got access: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
I am not sure about what those flags were supposed to represent...
Line 5: Line 5:
Pal: 21 Bit 2<BR>
Pal: 21 Bit 2<BR>
Pal: 23 Bit 3<BR>
Pal: 23 Bit 3<BR>
Holds if the current player has or not the access cards.
:'''0''' - No access cards
:'''1''' - Blue access card
:'''2''' - Red  access card
:'''3''' - Blue and red access cards
:'''4''' - Yellow access cards
:'''5''' - Blue and yellow access cards
:'''6''' - Red and yellow access cards
:'''7''' - Blue, red and yellow (all) access cards


[[Category:Player structure members]]
[[Category:Player structure members]]

Revision as of 18:43, 13 March 2010

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.
For sprites, 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:
pal: 0 bit 0
Pal: 21 Bit 2
Pal: 23 Bit 3

Holds if the current player has or not the access cards.

0 - No access cards
1 - Blue access card
2 - Red access card
3 - Blue and red access cards
4 - Yellow access cards
5 - Blue and yellow access cards
6 - Red and yellow access cards
7 - Blue, red and yellow (all) access cards