Enable wall jump from ledge grab

Post Reply
NMcCoy
Posts: 5
Joined: Fri Dec 30, 2011 4:06 am

Enable wall jump from ledge grab

Post by NMcCoy » Sat Dec 31, 2011 8:54 pm

A nice little one-liner I've devised. In AirControls.as, after the following two lines:

Code: Select all

// if not holding a ledge, the character is airborne and can get controlled by arrow keys
        if(!ledge_info.on_ledge){
Add this line:

Code: Select all

if(ledge_delay == 0.3f && WantsToJump()) StartWallJump(ledge_info.ledge_dir * -1.0f);
You can now wall jump from a ledge hang by simply holding the jump button while releasing the grab button. Enjoy!



Edit:
a162_aircontrols.zip
(3.41 KiB) Downloaded 59 times

User avatar
Korban3
Posts: 4146
Joined: Tue May 31, 2011 9:14 pm
Location: 42nd St E, Hell

Re: Enable wall jump from ledge grab

Post by Korban3 » Sat Dec 31, 2011 11:55 pm

Hm, you should upload the changed airaontrols.as for those of us who are totally incapable of coding. I can make the change myself (Thanks for this, by the way. You could do it before, but only by moving into the wall as you fell and jumping. It was hard to pull off and this was a feature I felt should be in), but I'm sure there are a few casual folk who don't know anything about how to go about this.

User avatar
Johannes
Posts: 1374
Joined: Thu Dec 18, 2008 1:26 am
Contact:

Re: Enable wall jump from ledge grab

Post by Johannes » Sun Jan 01, 2012 11:56 am

Nice! works pretty well.

I've uploaded the modified file to the OP for convenience.

User avatar
Korban3
Posts: 4146
Joined: Tue May 31, 2011 9:14 pm
Location: 42nd St E, Hell

Re: Enable wall jump from ledge grab

Post by Korban3 » Sun Jan 01, 2012 2:55 pm

Awesome.

User avatar
last
Posts: 2154
Joined: Fri Jan 07, 2011 7:02 am
Location: Estonia

Re: Enable wall jump from ledge grab

Post by last » Mon Jan 02, 2012 8:59 am

I added that ledge grab mod into my blood mod / no death mod
Also added Antons slow motion mod into it

User avatar
AAorris
Posts: 178
Joined: Sun Jun 12, 2011 1:01 pm
Contact:

Re: Enable wall jump from ledge grab

Post by AAorris » Wed Jan 11, 2012 10:52 pm

That's great! I had that back when I tweaked some movement mechanics a few alphas ago, nice to see the code coming back. :)

User avatar
NitrosDragon
Posts: 4
Joined: Sat Feb 04, 2012 8:23 pm
Location: Michigan, USA

Re: Enable wall jump from ledge grab

Post by NitrosDragon » Tue Feb 07, 2012 3:46 pm

Posting a reply so I remember to come back to this when I'm at my own computer. :wink:

User avatar
last
Posts: 2154
Joined: Fri Jan 07, 2011 7:02 am
Location: Estonia

Re: Enable wall jump from ledge grab

Post by last » Tue Feb 07, 2012 4:58 pm

Just install my blood mod / no death mod viewtopic.php?f=16&t=12064&start=165#p152678 and go to editor mode and press esc key and there will be a new window with Open setting window button there. Click on it and you should see that there is a option for turning on and off Jump from ledge grab there.

Post Reply