Icon of Sin / Baphomet
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 > How does Ceiling Alignment to Line work?
 
Author
All times are GMT. The time now is 17:08. Post New Thread    Post A Reply
KennyJC
Member


Posts: 321
Registered: 11-02


I read this:

http://zdoom.org/w/index.php?title=Line_AlignCeiling

But am still none-the-wiser to how it's actually implemented.

I would need someone to spell it out or be able to see it in a WAD to know how it's done.

Old Post 06-02-08 02:56 #
KennyJC is offline Profile || Blog || PM || Email || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
Kirby
Member


Posts: 501
Registered: 10-04


To make this function work, you need to also use ZDoom's Line_SetIdentification as well. Basically, use the SetID function to give a tag to a specific line. Then, using ACS, write out the format given using the LineID you created and then put 0 to align in front of the line or 1 to align behind it.

Here's an example

code:
script 1 OPEN { Line_AlignCeiling(8,0); }


Whereas 8 is the tagged line and the ceiling will be aligned to the front of the line.

Old Post 06-02-08 05:32 #
Kirby is offline Profile || Blog || PM || Email || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
KennyJC
Member


Posts: 321
Registered: 11-02


OK, so let's assume I'm trying to align a teleporter ceiling... what I do is make one of the lines of the teleporter a LineIdentification function. Then I Set LineID to 8... copy and paste the code you supplied into the ACS.

Now where I get fuzzy is with the ceiling alignment line. Does that go in a standalone sector outside the map? I saw an example of the align ceiling function in another map, but I could not find the align ceiling function anywhere in the map... just the LineIdent one.

Old Post 06-02-08 18:45 #
KennyJC is offline Profile || Blog || PM || Email || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
AgentSpork
Agent Spork is a resourceful agent for the Country


Posts: 1693
Registered: 09-02


Why not just use Sector_SetCeilingPanning? Seems much simpler to me. If I wanted to change a ceiling's texture alignment by 32 units horizontally and vertically, I could just create something like this:

code:
Script 1 OPEN { Sector_SetCeilingPanning(1,32,0,32,0); }

Old Post 06-02-08 19:22 #
AgentSpork is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
KennyJC
Member


Posts: 321
Registered: 11-02



AgentSpork said:
Why not just use Sector_SetCeilingPanning? Seems much simpler to me. If I wanted to change a ceiling's texture alignment by 32 units horizontally and vertically, I could just create something like this:

code:
Script 1 OPEN { Sector_SetCeilingPanning(1,32,0,32,0); }



Well that seems straight forward, but just like my attempts with the previous method, the ceiling alignment isn't budging.

I made one of the linedefs of the sector the SetCeilingPanning, and tagged it to sector 8. I just left it on "player walks over", but also tried "player presses use" (made no difference) I tagged the sector as 8 also. The sector even lights up when you highlight the linedef. I then have the following code for the map:

code:
#include "zcommon.acs" script 1 OPEN { Sector_SetCeilingPanning(8,32,0,32,0); }


Since nothing happened, I then filled in the values on the lindef screen for 8,32,0,32,0 to confirm what was in the code, but this did nothing when playtesting either.

What am I missing?

Old Post 06-02-08 20:53 #
KennyJC is offline Profile || Blog || PM || Email || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
alien8
Mini-Member


Posts: 67
Registered: 05-08


You don't have to set any linedef specials for it to work - just set the sector tag and write the script.

Edit: If it still doesn't want to work for you, I can send you a map I've got where I messed around with some ZDoom specific scripting - Ceiling Panning and Rotation included.

Last edited by alien8 on 06-02-08 at 21:38

Old Post 06-02-08 21:33 #
alien8 is offline Profile || Blog || PM || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
All times are GMT. The time now is 17:08. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > How does Ceiling Alignment to Line work?

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