Advanced Search

Author Topic: Wall climbing/Gravity adjustment  (Read 411 times)

0 Members and 1 Guest are viewing this topic.

November 14, 2020, 10:02:26 PM
Read 411 times

Offline Hornetzero

  • Standard Member
  • Date Registered: November 14, 2020, 09:55:51 PM

    • View Profile
Wall climbing/Gravity adjustment
« on: November 14, 2020, 10:02:26 PM »
Hey everyone,
                      I'm seeking a mod by Cutmanmike that allowed players to climb walls, since its link has been dead for sometime and I can't find mirror for it on the internet.

What I need it for? I'm trying to implement a wall climbing function similar to the Aliens in Alien vs Predator:

There is the camera trickery required and the manipulation of gravity.

I thought about giving the player the +NOGRAVITY flag, and then adding a velocity on every tick, perpendicular to the "floor" the player's currently on. For floors and ceilings, this is usually straight down/up. I don't know how to find the angle of a slope in the level struct. For walls, it's perpendicular to the Line that represents the wall.

I was hoping Mike's wall climbing example could provide some insight on how one can call that function with the direction of the line as the axis.

Thank you