Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Neon

Block Player?

Recommended Posts

So there's a nice linedef option that allows us to block monsters from crossing linedefs. Is there a way to block a player from crossing a linedef while still allowing monsters to cross it?

My editor is doombuilder, ZDoom(Doom in hexen format).

Share this post


Link to post

Well, when asking stuff like this it's helpful to say with what engine(s) you're working, so that people don't have to spend time browsing your posts trying to find out or waste time asking, and also so they don't give you useless advice.

Normally, you can't block players but let monsters pass with a linedef. From what I read elsewhere, you seem to be making a WAD that needs ZDoom, though, and it can do it in a script.

Share this post


Link to post

ZDoom can do it directly in the map. The flag bit you need to set is 0x4000 (16384) If your editor config doesn't already have it you can add it yourself.

Share this post


Link to post

Thanks guys. I'm trying to go the script route, but I'm running into a problem. Hopefully somebody can figure this out.

Here is my script, trying to make linedef 271 block players:


---------------------------------

Script 2 OPEN
{
SETLINEBLOCKING(271, BLOCK_PLAYERS);
{
SETLINEBLOCKING(271, 1);
}
}

---------------------------------

Here is the error log when I try to compile:

---------------------------------

Line 2009 in file "script.acs" ...
script.acs:2009: block_players : Identifier has not been declared.
> SETLINEBLOCKING(271, BLOCK_PLAYERS);
> ^

The ACS compiler did not compile your script.

---------------------------------

I'm using the Doom Builder Map Script.

Share this post


Link to post

While learning to script should eventually be of use to you, you'll probably find it easier to open Doom Builder's ZDoom_DoomHexen.cfg and add 16384 = "Block Player"; to the linedefflags list.

Share this post


Link to post

Ok, I have the block player working now, using the added linedefflag. Thanks again.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×