[r3301] Morphing disregards APROP_SpawnHealth

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
User avatar
... in loving memory ...
Posts: 2975
Joined: Tue Jul 15, 2003 8:06 pm

[r3301] Morphing disregards APROP_SpawnHealth

Post by Kate »

It appears that the morphing subsystem completely ignores the ACS SetActorProperty for APROP_SpawnHealth, so if you set a class's health to something above the norm, then morph and revert, it sets your health to the original class's spawn health, NOT the health set by ACS.
User avatar
Site Admin
Posts: 7728
Joined: Wed Jul 09, 2003 10:30 pm

Re: [r3301] Morphing disregards APROP_SpawnHealth

Post by randi »

APROP_SpawnHealth is a misnomer. It actually sets the player's MaxHealth, not their SpawnHealth. (I do not know why it has the wrong name.) Under normal circumstances, setting the spawn health is useless, since it only affects newly spawned actors. As such, there isn't even a SpawnHealth property. The spawn health is simply the default value for Health and thus shared by all instances of the class.

An UnmorphHealth property might be useful, but that's entering the realm of feature suggestion.

Return to “Closed Bugs”