Demon
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > scripting impassable line defs in zdoom
 
Author
All times are GMT. The time now is 20:40. Post New Thread    Post A Reply
Russell_P
www.duellist.net


Posts: 690
Registered: 04-02


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 :)

__________________
Doom Raider, Null Space and other such nonsense.

Old Post 09-16-02 16:36 #
Russell_P is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Shaviro
Team Future Chief


Posts: 10600
Registered: 06-00


setlineblocking(line, block);

instead of block, write 1 for impassable or 0 for passable.

__________________
Ybbx sbe hcqngrf fbba.

Old Post 09-16-02 16:44 #
Shaviro is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Russell_P
www.duellist.net


Posts: 690
Registered: 04-02


It worked. Thanks :)

__________________
Doom Raider, Null Space and other such nonsense.

Old Post 09-16-02 17:13 #
Russell_P is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Biffy
Forum Regular


Posts: 894
Registered: 02-01


This can also be useful:

setlineblocking (lineid#, Block_Everything);

This blocks projectiles too, from weapons and monsters.

Old Post 09-16-02 17:29 #
Biffy is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Shaviro
Team Future Chief


Posts: 10600
Registered: 06-00



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 >:)

__________________
Ybbx sbe hcqngrf fbba.

Old Post 09-16-02 17:39 #
Shaviro is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Enjay
ASK ME ABOUT FOOTBALL / STEAM / DEAD CELEBRITIES / THE BLAIR WITCH PROJECT


Posts: 5536
Registered: 12-00


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.

__________________
Meek

Old Post 09-16-02 18:24 #
Enjay is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
The Ultimate DooMer
(former) /newstuff Chronicler


Posts: 4435
Registered: 03-02


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.

Old Post 09-16-02 19:19 #
The Ultimate DooMer is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Shaviro
Team Future Chief


Posts: 10600
Registered: 06-00



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 :)

__________________
Ybbx sbe hcqngrf fbba.

Old Post 09-16-02 19:27 #
Shaviro is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
ReX
Senior Member


Posts: 1632
Registered: 05-00



Maonth 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.

__________________
We hate what we fear

Old Post 09-16-02 21:10 #
ReX is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
rf`
Dr. Nosign


Posts: 7759
Registered: 11-01


what about those that block the player but not monsters?

__________________
Released wads and other doom crap

Old Post 09-16-02 22:11 #
rf` is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Use3D
Forum Legend


Posts: 4367
Registered: 04-02



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

__________________
Have you ever seen the sun cringe and wither as it becomes a memory in a martyr's mind; they call it glory, well I call it crime.

Old Post 09-16-02 22:36 #
Use3D is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Sphagne
Member


Posts: 368
Registered: 06-02


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.

Old Post 09-17-02 03:36 #
Sphagne is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 20:40. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > scripting impassable line defs in zdoom

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory