[ZScript] RestoreDefaults() for Actors

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

[ZScript] RestoreDefaults() for Actors

Post by Major Cooke »

Because A_Respawn was never intended to be used on missiles, I think a RestoreDefaults function is in order.

What I'm trying to do is recreate an object pool for special effects so I can lessen the amount of times spawning and destroying is performed.

This function's ability is simple: it restores all variables to their defaults and all flags back to what they were.

Some flags would also be useful here:
RDF_NOFLAGS
RDF_NOPROPERTIES

That way if the modder doesn't need to restore every property and/or flag, they can restore specific individuals as needed.

Return to “Feature Suggestions [GZDoom]”