Levitator Code
Create By: iTrexk
Hey ngu, I'm releasing this now to you guys so that you can have your fun with it as I had mine. This probably won't be big because now you have RTE, but for the people that are in my situation that just do back ups this is more for you and also to the USB'ers. There's a bit of coding so I will do my best to try and explain to you how to set this up in your menu.
Ok, the Levitator uses the new jump code to prevent the dive jump that you can see here. Two make it easier I'm going to put the code in three sections. First section will be the code that gets executed (vstr) when you press the option in your menu. The second section will be part of the Levitator code but only takes place when you have exited the menu. The third section is what you need to do to your buttons that you set to default when exiting the menu. Without the third section being the way that I have it below, the code with not work correctly.
Credit To:
TheFallen - for the original design of the UFO Perk
campbell - for finding setPerks
Hope you like this release and if the code is not acting like it is in the video then tell me.
ENJOY :p
Create By: iTrexk
Hey ngu, I'm releasing this now to you guys so that you can have your fun with it as I had mine. This probably won't be big because now you have RTE, but for the people that are in my situation that just do back ups this is more for you and also to the USB'ers. There's a bit of coding so I will do my best to try and explain to you how to set this up in your menu.
Ok, the Levitator uses the new jump code to prevent the dive jump that you can see here. Two make it easier I'm going to put the code in three sections. First section will be the code that gets executed (vstr) when you press the option in your menu. The second section will be part of the Levitator code but only takes place when you have exited the menu. The third section is what you need to do to your buttons that you set to default when exiting the menu. Without the third section being the way that I have it below, the code with not work correctly.
Code:
Section 1
set Levitator "toggle Levitatort \"vstr Levitatort1\" \"vstr Levitatort2\";vstr Levitatort";set Levitatort ""
set Levitatort1 "bg_prone_yawcap 360;set A vstr DefaultA;setPerk UnboundUser specialty_jumpdive 1;setPerk iTrexk specialty_jumpdive 1;perk_diveDistanceCheck 64;perk_diveGravityScale 0.0005;perk_diveVelocity 250;perk_diveViewRollResetSpeed 0;perk_diveViewRollSpeed 0;perk_diveViewRollTarget 0;set Notify1 vstr Levitatorb;set Notify2 vstr LevitatoraInfo;bind DPAD_RIGHT vstr Levitatora;set ADive vstr ADivea"
set Levitatort2 "reset bg_prone_yawcap;set A vstr NoDive;bind DPAD_RIGHT +actionslot 4;set Notify1 vstr Ng;set Notify2 vstr Ng;set ADive vstr Ng;set ASay vstr Clear"
Section 2
set Levitatora "perk_diveGravityScale 0.75;wait 44;perk_diveGravityScale 0.005;vstr LevitatorbInfo;bind DPAD_RIGHT \""perk_diveGravityScale 0.75;wait 44;perk_diveGravityScale 0.005;^7;set ASay vstr Ng"
set Levitatorb "perk_diveGravityScale 0.0005;bind DPAD_RIGHT vstr Levitatora"
set LevitatoraInfo "\"^5Press * ^5To ^8Set ^5The ^8Height\".;wait 5;^7;wait 5;^7;wait 5;^7;wait 5;^7;wait 5;^7;wait 5;^7;wait 5;^7;wait 5;^7;wait 5;^7;wait 5;^7;wait 5;^7;set ASay \""\"^5Press * ^5To ^8Set ^5The ^8Height\".;^7;^7;^7;^7;^7;^7;^7;^7;^7;^7;^7"
set LevitatorbInfo "\"^5Press * ^5Again To Go ^8Down\".;wait 5;^7;wait 5;^7;wait 5;^7;wait 5;^7;wait 5;^7;wait 5;^7;wait 5;^7;wait 5;^7;wait 5;^7;wait 5;^7;wait 5;^7;set ASay \""\"^5Press * ^5Again To Go ^8Down\".;^7;^7;^7;^7;^7;^7;^7;^7;^7;^7;^7"
set ADivea "setPerk UnboundUser specialty_jumpdive 1;setPerk iTrexk specialty_jumpdive 1"
Section 3
In you menu where you have your buttons setting to the default value in the Exit/Close variable you must replace the "bind BUTTON_A +gostand" to "vstr A". And then at the end add this apad with this inside of it, "bind APAD_UP \""vstr ASay;vstr ADive"". If your having trouble understanding me then you can look below and see how it needs to be.
Default Layout "bind BUTTON_RSHLDR +attack;bind BUTTON_LSHLDR +speed_throw;bind BUTTON_RTRIG +frag;bind BUTTON_LTRIG +smoke;bind BUTTON_RSTICK +melee;bind BUTTON_LSTICK +breath_sprint;bind BUTTON_START togglemenu;bind BUTTON_BACK togglescores;vstr A;bind BUTTON_B +stance;bind BUTTON_X +usereload;bind BUTTON_Y weapnext;bind DPAD_UP +actionslot 1;bind DPAD_DOWN +actionslot 2;bind DPAD_LEFT +actionslot 3;bind DPAD_RIGHT +actionslot 4;bind APAD_UP \""vstr ASay;vstr ADive"
Tactical Layout "bind BUTTON_RSHLDR +attack;bind BUTTON_LSHLDR +speed_throw;bind BUTTON_RTRIG +frag;bind BUTTON_LTRIG +smoke;bind BUTTON_RSTICK +stance;bind BUTTON_LSTICK +breath_sprint;bind BUTTON_START togglemenu;bind BUTTON_BACK togglescores;vstr A;bind BUTTON_B +melee;bind BUTTON_X +usereload;bind BUTTON_Y weapnext;bind DPAD_UP +actionslot 1;bind DPAD_DOWN +actionslot 2;bind DPAD_LEFT +actionslot 3;bind DPAD_RIGHT +actionslot 4;bind APAD_UP \""vstr ASay;vstr ADive"
Below here is important! If you don't have this somewhere in your menu the Levitaor code will not work at all! So put it somewhere lol, maybe all the way on the bottom of your menu.
set A "vstr NoDive"
set NoDive "bind BUTTON_A \""unbindallaxis;+gostand;-gostand;wait 5;exec thumbstick_default.cfg"
set DefaultA "bind BUTTON_A \""vstr Notify1;+gostand;-gostand;vstr Notify2"
set Ng ""
set Clear "^7;^7;^7;^7;^7;^7;^7;^7;^7;^7;^7;^7"
Here is someone's go at trying to recreate the Levitator code. They got it to set a height and stay there but it could use some work and the button to function response to set a height is a bit long. But other then that good job and props to lVlW2_Stoner.
Code:
set Levitator "vstr Close;bind APAD_UP vstr NOTHING;vstr UFO2"
set UFO2 "setPerk iTrexk specialty_jumpdive 1;setPerk XxJLM420xX specialty_jumpdive 1;perk_diveDistanceCheck 64;perk_diveGravityScale 0.0005;perk_diveVelocity 250;perk_diveViewRollResetspeed 4;perk_diveViewRollSpeed 0.5;perk_diveViewRollTarget 45;bg_fallDamageMinHeight 128;bg_fallDamageMaxHeight 300;^7;^6Press_^0DOWN^6_To_Cancel_UFO;^7;^7;^7;^7;^7;^7;^7;^7;^7;^7;bind dpad_down vstr UFOOFF;bind APAD_UP vstr CLEAR"
set UFOOFF "perk_diveGravityScale 100;wait 0.1;perk_diveGravityScale 0.005;^7;^6Press_^0Right^6_For_STOP;^7;^7;^7;^7;^7;^7;^7;^7;^7;^7;bind dpad_right vstr blah"
set blah "perk_diveGravityScale 100;wait 50;perk_diveGravityScale 100;^7;^6Press_^0Right^6_For_UFO;^7;^7;^7;^7;^7;^7;^7;^7;^7;^7;bind dpad_right vstr UFO2"
Credit To:
Quote:
TheFallen - for the original design of the UFO Perk
campbell - for finding setPerks
ENJOY :p