Access wallnum: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Matteus (talk | contribs)
No edit summary
 
No edit summary
 
(3 intermediate revisions by 2 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>
'''''access_wallnum''''' is the wall ID of the access card lock wall currently in use, if the player is using one.  Otherwise, it is set to -1. It is unknown whether or not this effect appears in any maps or whether or not it is even functional. Some of the code relating to it appears to be commented out in the source code.
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:04, 8 September 2006

access_wallnum is the wall ID of the access card lock wall currently in use, if the player is using one. Otherwise, it is set to -1. It is unknown whether or not this effect appears in any maps or whether or not it is even functional. Some of the code relating to it appears to be commented out in the source code.