SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > SRB2 Discussion

Reply
 
Thread Tools Search this Thread
Old 04-09-2010   #1
Fawfulfan
The Tortured Planet guy
 
Fawfulfan's Avatar
Default Yet another linedef type question--503 and 504

The reason I keep asking about how these linedefs work is because I'm trying to fill in all the missing information in the SRB2 Wiki. But I've tried using Linedef Types 503 and 504, which are Accelerative and Displacement versions of Scroll Wall According to Linedef, and no setup I've tried makes these linedefs do anything. How do you make a linedef scroll acceleratively or through displacement?
__________________
Just another indie game developer...check out my website, Chapman Games!
Fawfulfan is offline   Reply With Quote
Old 04-09-2010   #2
SSNTails
What part of 'RETIRED' don't you understand?
 
SSNTails's Avatar
Default

Check TeamTNT's Boom documentation.
__________________
Roly Poly Putt & TraceRace - for Android, iOS, & PC - http://www.spaddlewit.com
Follow me on twitter: http://www.twitter.com/SSNTails
SSNTails is offline   Reply With Quote
Old 04-09-2010   #3
Fred
Retired
 
Fred's Avatar
Default

Well it's no wonder you can't get 503 to work, the code is broken.

In P_SpawnScrollers(), p.spec.c, starting in line 6253:
Code:
if (special == 515 || special == 512 || special == 522 || special == 532 || special == 504) // displacement scrollers
{
	special -= 2;
	control = (int)(sides[*l->sidenum].sector - sectors);
}
else if (special == 514 || special == 511 || special == 521 || special == 531 || special == 504) // accelerative scrollers
{
	special--;
	accel = 1;
	control = (int)(sides[*l->sidenum].sector - sectors);
}
Line type 504 is erroneously tested twice. Because the second test is after an else, only the first one is ever reached -- and 503 is not recognized at all.

Basically these linedefs should work exactly the same way as the corresponding floor scrollers do. Move the floor/ceiling height of the control linedef's front sector and the target linedefs should scroll accordingly. Displacement controls speed by velocity, Accelerative controls speed by acceleration.
Fred is offline   Reply With Quote
Old 04-09-2010   #4
Spazzo
Permanently Banned
Default

Quote:
Originally Posted by Neo Chaotikal View Post
Well it's no wonder you can't get 503 to work, the code is broken.

In P_SpawnScrollers(), p.spec.c, starting in line 6253:
Code:
if (special == 515 || special == 512 || special == 522 || special == 532 || special == 504) // displacement scrollers
{
	special -= 2;
	control = (int)(sides[*l->sidenum].sector - sectors);
}
else if (special == 514 || special == 511 || special == 521 || special == 531 || special == 504) // accelerative scrollers
{
	special--;
	accel = 1;
	control = (int)(sides[*l->sidenum].sector - sectors);
}
Line type 504 is erroneously tested twice. Because the second test is after an else, only the first one is ever reached -- and 503 is not recognized at all.

Basically these linedefs should work exactly the same way as the corresponding floor scrollers do. Move the floor/ceiling height of the control linedef's front sector and the target linedefs should scroll accordingly. Displacement controls speed by velocity, Accelerative controls speed by acceleration.

Nice catch! I just committed the fix now, so I guess you'll have to wait until v2.0.5 to test out LD503.
Spazzo is offline   Reply With Quote
Old 04-09-2010   #5
Fawfulfan
The Tortured Planet guy
 
Fawfulfan's Avatar
Default

Quote:
Originally Posted by SSNTails View Post
Check TeamTNT's Boom documentation.
I Google searched that, and can't find it.
__________________
Just another indie game developer...check out my website, Chapman Games!
Fawfulfan is offline   Reply With Quote
Old 04-11-2010   #6
SA2BMad
La la la la la la la la la!
 
SA2BMad's Avatar
Default

Quote:
Originally Posted by fawfulfan View Post
I Google searched that, and can't find it.
Then listen to Neo Chaotikal and Spazzo.
__________________
"Ow! Hey! Don't do that!
Ow! That hurt! Why would you do such a thing!? I'm not going to help you anymore!"
- Omochao
He's pretty-Pretty mean, that is.
SA2BMad is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixed Linedef type 6 (Disable Linedef Effect) and No Sonic/No Tails/No Knuckles flags Ricardo Bug Reports (2.0.X) 0 09-08-2010 09:17 PM
Fixed Linedef type 57 is broken Ricardo Bug Reports (2.0.X) 8 07-25-2010 02:03 AM
Linedef type 160 is broken Ricardo Bug Reports (2.0.X) 5 07-03-2010 01:15 PM
Question about Linedef Type 160 Fawfulfan SRB2 Discussion 14 07-03-2010 01:10 AM
Invalid Linedef Type 606 can light up the whole map. Snowyfox Bug Reports (2.0.X) 3 06-30-2010 03:43 PM


All times are GMT. The time now is 01:17 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.