1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Walljumping Tweak

Discussion in 'Modding [KAG]' started by Sinleet, Mar 15, 2014.

  1. Sinleet

    Sinleet Shipwright

    Messages:
    36
    This mod resets walljumped back to NONE after you touch a ladder or the water, as opposed to just after you've touched the ground

    @Geti @Rayne @Arcrave @Skinney
     

    Attached Files:

    norill, cameron, zerd and 4 others like this.
  2. skelozero

    skelozero Catapult Fodder

    Messages:
    40
    but wall jumping is best jumping
     
  3. Sinleet

    Sinleet Shipwright

    Messages:
    36
    I don't think you understand what this mod does, it refreshes your wall jump counter when you use a ladder or touch water. Before you would have to touch ground to be able to walljump again.
     
  4. skelozero

    skelozero Catapult Fodder

    Messages:
    40
    yea but whats a wall jump counter? ive never found a limit with my walljumping except for running out of wall
     
  5. Sinleet

    Sinleet Shipwright

    Messages:
    36
    Walljumped will = left or right when you have jumped left or right, allowing you to continuously climb towers. However, if there is only one high wall, and the ladders ~5 blocks away from the top--Well you better make sure you wallrun up on the first try or else you'll have to touch the ground (stone,wood,dirt, blocks etc.) to be able to try that wallrun again. The same goes for walls built on the water.
    this mod changes that, you'll no longer have to go all the way down to the ground to get one shot at a wall run again
    If you want to test the game with or without the mod you can build a straight wall in a large enough body of water and run straight up it. Afterwards, put a few ladders at the bottom and run.

    the constant onground was defined to include isonladder as well,
    which makes the default code block
    Code:
        if (onground) 
        {
            moveVars.walljumped_side = Walljump::NONE;
            moveVars.wallrun_start = pos.y;
            moveVars.wallrun_current = pos.y;
        }
    seems like it was intended to reset your walljump counter, however; due to the layout, the code was never reaching that point while on the ladder(or on the water). Moving the block above the ladder code (and subsequently the water code) made the code work (seemingly) as intended, Finalizing the first line with
    Code:
     if (onground || blob.isInWater())
    (checking if the character is on the ground, on a ladder, or in water) leaves with some pretty nice gamefeel
     
    Last edited: Mar 15, 2014
    zerd likes this.
  6. Trumbles

    Trumbles Bison Rider

    Messages:
    458
    @skelozero The way wallrunning is currently set up in the game, you can wall run for X amount of time, that time resets when you land on the ground/otherwise stand on a flat surface.

    The time doesn't reset however, when you stop on a ladder or fall in water (unless you swim down to the bottom before attempting to climb again)
     
  7. skelozero

    skelozero Catapult Fodder

    Messages:
    40
    wait wait wait so pretty much this mod alows you to do a normal jump off ladders and out of water? im sorry im a bit dumb :p
     
  8. Trumbles

    Trumbles Bison Rider

    Messages:
    458
    Yeah, this mod supposedly fixes that.
     
  9. Sinleet

    Sinleet Shipwright

    Messages:
    36
    normal jump? it has to do with wallrunning, this mod allows you to wallrun when you'd expect to
     
    Last edited: Mar 16, 2014
  10. skelozero

    skelozero Catapult Fodder

    Messages:
    40
    ok glad thats clearer XD sorry for not understanding
     
  11. Geti

    Geti Please avoid PMing me (poke a mod instead) THD Team Administrator Global Moderator

    Messages:
    3,730
    Yo, heads up: start thinking before posting or you're going to get all kinds of warnings and leave one of those embarassing internet legacies you wish you could get rid of years down the line.

    will be added next build. should be a few weeks maximum.
     
    kodysch, zerd, Trumbles and 2 others like this.
  12. Waky

    Waky Ballista Bolt Thrower

    Messages:
    79
    :O theres walljumping in beta, holy crap.

    This aint no 'classic.
    This is some serious shit.