Page 1 of 3

A neat editing trick I accidentally discovered

Posted: Sun Apr 03, 2005 5:35 pm
by Graf Zahl
Mark a sector with Doom 1's 'end level' sector special and then add 'enable wind'. The wind flag will disable the damage of the end level flag but the special handling that prevents the player from dying still works. You will have a sector where you can't die!

Posted: Sun Apr 03, 2005 6:01 pm
by Vader
This might be pretty useful :)
You could build a kind of holy sanctuary where you´re secure from the demons, for example!

Posted: Sun Apr 03, 2005 6:30 pm
by Kirby
that's pretty awesome! I might just be able to use that...

Posted: Sun Apr 03, 2005 6:37 pm
by Medricel
Wow, very neat... Too bad you get left off with 1 hitpoint, though :p
Oh well, that's why medkits were invented!

Posted: Sun Apr 03, 2005 6:38 pm
by killingblair
Yeah! Like a holy river or something!

Posted: Sun Apr 03, 2005 8:20 pm
by fuzzyfireball 1
heh this would be good for the map my friend made!

the llama demons land! their a holy water fountien heh :P

good find! :P

Posted: Mon Apr 04, 2005 1:19 am
by Cutmanmike
Interesting... How the hell did you manage find that?

Posted: Mon Apr 04, 2005 1:55 am
by Chris
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.

Posted: Mon Apr 04, 2005 2:59 am
by Graf Zahl
cutmanmike wrote:Interesting... How the hell did you manage find that?

I was looking at the dying code when I thought about Boom's bit mask implementation which disables any normal damage types when one of the bit flags is set. So I just modified E2M8 to test it and voilà - the Cyberdemon was unable to kill me!


@Chris: No, it's not a bug. The way it behaves is fully intentional - except for the not being able to die part. The bit flags disable the damage types intentionally. Although, in Boom they completely disable the normal sector special so all ZDoom does is adding an additional feature. ;)

Posted: Mon Apr 04, 2005 4:54 am
by Lexus Alyus
This is not a bug, this is a very useful trick ;).

:twisted:

Posted: Mon Apr 04, 2005 6:00 am
by Cutmanmike
If it aint broke, don't fix it!

Re: A neat editing trick I accidentally discovered

Posted: Mon Apr 04, 2005 9:17 am
by Anakin S.
Graf Zahl wrote:Mark a sector with Doom 1's 'end level' sector special and then add 'enable wind'. The wind flag will disable the damage of the end level flag but the special handling that prevents the player from dying still works. You will have a sector where you can't die!
But why the 'enable wind' flag?

Posted: Mon Apr 04, 2005 9:48 am
by Graf Zahl
You can also use the 'enable friction' flag. It's just that the wind flag has the least impact on the game. Any of the Boom bitflag values will achieve this effect.

Posted: Mon Apr 04, 2005 5:15 pm
by Cutmanmike
I'm wondering what would happen if the player got MDKed or ACS kills him..

Posted: Mon Apr 04, 2005 5:41 pm
by Graf Zahl
Impossible. The check is done in the damaging function. The player can't die in such a sector.