Last pissed time: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
Fox (talk | contribs)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Countdown timer set to 5720 when the player uses a toilet. The player gets health and says, "Ah, much better" only if the timer is at 0.
'''''last_pissed_time''''' is a countdown timer which is set to 5720 (190.6 seconds) whenever the player uses a toilet. If last_pissed_time's value is 0, sound #28 (DUKE_URINATE) is played.  At this point, last_pissed_time is reset to 5720, [[transporter_hold]] is set to 58, [[holster_weapon]] is set to 1, [[weapon_pos]] is set to -1, and the player's [[extra]] is increased by 1/10th of the MAXPLAYERHEALTH value.


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

Latest revision as of 07:25, 25 March 2014

last_pissed_time is a countdown timer which is set to 5720 (190.6 seconds) whenever the player uses a toilet. If last_pissed_time's value is 0, sound #28 (DUKE_URINATE) is played. At this point, last_pissed_time is reset to 5720, transporter_hold is set to 58, holster_weapon is set to 1, weapon_pos is set to -1, and the player's extra is increased by 1/10th of the MAXPLAYERHEALTH value.