Last pissed time: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
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 (220 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]]

Revision as of 13:23, 12 February 2007

last_pissed_time is a countdown timer which is set to 5720 (220 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.