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

scripting impassable line defs in zdoom

Recommended Posts

Can anyone tell me what script functions/commands i should use to alter a linedefs blocking properties during a game in Zdoom? There are certain linedefs that will start out as impassable but i need to change them to passable as the player progresses (and vice versa). I did see the answer to this question in a thread along time ago, but can't seem to find it using search :)

Share this post


Link to post

This can also be useful:

setlineblocking (lineid#, Block_Everything);

This blocks projectiles too, from weapons and monsters.

Share this post


Link to post
Biffy said:

This can also be useful:

setlineblocking (lineid#, Block_Everything);

This blocks projectiles too, from weapons and monsters.


Didn't know that. Could get very useful >:)

Share this post


Link to post

You may also be interested to know you can set a line's flags to "block all" in the editor too if Zdoom is the port you are using.

Dunno how many editors support it. In DeePsea you just have to click a button but it looks like adding 8000 to the raw flags value does the job so that might be useful for other people.

Share this post


Link to post

You can also use:

setlineblocking (lineid, on/off);

instead of 0 and 1 (if its any easier), and also:

setlinemonsterblocking (lineid, on/off);

if you need to block monsters but not players.

Share this post


Link to post
Ultimate DooMer said:

setlinemonsterblocking (lineid, on/off);

if you need to block monsters but not players.


heh. Ought to be good for some Demon teasing :)

Share this post


Link to post
Shaviro said:

Didn't know that. Could get very useful >:)

Especially useful when you have shatter-proof glass. If you don't use the Block_Everything special, then the player and enemies will be blocked by the glass but bullets, fireballs, etc. will pass through. Sorta unrealistic.

Share this post


Link to post

what about those that block the player but not monsters?

Share this post


Link to post
ravage said:

what about those that block the player but not monsters?


hey that was my question! but i had this idea for spawning monters behind some creepy vines, but the vines must block players and not monsters

Share this post


Link to post

if you are into scripting you can write a script in passing line defs to reject the players whenever they want to pass the lines.

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
×