[ZScript] RestoreDefaults() for Actors

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

Moderator: GZDoom Developers

[ZScript] RestoreDefaults() for Actors

Postby Major Cooke » Fri Jul 27, 2018 10:15 am

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:

That way if the modder doesn't need to restore every property and/or flag, they can restore specific individuals as needed.
User avatar
Major Cooke
The road to Hell is paved in the carrion she leaves behind.
Joined: 28 Jan 2007
Discord: Major Cooke#0846

Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest