Timebeforeexit: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Matteus (talk | contribs)
No edit summary
 
Daedolon (talk | contribs)
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[timebeforeexit]] is a non-zero count-down timer. At 26*5, all sounds are stopped and the [[customexitsound]] is played if it is > 0. If [[customexitsound]], quote 102 is displayed. <BR>
Member of the [[player]] struct; [[timebeforeexit]] is a non-zero count-down timer. At one, all [[player]]s are set to end of level mode (.gm) (MODE_EOL) and the next level number is set.
At one, all [[player]]s are set to end of level mode (.gm) (MODE_EOL) and the next level number is set...
 
The value of the timer is at 0 during level start, but after EOL triggered, it jumps to the predefined variable (for example "endofgame 52" on BOSS1 sets it to 52) and starts counting down to 1.
 
If this was triggered with [[endofgame]], and you manually intervene by setting the [[player]] struct member [[gm]] to 8, the game still ends the whole episode, instead of just the level.
 
[[Category:Player structure members]]

Latest revision as of 20:14, 22 February 2014

Member of the player struct; timebeforeexit is a non-zero count-down timer. At one, all players are set to end of level mode (.gm) (MODE_EOL) and the next level number is set.

The value of the timer is at 0 during level start, but after EOL triggered, it jumps to the predefined variable (for example "endofgame 52" on BOSS1 sets it to 52) and starts counting down to 1.

If this was triggered with endofgame, and you manually intervene by setting the player struct member gm to 8, the game still ends the whole episode, instead of just the level.