Fortnite [REQUEST]
15 posts
• Page 2 of 2 • 1, 2
Re: Fortnite [REQUEST]
KinkedFatlife wrote:how do you activate mods?
With the DPad Left.
Doxy wrote:How can I add a toggle to the auto aim?
Added with DPad Right:
- Code: Select all
#include <titanone.gph>
//L2 Aim Improved Doubletab R3 Autosprint L3 Wiggle Double Tab Circle Change Material.
define TOGGLE_BUTTON = PS4_LEFT;
define LeftTrigger = PS4_L2;
define FIRE_BUTTON = PS4_R2;
define SPRINT_BUTTON = PS4_L3;
define ANTIRECOIL_FORCE = 25;
int dtap_flag;
int b_Run = 0;
int MSElapsed = 0;
int ButtonPressSpeed = 40;
int ButtonPressHold = 320;
int toggle;
int ar_tmp;
int toggle_aim = TRUE;
main {
if(event_press(PS4_RIGHT)) {
toggle_aim = !toggle_aim;
}
if(toggle_aim) {
//L2Aim
MSElapsed = MSElapsed + get_rtime();
if(MSElapsed >= ButtonPressHold) {
if(get_val(LeftTrigger) >= 90){
set_val(LeftTrigger, 0);
}
}
if(MSElapsed >= ButtonPressHold+ButtonPressSpeed) {
MSElapsed = MSElapsed - (ButtonPressHold+ButtonPressSpeed);
}
}
// On/Off (left or right d-pad)
if(event_press(TOGGLE_BUTTON)) {
toggle = !toggle;
}
if(toggle) {
// RAPIDFIRE
if(get_val(PS4_R2)) {
combo_run(Rapidfire);
}
// No Recoil
if(get_val(FIRE_BUTTON)) {
combo_run(AntiRecoil);
}
}
}
combo Rapidfire {
set_val(PS4_R2, 100);
wait(40);
set_val(PS4_R2, 0);
wait(30);
set_val(PS4_R2, 0);
}
combo EasyJump {
set_val(PS4_CROSS, 100);
wait(120);
set_val(PS4_CROSS, 0);
wait(400);
}
combo AntiRecoil { // This combo must be the last one
ar_tmp = get_val(PS4_RY) + ANTIRECOIL_FORCE;
if(ar_tmp > 100) ar_tmp = 100;
else if(ar_tmp < -100) ar_tmp = -100;
set_val(PS4_RY, ar_tmp);
}
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Fortnite [REQUEST]
Much appreciated, J2Kbr.
-
Doxy - First Sergeant
- Posts: 44
- Joined: Sun May 29, 2016 12:47 pm
Re: Fortnite [REQUEST]
J2Kbr wrote:KinkedFatlife wrote:how do you activate mods?
With the DPad Left.Doxy wrote:How can I add a toggle to the auto aim?
Added with DPad Right:
- Code: Select all
#include <titanone.gph>
//L2 Aim Improved Doubletab R3 Autosprint L3 Wiggle Double Tab Circle Change Material.
define TOGGLE_BUTTON = PS4_LEFT;
define LeftTrigger = PS4_L2;
define FIRE_BUTTON = PS4_R2;
define SPRINT_BUTTON = PS4_L3;
define ANTIRECOIL_FORCE = 25;
int dtap_flag;
int b_Run = 0;
int MSElapsed = 0;
int ButtonPressSpeed = 40;
int ButtonPressHold = 320;
int toggle;
int ar_tmp;
int toggle_aim = TRUE;
main {
if(event_press(PS4_RIGHT)) {
toggle_aim = !toggle_aim;
}
if(toggle_aim) {
//L2Aim
MSElapsed = MSElapsed + get_rtime();
if(MSElapsed >= ButtonPressHold) {
if(get_val(LeftTrigger) >= 90){
set_val(LeftTrigger, 0);
}
}
if(MSElapsed >= ButtonPressHold+ButtonPressSpeed) {
MSElapsed = MSElapsed - (ButtonPressHold+ButtonPressSpeed);
}
}
// On/Off (left or right d-pad)
if(event_press(TOGGLE_BUTTON)) {
toggle = !toggle;
}
if(toggle) {
// RAPIDFIRE
if(get_val(PS4_R2)) {
combo_run(Rapidfire);
}
// No Recoil
if(get_val(FIRE_BUTTON)) {
combo_run(AntiRecoil);
}
}
}
combo Rapidfire {
set_val(PS4_R2, 100);
wait(40);
set_val(PS4_R2, 0);
wait(30);
set_val(PS4_R2, 0);
}
combo EasyJump {
set_val(PS4_CROSS, 100);
wait(120);
set_val(PS4_CROSS, 0);
wait(400);
}
combo AntiRecoil { // This combo must be the last one
ar_tmp = get_val(PS4_RY) + ANTIRECOIL_FORCE;
if(ar_tmp > 100) ar_tmp = 100;
else if(ar_tmp < -100) ar_tmp = -100;
set_val(PS4_RY, ar_tmp);
}
This is exactly what I want except If it could be a faster like the Gamepack one it would be op thank you if you could do this for me
-
Eman69 - Staff Sergeant
- Posts: 13
- Joined: Fri Apr 20, 2018 1:51 am
Re: Fortnite [REQUEST]
To make faster reduce this value on the code:
something like 200 should be equivalent to what we have on the Gamepack.
- Code: Select all
int ButtonPressHold = 320;
something like 200 should be equivalent to what we have on the Gamepack.
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Fortnite [REQUEST]
J2Kbr wrote:To make faster reduce this value on the code:
- Code: Select all
int ButtonPressHold = 320;
something like 200 should be equivalent to what we have on the Gamepack.
Thanks so much for your help
-
Eman69 - Staff Sergeant
- Posts: 13
- Joined: Fri Apr 20, 2018 1:51 am
15 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: punkteer and 167 guests