Block player only line flag.

Moderator: GZDoom Developers

Post Reply
User avatar
Enjay
 
 
Posts: 26991
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Block player only line flag.

Post by Enjay »

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?
User avatar
MartinHowe
Posts: 2068
Joined: Mon Aug 11, 2003 1:50 pm
Preferred Pronouns: He/Him
Location: East Suffolk (UK)

Post by MartinHowe »

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.
User avatar
Risen
Posts: 5263
Joined: Thu Jan 08, 2004 1:02 pm
Location: N44°30' W073°05'

Post by Risen »

Is there any reason for block all + block monsters? Perhaps the combination of these flags (or others) could specify a special case?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49230
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

No, it couldn't. It would break countless maps that accidentally use them together.
User avatar
DaLLeN
Posts: 24
Joined: Wed Apr 12, 2006 2:46 pm
Location: Boston
Contact:

Post by DaLLeN »

couldnt you use an invisble sprite marked block player? or do these scenary items block monsters too?
User avatar
Amuscaria
Posts: 6634
Joined: Mon Jul 26, 2004 12:59 pm
Location: Growing from mycelium near you.

Post by Amuscaria »

DaLLeN wrote:couldnt you use an invisble sprite marked block player? or do these scenary items block monsters too?


They block everything but hitscan attacks.
User avatar
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.

Post by Cutmanmike »

Enjay wrote:just mong up and down
...Am I the only one who laughed at that?
User avatar
Enjay
 
 
Posts: 26991
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Post by Enjay »

:)


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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49230
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

duplicate
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”