Block player only line flag.
Moderator: GZDoom Developers
Block player only line flag.
I think the line flags may all be used up, but this is something I've wanted for years and with the increase in 3D architecture in levels, it's become more important - with both true 3D and fake 3D bridges and other constructs.
I would like to be able to set a line that blocks players but not enemies.
Why? Imagine an example construct - a bridge over a chasm - there are cacodemons on either side. The player has to cross the bridge. It is inappropriate and undesirable for the player to be able to walk/fall off the side of the bridge, so it is marked as impassable. However, this prevents the cacos flying over/under the bridge. So they fly to the bridge then either turn around or just mong up and down until they are shot. A caco placed on the bridge, similarly, cannot fly off the bridge and is trapped within its boundaries.
There are work arounds - eg invisible sectors or floating bridge objects at the side of the bridge preventing the player crossing. However, these will also block shots and possibly remove the entire threat posed by the cacodemons (in the above example).
Can it be done?
I would like to be able to set a line that blocks players but not enemies.
Why? Imagine an example construct - a bridge over a chasm - there are cacodemons on either side. The player has to cross the bridge. It is inappropriate and undesirable for the player to be able to walk/fall off the side of the bridge, so it is marked as impassable. However, this prevents the cacos flying over/under the bridge. So they fly to the bridge then either turn around or just mong up and down until they are shot. A caco placed on the bridge, similarly, cannot fly off the bridge and is trapped within its boundaries.
There are work arounds - eg invisible sectors or floating bridge objects at the side of the bridge preventing the player crossing. However, these will also block shots and possibly remove the entire threat posed by the cacodemons (in the above example).
Can it be done?
- MartinHowe
- Posts: 2068
- Joined: Mon Aug 11, 2003 1:50 pm
- Preferred Pronouns: He/Him
- Location: East Suffolk (UK)
What I would kill for is a "block non-flying monsters and players" flag. Since doom-units and real-world dimension are only approximately compatible, in Doom you need a fence that looks 5ft high in the game to do the job that a fence 2.5ft high would do in the real world (i.e., stop players from accidentally walking over it).
As for implementing it with all the flags already in use, it would have to be some property maintained in the game, perhaps a special that is executed on startup or that can be applied via a lineid.
As for implementing it with all the flags already in use, it would have to be some property maintained in the game, perhaps a special that is executed on startup or that can be applied via a lineid.
- Cutmanmike
- Posts: 11353
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
Re: Block player only line flag.
...Am I the only one who laughed at that?Enjay wrote:just mong up and down

I came across another situation where I needed this a few days ago. I have an area outside that the player moves around in. It is bound by a wall with a ditch beyond but at certain points the player can get over the wall and into the ditch to find a secret. If they really try they can strafe-run across the ditch to a place where they really shouldn't go. However, in the far distance, some cacodemons spawn and move towards the player. The cacos need to be able to cross the large expanse of ground and eventually get to the player by flying over the ditch and the wall. I know I could move things around and whatever, but the way it looks just now is exactly as I want it and changes could spoil that. Blocking the far side of the ditch with a "block players" line would be ideal as it would stop the player ending up in the wrong place but let the cacos in.