A neat editing trick I accidentally discovered

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.
User avatar
insertwackynamehere
Posts: 76
Joined: Wed Mar 10, 2004 8:18 pm

Post by insertwackynamehere »

what of this sector is a teleporter and someone teleports in? No telefrags, so what happens? Are they like stuck to each other?
User avatar
David Ferstat
Posts: 1113
Joined: Wed Jul 16, 2003 8:53 am
Location: Perth, Western Australia
Contact:

Post by David Ferstat »

So try it and find out. :)
User avatar
EarthQuake
Posts: 82
Joined: Fri Dec 19, 2003 9:52 pm

Post by EarthQuake »

I cannot thank you enough Graf. For months have I been trying to find a way to make players invincible in my ZDaemon rocket jumping wad. ZDaemon's ACS support is almost non-existant, and it's dehacked support is somewhat nullified when online, so any attempts at keeping the player alive just failed.

Thanks to no end for discovering this!
User avatar
DoomRater
Posts: 8270
Joined: Wed Jul 28, 2004 8:21 am
Preferred Pronouns: He/Him
Location: WATR HQ
Contact:

Post by DoomRater »

Chris wrote:Am I the only one that thinks this is a bug that should be fixed? Imagine a windy cliff with a bunch of debris being blown at you, and the level ends when you die/go unconscious.
You could achieve the effect by checking the player for a health of 1 in ACS.

EDIT: Whoa, I hope I didn't bump something too badly. (didn't look first)

EDIT 2: Tried getting telefragged- no, you don't die from that either. You end up stuck inside the other monster until you kill it though, pretty much the same effect as if you were to spawn on top of another player in Legacy.
User avatar
DoomRater
Posts: 8270
Joined: Wed Jul 28, 2004 8:21 am
Preferred Pronouns: He/Him
Location: WATR HQ
Contact:

Re: A neat editing trick I accidentally discovered

Post by DoomRater »

Just to A_VileRaise this topic from the ashes- would it be possible to isolate the code that causes this interesting behavior and apply it to actors on a case by case basis with a new flag? +DONTKILL or something of that nature...
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: A neat editing trick I accidentally discovered

Post by Graf Zahl »

There's already the NODAMAGE flag that allows to hurt an actor without it taking any damage. That should be enough.
User avatar
Enjay
 
 
Posts: 27129
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: A neat editing trick I accidentally discovered

Post by Enjay »

No damage is, of course, slightly different. With it, you can't take an enemy down to almost zero HP but not kill it.

However, as an end user solution, it might be possible to set up an enemy to have a check for it's own health in DECORATE, then activate the nodamage flag once it gets to a certain level??? I can see cases of extreme damage getting around that though.
User avatar
Rachael
Posts: 13960
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: A neat editing trick I accidentally discovered

Post by Rachael »

You can also modify the Death state. You can completely prevent a death by just jumping it into the Pain state, unless some sort of inventory item exists in the creature's inventory. Once it's there, the death state would occur as normal.
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Re: A neat editing trick I accidentally discovered

Post by TheDarkArchon »

SoulPriestess wrote:You can also modify the Death state. You can completely prevent a death by just jumping it into the Pain state, unless some sort of inventory item exists in the creature's inventory. Once it's there, the death state would occur as normal.
That will just turn them into ghosts. Use RaiseThing(0) in the death state
User avatar
Rachael
Posts: 13960
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: A neat editing trick I accidentally discovered

Post by Rachael »

Thank you, TDA. Something I had not tested, nor considered. :)
User avatar
Tormentor667
Posts: 13556
Joined: Wed Jul 16, 2003 3:52 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Location: Germany
Contact:

Re: A neat editing trick I accidentally discovered

Post by Tormentor667 »

Heh, that's neat :) Will this stay as a "feature" in future versions? It would be sad to use it in upcoming maps if future ZDoom versions don't support this anymore.
NiGHTMARE
Posts: 3463
Joined: Sat Jul 19, 2003 8:39 am

Re: A neat editing trick I accidentally discovered

Post by NiGHTMARE »

Tormentor667 wrote:Heh, that's neat :) Will this stay as a "feature" in future versions? It would be sad to use it in upcoming maps if future ZDoom versions don't support this anymore.
Check the date of the original post; if it's been known about for over three years, I don't think it's in any danger of disappearing :).
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: A neat editing trick I accidentally discovered

Post by Graf Zahl »

This can't disappear because it would change the way the Boom sector flags work. Admittedly it is in fact a bug - but one of the kind that can't be fixed for compatibility.
User avatar
Risen
Posts: 5263
Joined: Thu Jan 08, 2004 1:02 pm
Location: N44°30' W073°05'

Re: A neat editing trick I accidentally discovered

Post by Risen »

Enjay wrote:No damage is, of course, slightly different. With it, you can't take an enemy down to almost zero HP but not kill it.

However, as an end user solution, it might be possible to set up an enemy to have a check for it's own health in DECORATE, then activate the nodamage flag once it gets to a certain level??? I can see cases of extreme damage getting around that though.
Better for some situations: once you activate the NODAMAGE flag, explicitly set the target's health to 1. It's still not exactly the same, because it doesn't cover the case of a monster that should have only been damaged enough to have half health before NODAMAGE was shut off... but it does solve the high-damage kill. You could get really fancy and spawn a secondary, invisible object and use it to keep track of the amount of damage that should be done to the target, and then apply that amount of damage (down to a minimum target health of 1) when the NODAMAGE flag is removed.
User avatar
DoomRater
Posts: 8270
Joined: Wed Jul 28, 2004 8:21 am
Preferred Pronouns: He/Him
Location: WATR HQ
Contact:

Re: A neat editing trick I accidentally discovered

Post by DoomRater »

Yeah, the reason this behavior would be awesome is so that I could have enemy boxers that can be knocked out without actually killing them, and would also allow for a boxing mod that wouldn't be dependent on a map (though I suppose in practice that doesn't make sense). It's all stuff easily emulated through other means. Actually having the player boxers kill each other in a normal deathmatch map would make sense, too.
Locked

Return to “Editing (Archive)”