How to only allow monsters to be resurrected once?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Woolie Wool
Posts: 1713
Joined: Mon Dec 15, 2003 3:36 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Arch Linux, Windows 11
Graphics Processor: nVidia with Vulkan support
Contact:

How to only allow monsters to be resurrected once?

Post by Woolie Wool »

In Mutiny 2.0, the medic marines were seriously overpowered because while they only had pistols to defend themselves, they could resurrect marines, even each other, any number of times. I was wondering if it is possible to restrict the raising of enemies so that (a) an enemy cannot be resurrected more than once; if you kill him a second time, he stays dead forever, and (b) an enemy who has been gibbed cannot be resurrected at all. This would make encounters with medics much more fair.
User avatar
Sergeant_Mark_IV
Posts: 812
Joined: Wed Feb 02, 2011 12:44 pm
Location: United Communist Nazi Republic Dictactorship of Banana Land (Brazil)

Re: How to only allow monsters to be resurrected once?

Post by Sergeant_Mark_IV »

If this is a DECORATE question, make the monster receive an inventory item when killed. On his death state, make the animation detect if the monster has said inventory, then transfer him to another dead state that will take him flags such as MONSTER, SHOOTABLE, or stuff like that (or you can add a flag that prevents it from raising. I think there is a flag for this, isn't?). On the XDeath state, you can automatically make it have the flag on the first animation.
Locked

Return to “Editing (Archive)”