[ZScript] Ledge climbing
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.
Got a cool project idea but nothing else? Put it in the project ideas thread instead!
Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.
Please read the full rules for more details.
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.
Got a cool project idea but nothing else? Put it in the project ideas thread instead!
Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.
Please read the full rules for more details.
-
- Posts: 66
- Joined: Wed Oct 04, 2017 2:00 pm
[ZScript] Ledge climbing
This mod allows the player to climb ledges by holding 'Jump'. It works using a player class derived from DoomPlayer,
so it will take some slight changes if you want to use it in Hexen, for example.
Download
-
- Posts: 185
- Joined: Tue May 02, 2017 3:54 pm
Re: [ZScript] Ledge climbing
This is really cool, and seems to work pretty well.
One thing that should probably be fixed is that it doesn't check if there is enough room to climb up.
One thing that should probably be fixed is that it doesn't check if there is enough room to climb up.
-
- Posts: 13474
- Joined: Wed Jul 16, 2003 3:52 am
Re: [ZScript] Ledge climbing
Prince of Persia Doom anyone? 

-
- Posts: 9695
- Joined: Sun Jan 04, 2004 5:37 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Debian Bullseye
- Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Re: [ZScript] Ledge climbing
On the other hand, it might be better that it doesn't - sometimes you might want to just hang onto a ledge to delay a fall until something's passed by, or the platform itself could be gradually lowering and you just need to hang on for a second or so before there's enough room to get on.Rip and Tear wrote:One thing that should probably be fixed is that it doesn't check if there is enough room to climb up.
edit: aww man this is sooo much cleaner than the kludgefest I'm using right now!
-
- Admin
- Posts: 6083
- Joined: Thu Feb 26, 2004 3:02 pm
- Preferred Pronouns: He/Him
Re: [ZScript] Ledge climbing
Mind if I take this and make some adjustments, with credit of course? I was trying to do something like this myself, and failing miserably.


-
- Posts: 66
- Joined: Wed Oct 04, 2017 2:00 pm
Re: [ZScript] Ledge climbing
That's true, though I should probably add a special case for that, or something. As it is, the player bounces up and down when they get to the top.Matt wrote:On the other hand, it might be better that it doesn't - sometimes you might want to just hang onto a ledge to delay a fall until something's passed by, or the platform itself could be gradually lowering and you just need to hang on for a second or so before there's enough room to get on.
Sure.Caligari87 wrote:Mind if I take this and make some adjustments, with credit of course? I was trying to do something like this myself, and failing miserably.
-
- Posts: 66
- Joined: Wed Oct 04, 2017 2:00 pm
Re: [ZScript] Ledge climbing
New version. Now it works w/ 3D floors, and when there's not enough clearance to get on top of a ledge. The player will automatically crouch when they reach the top of a ledge, in case they need to fit into a small space. Or, if there still isn't enough room, they'll just hang on, until the player lets go.
-
-
- Posts: 17368
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
Re: [ZScript] Ledge climbing
This feels almost like Dying Light's ledge climbing mechanics. Good job!
-
- Posts: 77
- Joined: Fri Sep 22, 2017 11:56 am
Re: [ZScript] Ledge climbing
I'm kind of a noob at ACS/Zscript how do I make it so the script works with my pre made playercharacter?
-
- Posts: 66
- Joined: Wed Oct 04, 2017 2:00 pm
Re: [ZScript] Ledge climbing
I'm not sure exactly what you're trying to do, so it's hard to give precise instructions. The main thing is to find the file zscript/climbing/climbing_player.zc. The first line should say
Change "DoomPlayer" to the name of your player class. If that doesn't work, send me your PK3 so I can see what's wrong.
Code: Select all
class ClimbingPlayer : DoomPlayer
-
- Posts: 7
- Joined: Sat Apr 07, 2018 9:54 am
Re: [ZScript] Ledge climbing
Sorry for the bump, I'm having trouble getting this to work with other classes, I've tried to do what was said bellow but whenever i replace "DoomPlayer" with the class i want i just get an error on startup, any help would be appreciated.
-
- Posts: 66
- Joined: Wed Oct 04, 2017 2:00 pm
Re: [ZScript] Ledge climbing
That solution didn't end up working, anyway. What did work was to have the custom player class inherit from ClimbingPlayer. In other words
But I'm not entirely sure what you're trying to do, so that may or may not work.
Code: Select all
class YourPlayerClass : ClimbingPlayer
-
- Posts: 7
- Joined: Sat Apr 07, 2018 9:54 am
Re: [ZScript] Ledge climbing
Thanks for the help, unfortunately i still cant make it work, how i have it set up
In a separate PK3 the class is defined in KEYCONF and looks like
This is the message i get on startup if anyone can suggest what im doing wrong.
Code: Select all
class Doomer3 : ClimbingPlayer
Code: Select all
clearplayerclasses
addplayerclass Doomer3
Spoiler:
-
- Posts: 66
- Joined: Wed Oct 04, 2017 2:00 pm
Re: [ZScript] Ledge climbing
Wait, did you change the line that said
to
That's not what I meant. What I meant was, go to wherever Doomer3 is defined, and change that line to
Code: Select all
class ClimbingPlayer : DoomPlayer
Code: Select all
class Doomer3 : ClimbingPlayer
Code: Select all
class Doomer3 : ClimbingPlayer
-
- Posts: 7
- Joined: Sat Apr 07, 2018 9:54 am
Re: [ZScript] Ledge climbing
Ahh, yes, That did the trick thanks heaps, I'm really enjoying this script it works wonderful!