Addphealth: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
Fox (talk | contribs)
No edit summary
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
addphealth <number>
'''addphealth''' <number>


Adds <number> to the player's [[strength]]. <number> may be positive or negative.
Adds <number> to the player's [[strength]]. <number> may be positive or negative. The health is limited to [[gamestartup|MAXPLAYERHEALTH]] for most actors, the only exception is ATOMICHEALTH which limit is hard-coded to [[gamestartup|MAXPLAYERATOMICHEALTH]].


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.
If the player given health is looking through a camera, the view is reset.


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

Revision as of 17:41, 6 December 2014

addphealth <number>

Adds <number> to the player's strength. <number> may be positive or negative. The health is limited to MAXPLAYERHEALTH for most actors, the only exception is ATOMICHEALTH which limit is hard-coded to MAXPLAYERATOMICHEALTH.

If the player given health is looking through a camera, the view is reset.