Can you add to this script thanks
4 posts
• Page 1 of 1
Can you add to this script thanks
hi i would like to bad to this script
push forward on the left thumb stick but not all the way just a bit and i can change it thanks
push forward on the left thumb stick but not all the way just a bit and i can change it thanks
- Code: Select all
#pragma METAINFO("new c4.gpc", 1, 0, "Buffy's GPC Converter v0.28r6")
#include <titanone.gph>
#define _ot_i _ot_i2
const uint8 _ot_i2[42] = {
BUTTON_1, BUTTON_2, BUTTON_3, BUTTON_4, BUTTON_5, BUTTON_6,
BUTTON_7, BUTTON_8, BUTTON_9, STICK_1_X, STICK_1_Y, STICK_2_X,
STICK_2_Y, BUTTON_10, BUTTON_11, BUTTON_12, BUTTON_13, BUTTON_14,
BUTTON_15, BUTTON_16, BUTTON_17, ACCEL_1_X, ACCEL_1_Y, ACCEL_1_Z,
GYRO_1_X, GYRO_1_Y, GYRO_1_Z, PADDLE_1, POINT_1_X, POINT_1_Y,
PADDLE_2, PADDLE_3, PADDLE_4, ACCEL_2_X, ACCEL_2_Y, ACCEL_2_Z,
0, 0, BUTTON_18, BUTTON_19, BUTTON_20, BUTTON_21,
};
// C4 melee and Ring Of Fire with Jug and Quick revive just press Left D-pad to start and stop script
#define __LAST_COMBO__ c_maxcmb
#define _VM_BTN_COUNT_ 42
#define DISABLE_VM_ // delete underscore to disable VM mode
#ifndef DISABLE_VM
#define VM_TIME 10
#define vm_tctrl(time) ___vm_time___ = (((10+ time) < 0) ? 0 : (10+ time))
#define wait(a) wait(vm_tctrl_wait(a));
#else
#define VM_TIME 0
#endif
int toggle;
uint8 __COMBO_RUN__[1];
int8 __io_vals__[_VM_BTN_COUNT_];
uint8 __io_val_events__[_VM_BTN_COUNT_];
uint32 __vm_run_time__ = 0;
uint8 __run_vm__ = 1, ___vm_time___ = VM_TIME, ___i____i;
main {
if(__run_vm__) {
if (_event_press(XB1_LEFT)) toggle =! toggle;
if (toggle) {
combo_run(c_maxcmb);
}
else {
combo_stop(c_maxcmb);
}
}
}
combo c_maxcmb {
set_val(XB1_LB, 100);
set_val(XB1_RB, 100);
wait(50);
set_val(XB1_LB, 0);
set_val(XB1_RB, 0);
wait(50);
set_val(XB1_RB, 100);
wait(50);
set_val(XB1_RB, 0);
wait(900);
set_val(XB1_RS, 100);
wait(50);
set_val(XB1_RS, 0);
wait(1600);
}
main {
if(__run_vm__) {
__run_vm__ = system_time() >= (__vm_run_time__+ ___vm_time___);
if(__run_vm__) __vm_run_time__ = system_time();
else {
memset( & __io_vals__[0], 0, _VM_BTN_COUNT_);
memset( & __io_val_events__[0], 0, _VM_BTN_COUNT_);
for(___i____i = 0; ___i____i < _VM_BTN_COUNT_; ++ ___i____i) {
if(get_val(___i____i)) __io_vals__[___i____i] = get_val(___i____i);
if(get_val( ++ ___i____i)) __io_vals__[___i____i] = get_val(___i____i);
}
#ifdef __LAST_COMBO__
for(___i____i = 0; ___i____i < sizeof(__COMBO_RUN__); ++ ___i____i) {
if(__LAST_COMBO__[(___i____i * 3) + ___i____i]) {
__LAST_COMBO__[(___i____i * 3) + ___i____i] = 0;
__COMBO_RUN__[___i____i] = 1;
}
}
#endif
}
}
else {
___i____i = 0;
do {
if(__io_vals__[___i____i]) set_val(___i____i, __io_vals__[___i____i]);
if(event_press(___i____i)) __io_val_events__[___i____i] = 1;
if(event_release(___i____i)) __io_val_events__[___i____i] = 3;
if(__io_vals__[ ++ ___i____i]) set_val(___i____i, __io_vals__[___i____i]);
if(event_press(___i____i)) __io_val_events__[___i____i] = 1;
if(event_release(___i____i)) __io_val_events__[___i____i] = 3;
} while( ++ ___i____i < _VM_BTN_COUNT_);
if(system_time() >= (__vm_run_time__+ ___vm_time___)) {
__run_vm__ = 1; __vm_run_time__ = system_time();
#ifdef __LAST_COMBO__
for(___i____i = 0; ___i____i < sizeof(__COMBO_RUN__); ++ ___i____i) {
if(__COMBO_RUN__[___i____i]) {
__LAST_COMBO__[(___i____i * 3) + ___i____i] = 1;
__COMBO_RUN__[___i____i] = 0;
}
}
#endif
}
}
}
int vm_tctrl_wait(int num) {
return ___vm_time___ ? ((num / ___vm_time___) + ((num % ___vm_time___) ? 1 : 0)) : num;
}
bool _event_press(uint8 io) {
return event_press(io) || __io_val_events__[io] == 1;
}
bool _event_release(uint8 io) {
return event_release(io) || __io_val_events__[io] == 3;
}
-
jasp90 - Command Sergeant Major
- Posts: 125
- Joined: Wed Nov 26, 2014 4:06 pm
Re: Can you add to this script thanks
jasp90 wrote:push forward on the left thumb stick but not all the way just a bit and i can change it thanks
Where in the script did you want this added to?
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
Re: Can you add to this script thanks
please can we have it continously forward , thanks
-
zerocool99 - Private First Class
- Posts: 3
- Joined: Sat Mar 20, 2021 12:50 pm
Re: Can you add to this script thanks
Hi I have had more info in what I need I need to do micro movement all the time going back a bit forward a bit if you were playing cod
-
jasp90 - Command Sergeant Major
- Posts: 125
- Joined: Wed Nov 26, 2014 4:06 pm
4 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 110 guests