MOH:AA Stand alone Jetpack

Discussion in 'New Files' started by Jethro, May 15, 2008.

  1. Jethro Sergeant

    Contributions:
    66
    Processing:
    Graphics:
    Here is my stand alone Jetpack. I think it is working well enough to release. Inspired by the master Elgan. I used some of his code to attach the items to the players back. I just didn't feel it necessary to redo something that was already perfect. (credit is also in the script) Included in the pk3 are examples in Destroyed Village. One in front of the steeple and one by the tank.

    Once you get the Jetpack hit your jump key and it will lift you off the ground. Once in the air your USE key (E) will move you forward and also lift you up. There is a Fuel bar and numbers for your Fuel level. The Fuel bar only works right when the fuel level is 100 or lower. I think it works rather well at 100. Checks for team switch and going into spectate.

    Exec like so:

    exec global/jetpack.scr ( your origin )

    Example:

    exec global/jetpack.scr ( -2884 -1050 7 )

    Conflicts:

    globalwidgetcommand

    Mikes_legs (included) Used to lift initially. Here is the code for mikes legs if you want to insert the command yourself if you already have a custom mikes_legs.

    Code:
    ////////////////////////////////////////////////////////////////
    //
    // JUMPING
    //
    ////////////////////////////////////////////////////////////////
    
    state JUMP_STANDING
    {
        entrycommands
        {
            exec global/jetpackjump.scr //<--------------------------
            movementstealth "0.3"
            moveposflags "crouching"
    //        modheight "duck"
            modheight "jumpstart"
            commanddelay 0.05 jump 56
        }
        legs
        {
            mp40_jump_takeoff                : IS_WEAPON_ACTIVE "mainhand" "MP40"
            mp44_jump_takeoff                : IS_WEAPON_ACTIVE "mainhand" "StG 44"
            bazooka_jump_takeoff            : IS_WEAPON_ACTIVE "mainhand" "Bazooka"
            bazooka_jump_takeoff            : IS_WEAPON_ACTIVE "mainhand" "Panzerschreck"
            shotgun_jump_takeoff            : IS_WEAPON_ACTIVE "mainhand" "Shotgun"
            steilhandgranate_jump_takeoff    : IS_WEAPON_ACTIVE "mainhand" "Stielhandgranate"
            pistol_jump_takeoff                : IS_WEAPONCLASS_ACTIVE "mainhand" "pistol" 
            rifle_jump_takeoff                : IS_WEAPONCLASS_ACTIVE "mainhand" "rifle" 
            grenade_jump_takeoff            : IS_WEAPONCLASS_ACTIVE "mainhand" "grenade" 
            smg_jump_takeoff                : IS_WEAPONCLASS_ACTIVE "mainhand" "smg" 
            mg_jump_takeoff                    : IS_WEAPONCLASS_ACTIVE "mainhand" "mg" 
    //        pistol_jump_takeoff                : IS_WEAPONCLASS_ACTIVE "mainhand" "item" // hold all items like a pistol for now
            unarmed_jump_takeoff            : default
        }
        
        states
        {
    //        FALL_DUCKED                : ANIMDONE_LEGS CROUCH
    //        FALL                    : ANIMDONE_LEGS CHECK_HEIGHT "stand"
            FALL_DUCKED_WANT_STAND    : ANIMDONE_LEGS !DUCKED_VIEW_IN_WATER
            FALL                    : ANIMDONE_LEGS
        }
    }
    
    state JUMP_FORWARD_RUN
    {
        entrycommands
        {
            exec global/jetpackjump.scr //<--------------------------
            movementstealth "0.2"
            moveposflags "crouching" "running"
    //        modheight "duck"
            modheight "jumpstart"
            commanddelay 0.05 jump 56
        }
        legs
        {
            mp40_jump_run_takeoff                : IS_WEAPON_ACTIVE "mainhand" "MP40"
            mp44_jump_run_takeoff                : IS_WEAPON_ACTIVE "mainhand" "StG 44"
            bazooka_jump_run_takeoff            : IS_WEAPON_ACTIVE "mainhand" "Bazooka"
            bazooka_jump_run_takeoff            : IS_WEAPON_ACTIVE "mainhand" "Panzerschreck"
            shotgun_jump_run_takeoff            : IS_WEAPON_ACTIVE "mainhand" "Shotgun"
            steilhandgranate_jump_run_takeoff    : IS_WEAPON_ACTIVE "mainhand" "Stielhandgranate"
            pistol_jump_run_takeoff                : IS_WEAPONCLASS_ACTIVE "mainhand" "pistol" 
            rifle_jump_run_takeoff                : IS_WEAPONCLASS_ACTIVE "mainhand" "rifle" 
            grenade_jump_run_takeoff            : IS_WEAPONCLASS_ACTIVE "mainhand" "grenade" 
            smg_jump_run_takeoff                : IS_WEAPONCLASS_ACTIVE "mainhand" "smg" 
            mg_jump_run_takeoff                    : IS_WEAPONCLASS_ACTIVE "mainhand" "mg" 
    //        pistol_jump_run_takeoff                : IS_WEAPONCLASS_ACTIVE "mainhand" "item" // hold all items like a pistol for now
            unarmed_jump_run_takeoff            : default
        }
        
        states
        {
    //        FALL_DUCKED                : ANIMDONE_LEGS CROUCH
    //        FALL                    : ANIMDONE_LEGS CHECK_HEIGHT "stand"
            FALL_DUCKED_WANT_STAND    : ANIMDONE_LEGS !DUCKED_VIEW_IN_WATER
            FALL                    : ANIMDONE_LEGS
        }
    }
    
  2. Jethro Sergeant

    Contributions:
    66
    Processing:
    Graphics:
    Screenshot
  3. maj_ahole Corporal

    Contributions:
    14
    Processing:
    Graphics:
    Ty

    I've been searching for any and all related to this! Question though, what benefit is this mike torso, just an error? All it seems to do for me is make it seem as if you don't get any hangtime on a normal jump. here are some points too!! :)
  4. Jethro Sergeant

    Contributions:
    66
    Processing:
    Graphics:
    Mikes legs adds the sound when you take off and some other things.
  5. Carbon131 Lance Corporal

    Contributions:
    4
    Specialties:
    Scripting, Textures
    Processing:
    Graphics:
    Awesome jetpack mod dude! Is there a way that I can make it so everyone spawns with the jetpack and have unlimited fuel!?
  6. Jethro Sergeant

    Contributions:
    66
    Processing:
    Graphics:
    Feel free to edit the script all you want.
  7. Carbon131 Lance Corporal

    Contributions:
    4
    Specialties:
    Scripting, Textures
    Processing:
    Graphics:
    Dang it, now I have to do work lol.
  8. MOHWOLFHUNTER Private

    Contributions:
    0
    Will this work on Speahead as well? and if not is there a stand alone jetpack for spearhead maps? if so where can I donwload it?

    Thanks
  9. maj_ahole Corporal

    Contributions:
    14
    Processing:
    Graphics:
    Yes it does work with spearhead, and you can get the basic file up above under the first post, then modify it to your needs if you wish.

    The pk3 comes with an example map to play with.




    [IMG]

    [IMG]

    [IMG]

    [IMG]
  10. theripppa Gunnery Sergeant

    Contributions:
    152
    Specialties:
    Mapper, Modeler, Textures, Pure Gamer
    Processing:
    Graphics:
    PREMIUM
    I Donated
    is this file missing?

Share This Page