Russell_P Posted September 16, 2002 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 :) 0 Share this post Link to post
Shaviro Posted September 16, 2002 setlineblocking(line, block); instead of block, write 1 for impassable or 0 for passable. 0 Share this post Link to post
Biffy Posted September 16, 2002 This can also be useful: setlineblocking (lineid#, Block_Everything); This blocks projectiles too, from weapons and monsters. 0 Share this post Link to post
Shaviro Posted September 16, 2002 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 >:) 0 Share this post Link to post
Enjay Posted September 16, 2002 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. 0 Share this post Link to post
The Ultimate DooMer Posted September 16, 2002 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. 0 Share this post Link to post
Shaviro Posted September 16, 2002 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 :) 0 Share this post Link to post
ReX Posted September 16, 2002 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. 0 Share this post Link to post
Fletcher` Posted September 16, 2002 what about those that block the player but not monsters? 0 Share this post Link to post
Use Posted September 16, 2002 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 0 Share this post Link to post
Sphagne Posted September 17, 2002 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. 0 Share this post Link to post