Doom 64 styled Pain Elemental

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Boondorl
Posts: 137
Joined: Wed Jul 11, 2018 10:57 pm

Doom 64 styled Pain Elemental

Post by Boondorl »

Is there an easy way to implement Doom 64 styled Pain Elementals via either ACS or Decorate? Not just the spawning functionality since A_DualPainAttack already exists, but also how blocked Lost Soul spawns, either from the Pain Elemental's attack or death, would deal massive damage to the player if close by.

Edit: So I found a working solution, but it's probably not the cleanest. Essentially, I'm having the game set a user variable on the Lost Soul to act as a flag. The moment is spawns, either via map placement or Pain Elemental, it sets the variable so that it doesn't explode on death. However, if this doesn't happen (which only occurs if the spawn is blocked from a Pain Elemental), it'll explode dealing massive damage to the player. Still wondering if there's an easier solution since this is kind of jank.
Post Reply

Return to “Scripting”