Author Topic: Ramp Jumping  (Read 1963 times)

Offline themuffinman

  • Carpal Tunnel Member
  • ******
  • Posts: 1935
    • View Profile
  • Rated:
Ramp Jumping
« on: December 26, 2011, 01:35:22 AM »
I'm trying to find what enables/causes ramp jumping in Q2 so I can imitate it in a Q3 mod... but I can't find jack shit! I can only assume that it's pmove.c:PM_StepSlideMove since that alters velocity while going up steps so it might work for ramp jumping too. Anyone know?
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline haunted

  • Irrepressibly Profuse Member
  • *
  • Posts: 10149
  • I am hollywood.
    • View Profile
  • Rated:
Re: Ramp Jumping
« Reply #1 on: December 26, 2011, 06:37:48 AM »
The 2 variables would obviously be the angle of the ramp and your speed, but what part of the actual code I am clueless to. However, if I had a random guess, it would have something to do with once those 2 variables are fulfilled, associating q2's physics in regard to building momentum in the air with the actual incline(enabling them when when you're technically touching ground, but dependent on those 2 variables).

But yeah, completely useless in your search I'm sure.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline QwazyWabbit

  • Carpal Tunnel Member
  • ******
  • Posts: 1372
    • View Profile
  • Rated:
Re: Ramp Jumping
« Reply #2 on: December 26, 2011, 11:57:20 AM »
Take a look at PM_CatagorizePosition [sic], you'll find some velocity checking there. A comment by Zoid about ramp accel and an interesting debug output line commented out. Search for "Zoink!

It looks to me like ramping just reduces friction and gravity adds to velocity and the resultant velocity vector is greater as a result.

Uncomment that Zoink line and see how velocity changes over time on the level and on the ramp.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline themuffinman

  • Carpal Tunnel Member
  • ******
  • Posts: 1935
    • View Profile
  • Rated:
Re: Ramp Jumping
« Reply #3 on: December 27, 2011, 01:40:30 PM »
Yeah I'll give that a look, thanks. I can't find zoink anywhere in the code though. It looks like PM_CatagorizePosition is a similar function to Q3's PM_GroundTrace and a couple of others and that section you pointed out there isn't in the Q3 code.

Ramp jumping works on more than just ramps though. Stuff like double-jumping off of boxes in q2dm1 for instance is actually a combination of DJ and ramp jumping. At least that is how it works in QL. And ramp jumping off of ramps seems to reflect horizontal velocity into vertical velocity. Man I'm confused right now. I've looked at Warsaw code but those pieces of code are practically the same as in Q2, and the Q4 code is obviously in C++ and thus confuses me even more. I'm going to give that theory of yours a thought QwazyWabbit. Thanks.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

 

El Box de Shoutamente

Last 10 Shouts:

Costigan_Q2

November 11, 2024, 06:41:06 AM
"Stay cozy folks.

Everything is gonna be fine."

There'll be no excuses for having TDS after January 20th, there'll be no excuses AT ALL!!!
 

|iR|Focalor

November 06, 2024, 03:28:50 AM
 

RailWolf

November 05, 2024, 03:13:44 PM
Nice :)

Tom Servo

November 04, 2024, 05:05:24 PM
The Joe Rogan Experience episode 223 that dropped a couple hours ago with Musk, they're talking about Quake lol.

Costigan_Q2

November 04, 2024, 03:37:55 PM
Stay cozy folks.

Everything is gonna be fine.
 

|iR|Focalor

October 31, 2024, 08:56:37 PM

Costigan_Q2

October 17, 2024, 06:31:53 PM
Not activated your account yet?

Activate it now! join in the fun!

Tom Servo

October 11, 2024, 03:35:36 PM
HAHAHAHAHAHA
 

|iR|Focalor

October 10, 2024, 12:19:41 PM
I don't worship the devil. Jesus is Lord, friend. He died for your sins. He will forgive you if you just ask.
 

rikwad

October 09, 2024, 07:57:21 PM
Sorry, I couldn't resist my inner asshole.

Show 50 latest
Welcome, Guest. Please login or register.
November 22, 2024, 01:59:19 AM

Login with username, password and session length