Page MenuHomeFeedback Tracker

First aid does damage to body parts
New, WishlistPublic


It seems that first aid kits use a simple setDamage command to "heal" the player. What it means is that all individual body parts (or hit points), even those that originally had less than 0.25 damage, will have their damage set to 0.25 due to the first aid kit's all-encompassing setDamage.

Obviously, body parts that don't have more than 0.25 damage should be unaffected. The best way to go about it would be to check each hit point individually and setHitPointDamage if needed (or use the command to retain the original damage). Ideally, the game should feature a command to only set the main damage of a unit, not affecting hit points at all.


Legacy ID
Health System
Steps To Reproduce

Place a soldier and put
this setDamage 0.5;this setHit ["body", 0]
in its init line.

Ingame, watch the value of
player getHitPointDamage "hitbody"
and notice it being 0.

Use the first aid kit to heal yourself. After healing, your body damage will have increased to 0.25.

Event Timeline

Celery edited Steps To Reproduce. (Show Details)Sep 13 2013, 3:09 AM
Celery edited Additional Information. (Show Details)
Celery set Category to Health System.
Celery set Reproducibility to Always.
Celery set Severity to None.
Celery set Resolution to Open.
Celery set Legacy ID to 364948903.May 7 2016, 4:41 PM