Is there a way to...(subway cars)

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Caleb26
Posts: 200
Joined: Sun Feb 07, 2010 4:53 am

Is there a way to...(subway cars)

Post by Caleb26 »

Is there a way to create a moving subway car like in Duke3d? I don't want to create a subway car that moves from point a to b - stops then moves to point c and goes back to a - I don't think it's possible. What I'm trying to do is to make a subway car that moves only from a to b and stops.
Thanks in advance.
Last edited by wildweasel on Fri Mar 07, 2014 11:26 am, edited 1 time in total.
Reason: took the liberty of making your title more descriptive
User avatar
Skunk
Posts: 1189
Joined: Tue Jan 18, 2005 1:04 am
Contact:

Re: Is there a way to...(subway cars)

Post by Skunk »

While I don't believe so, I've recently seen 3D floor Polyobjects in a Sonic themed wad being used as platforms so I suppose it could be done; however I doubt the results will be acceptable
User avatar
Kappes Buur
 
 
Posts: 4177
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: Is there a way to...(subway cars)

Post by Kappes Buur »

Check out the titlemap of Rex's PARANOID, which may give you an idea.
User avatar
cocka
Posts: 1520
Joined: Sat Jul 02, 2011 7:21 am
Location: Hungary

Re: Is there a way to...(subway cars)

Post by cocka »

create a moving subway car
The answer is simple. No way! Why? Because doom engine doesn't support horizontally moving sectors and never will.

Of course you can make it as if it was a horizontally moving platform (it looks rather a grating than a platform) with the help of polyobjects but doing so is quite a bit a pain in the ass.
Blue Shadow
Posts: 5043
Joined: Sun Nov 14, 2010 12:59 am

Re: Is there a way to...(subway cars)

Post by Blue Shadow »

cocka wrote:The answer is simple. No way! Why? Because doom engine doesn't support horizontally moving sectors and never will.
That's a bold statement, considering the things source ports developers were able to accomplish with the Doom engine over the years.
User avatar
edward850
Posts: 5886
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: Is there a way to...(subway cars)

Post by edward850 »

That still a relatively realistic answer. The BSP is inherintly static, and while it is partly recompiled for polyobjects, the floors themselves stay the same. A horizontally moving platform would require both recompiling and some sort of indication that it moved to all attached thinkers standing on it, and even unattached thinkers that may end up in its moving path. Even polyobjects aren't immune from this, as one fast enough will actually just pass through you (and you'll end up inside it), rather then push you along.
User avatar
Skunk
Posts: 1189
Joined: Tue Jan 18, 2005 1:04 am
Contact:

Re: Is there a way to...(subway cars)

Post by Skunk »

What about voxel objects? Possible with those at all?
User avatar
edward850
Posts: 5886
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: Is there a way to...(subway cars)

Post by edward850 »

Seeing as voxels have nothing to do with collisions at all, of course not. ;)
Things treat XY and Z collisions separately, and also have no ability to track what they have collided with (other then the fact that they are sitting on something, either another thing or a floor). They pretty much have no method to carry other things ontop of them (they don't know if anything is even sitting on them). Now granted, you could track this in ACS and apply momentum (or just offset X/Y positioning) to the above object, but this introduces two anomalies:
  • Sitting on the edge of something will make you slide off as your centre technically isn't on anything. Accountable for, but not bullet proof.
  • Setting object velocities requires some rather precised mathematics, otherwise you run the risk of over/undershooting to objects movement.
  • X/Y offsets aren't interpolation friendly, and considering most of your expected audience is going to be playing with cl_capfps off, that's pretty bad.
  • Movement prediction in netgames cannot track either of these at all, resulting in unreliable movement at anything beyond a couple of frames in latency.
User avatar
zrrion the insect
Posts: 2432
Joined: Thu Jun 25, 2009 1:58 pm
Location: Time Station 1: Moon of Glendale

Re: Is there a way to...(subway cars)

Post by zrrion the insect »

I've seen this sort of thing done before. Let me see if I can find the wad.
EDIT: I don't know who made this, but it was not me:
cartest.7z
(12.11 KiB) Downloaded 66 times
Last edited by zrrion the insect on Mon Mar 10, 2014 12:25 am, edited 1 time in total.
User avatar
The Zombie Killer
Posts: 1528
Joined: Thu Jul 14, 2011 12:06 am
Location: Gold Coast, Queensland, Australia

Re: Is there a way to...(subway cars)

Post by The Zombie Killer »

edward850 wrote:A horizontally moving platform would require both recompiling and some sort of indication that it moved to all attached thinkers standing on it
How difficult would you say this would be to implement? I'm assuming it's very difficult otherwise it would've been done already.
User avatar
cocka
Posts: 1520
Joined: Sat Jul 02, 2011 7:21 am
Location: Hungary

Re: Is there a way to...(subway cars)

Post by cocka »

As far as I remember in mapedit for build engine games you should define a vector along that you want to move your sector. But I don't know anything about the implementation.
User avatar
Sgt. Shivers
Posts: 1743
Joined: Fri Jun 22, 2012 5:39 am

Re: Is there a way to...(subway cars)

Post by Sgt. Shivers »

Maybe try to use poly objects or something.
EDIT: You could also fake it by teleporting the player into an area mimicing the subway car moving and then back to the next stop.
User avatar
Kappes Buur
 
 
Posts: 4177
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: Is there a way to...(subway cars)

Post by Kappes Buur »

Besides Michael Niggel's cartest, which zrrion the insect already linked to, there is also Csabo's
movingbus example.

Depending on the view point of the player, there is also Enjay's runaway train, the effect of which
has been incorporated into various maps.
User avatar
GooberMan
Posts: 1336
Joined: Fri Aug 08, 2003 12:57 am
Location: Helsinki, Finland

Re: Is there a way to...(subway cars)

Post by GooberMan »

*ahem*

Perfectly possible with the right poly object/3D floor/scripting setup.
User avatar
Enjay
 
 
Posts: 26979
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Is there a way to...(subway cars)

Post by Enjay »

GooberMan wrote:*ahem*
Heh, I just spent ages looking for that, not noticing that you'd already posted it. :lol:

Most of what has been posted in the thread are just ways of faking moving vehicle effects with limited interaction possibilities. GooberMan's example is probably the best chance of making something that carries the player - provided you can follow the ACS.
Locked

Return to “Editing (Archive)”