Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  

ACS: Resurrecting

Recommended Posts

I have an idea for part of a level that involves resurrecting a large number of corpses when the player enters an area.

My initial thought was to place the corpses around the area and use ACS to resurrect them, but I seem to recall this isn't possible (as the corpses are simply sprites, not actors). Another way I thought of was to spawn the necessary monsters and use ACS to kill them, then resurrect them when needed - but to me that seems a little messy.

I'm not entirely sure on the best way to do this, any suggestions?

Share this post

Link to post

I'm going to assume ZDoom, right?

You could make switchable decorations in DECORATE. Make them something like this:

Actor ImpCorpse : SwitchingDecoration 1337
      TROO M -1
      TROO ML 8
      TROO A 0 A_SpawnItem("DoomImp")
Then use Thing_Activate to resurrect them.

Share this post

Link to post

I prefer the kill/resurrect method, as it doesn't imply creating new thing types. Besides, those things would be genuine corpses, subject to any other resurrecting monster.

Share this post

Link to post

Yup, but that may precisely be a point against it, if you don't want an arch-vile to raise them before the script does.

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this