Addphealth: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
MAXPLAYERATOMICHEALTH doesn't exist. Add formatting and reword.
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
addphealth <number>
<span {{code}}>'''addphealth''' <amount></span>


Adds <number> to the player's [[strength]]. <number> may be positive or negative.
Adds ''<amount>'' to the player's [[strength]]. The ''<amount>'' may be positive or negative.  


The game enforces limits on the health added with this command. This size of the limit is set by [[MAXPLAYERHEALTH]] for most actors. A [[MAXPLAYERATOMICHEALTH]] is defined in con but does not appear to be passed in through gamestartup. The atomic health definately does have a higer limit but to find out where this is set from would require checking the source.
The player's health cannot exceed [[gamestartup|MAXPLAYERHEALTH]] using this command, unless it is called from actor ''ATOMICHEALTH'' (tilenum 100) in which case it is limited to <code>2 * [[gamestartup|MAXPLAYERHEALTH]]</code>.
 
Additionally, if the player is given health while looking through a viewscreen camera, the camera view is interrupted.


[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Duke3D 1.3/1.5 commands]]
[[Category:Player manipulation]]
[[Category:Player manipulation]]

Latest revision as of 00:59, 11 January 2021

addphealth <amount>

Adds <amount> to the player's strength. The <amount> may be positive or negative.

The player's health cannot exceed MAXPLAYERHEALTH using this command, unless it is called from actor ATOMICHEALTH (tilenum 100) in which case it is limited to 2 * MAXPLAYERHEALTH.

Additionally, if the player is given health while looking through a viewscreen camera, the camera view is interrupted.