Simple request for someone new

GPC2 script programming for Titan Two. Code examples, questions, requests.

Simple request for someone new

Postby actionmainly » Sun Jun 06, 2021 4:28 pm

Hi, very new to this. Trying to create a simple script and I've tried editing others but just can't get this to work as it should. Looking for a simple script for an xbox 360 to push up on the left stick to select a menu item and then press A. I am.looking for that to then repeat after 10 seconds and keep repeating indefinitely. It's for Rainbow Six Vegas to idle boost XP. Can anyone help at all? Probably really simple when you know how.
User avatar
actionmainly
Private First Class
Private First Class
 
Posts: 2
Joined: Sat Mar 13, 2021 2:08 pm

Re: Simple request for someone new

Postby Mad » Sun Jun 06, 2021 9:20 pm

Dpad down to toggle on/off

Adjust MENU_TIME in milliseconds for how long the left stick up is held.
Code: Select all
#include <xb360.gph>
 
#define MENU_TIME 300
bool toggle;
 
main {
    if(event_active(XB360_DOWN)) toggle = !toggle;
    if(toggle) combo_run(xp);
}
 
combo xp {
    set_val(XB360_A, 0);
    set_val(XB360_LY, 100);
    wait(MENU_TIME);
    set_val(XB360_LY, 0);
    set_val(XB360_A, 100);
    wait(60);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am

Re: Simple request for someone new

Postby clickclax » Thu Jul 29, 2021 8:19 pm

Hey guys, I am replying to this post because I cant seem to figure out how to create a post on my own. I play rainbow on xboxone with controller. If someone can please help me with a simple script for recoil control. No rapid fire. The script I am currently using keeps switching from full auto burst to single fire when I am in the middle of a gun fight. I am new to this. Thank you all
User avatar
clickclax
Private
Private
 
Posts: 1
Joined: Thu Jul 29, 2021 1:46 am


Return to GPC2 Script Programming

Who is online

Users browsing this forum: AZOV_ops and 74 guests