Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This program was created for a tutorial, to open and edit the script properly you will need Gtuner IV.
- // The tutorial was made for Xbox One
- // GtunerIV link: https://www.consoletuner.com/titan-two-downloads/
- #include <xb1.gph>
- bool isActive = FALSE; // Esta variable decide si el DeadEye esta activo o no.
- // Main loop
- main {
- activateDeadEye();
- if(isActive)
- deadeye();
- }
- // Activa el DeadEye antes de disparar.
- void deadeye()
- {
- if(get_actual(XB1_RT) >= 25.0)
- set_val(XB1_RS, 100.0);
- }
- // Activa y desactiva la opcion de DeadEye automatico.
- void activateDeadEye()
- {
- if(is_active(XB1_RB) && get_actual(XB1_LB) <= 0.0 && get_prev(XB1_LB) >= 100.0) // Manten oprimido RB y solo oprime LB una vez.
- {
- isActive = !isActive;
- if(isActive)
- printf("Active");
- else
- printf("Not Active");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement