Forum

Trains and Platforms

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Trains and Platforms

Postby Ghost_Fang » Sun Jan 22, 2012 1:11 am

Is there anything in the QC that tells the player how to move with train and platforms etc, and can that be applied to other things such as spawned entities?
Ghost_Fang
 
Posts: 336
Joined: Thu Nov 12, 2009 4:37 am

Re: Trains and Platforms

Postby necros » Tue Jan 24, 2012 12:41 am

are you talking about when you're standing on a train, you move with it? that's handled completely by the engine.
necros
 
Posts: 77
Joined: Thu Dec 16, 2004 10:32 pm

Re: Trains and Platforms

Postby Ghost_Fang » Wed Jan 25, 2012 3:20 am

Yea that's what I was referring to, but isn't there something I can do in qc, a flag or something to make the engine think that the player should move with it?
Ghost_Fang
 
Posts: 336
Joined: Thu Nov 12, 2009 4:37 am

Re: Trains and Platforms

Postby frag.machine » Fri Jan 27, 2012 1:45 am

Ghost_Fang wrote:Yea that's what I was referring to, but isn't there something I can do in qc, a flag or something to make the engine think that the player should move with it?

Not sure if I understand what you want. Plats and trains already move any player (any entity actually) on top, and pushes other entities and crush them when blocked. That's what MOVETYPE_PUSH is about.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2090
Joined: Sat Nov 25, 2006 1:49 pm

Re: Trains and Platforms

Postby Ghost_Fang » Fri Jan 27, 2012 5:30 am

Ah, I figured. So theres no way of doing this with SOLID_BSP without MOVETYPE_PUSH without doing a ridiculous touch/think function? I have a some gyro objects that are BSP models and MOVETYPE_TOSS and I just wanted the player to "ride" some of them.
Ghost_Fang
 
Posts: 336
Joined: Thu Nov 12, 2009 4:37 am

Re: Trains and Platforms

Postby qbism » Fri Jan 27, 2012 6:03 pm

Ghost_Fang wrote:Ah, I figured. So theres no way of doing this with SOLID_BSP without MOVETYPE_PUSH without doing a ridiculous touch/think function? I have a some gyro objects that are BSP models and MOVETYPE_TOSS and I just wanted the player to "ride" some of them.

Might try MOVETYPE_FOLLOW, which some engines support. It sticks one entity to another. The ricochet spike tutorial somewhere around here is a good example of that. I don't know how this would interact w/ gyro.
User avatar
qbism
 
Posts: 1236
Joined: Thu Nov 04, 2004 5:51 am


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest