[Not a bug] [r3301] Morphing disregards APROP_SpawnHealth

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

[r3301] Morphing disregards APROP_SpawnHealth

Postby Kate » Sun Oct 23, 2011 7:48 pm

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
... in loving memory ...
Joined: 16 Jul 2003

Re: [r3301] Morphing disregards APROP_SpawnHealth

Postby randi » Wed Nov 23, 2011 11:02 pm

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.
User avatar
Site Admin
Joined: 10 Jul 2003

Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 2 guests