Help with T2 Script
5 posts
• Page 1 of 1
Help with T2 Script
My idea is to add color coding into this script.
I'm trying to make it so when PS4_PS & PS4_R1 is held at the same time the LED light should turn Red (Blue should already be the default color).
Once the LED Lights are red these 2 combos should be DISABLED: c_2PeiceToTheHead & c_2PeiceToTheHeadAndBody
& Once the Led Lights are red these 2 combos should be ENABLED: c_2PeiceToTheHead1 & c_2PeiceToTheHeadAndBody1
Only the 4 combos above should be effected by the Changing colors. All other combos in the script can remain how they are regardless of the color. I already included the last 2 combos in the script below.
I apologize for the lengthy script request. But I have no understanding towards the color identification feature.
I'm trying to make it so when PS4_PS & PS4_R1 is held at the same time the LED light should turn Red (Blue should already be the default color).
Once the LED Lights are red these 2 combos should be DISABLED: c_2PeiceToTheHead & c_2PeiceToTheHeadAndBody
& Once the Led Lights are red these 2 combos should be ENABLED: c_2PeiceToTheHead1 & c_2PeiceToTheHeadAndBody1
Only the 4 combos above should be effected by the Changing colors. All other combos in the script can remain how they are regardless of the color. I already included the last 2 combos in the script below.
I apologize for the lengthy script request. But I have no understanding towards the color identification feature.
- Code: Select all
#pragma METAINFO("Mendas-T2-Takedown", 1, 0, "<Mendas-T2-Takedown>")
#include <titanone.gph>
// MuayThai 2
//Author: VvV
// Mapped to PS
// Mapped to LEFT
// Mapped to TOUCH
// Mapped to Down
// Mapped to L3
// Mapped to R3
// Mapped to RIGHT
// Square
// Circle
// unmap PS4_PS;
// unmap PS4_SHARE;
int active = FALSE;
main {
if (get_val(PS4_SHARE)) {
combo_run(c_2PeiceToTheBody);
}
if (get_val(PS4_OPTIONS)) {
combo_run(c_2PeiceToTheBody2);
}
if (get_val(PS4_LEFT)) {
combo_run( c_2PeiceToTheHeadAndBody);
}
if (get_val(PS4_UP)) {
combo_run(c_2PeiceToTheHead);
}
if (get_val(PS4_TOUCH)) {
combo_run(c_StraightPunchLeadKick);
}
if (get_val(PS4_DOWN)) {
combo_run(c_Str8Uppercut);
}
if (get_val(PS4_L3)) {
combo_run(c_IronSharifCombo);
}
// Mapped to R3
if(get_val(PS4_R3)) {
combo_run(c_XsuCamdro);
}
if (get_val(PS4_RIGHT)) {
combo_run(c_Str8Uppercut2);
}
if ((get_val(PS4_R2)) && (get_val(PS4_LEFT))) {
combo_run(c_DenyLeft);
combo_stop(c_JabLegKick);
}
if ((get_val(PS4_R2)) && (get_val(PS4_RIGHT))) {
combo_run(c_DenyRight);
combo_stop(c_Str8Uppercut2);
}
if ((get_val(PS4_R2)) && (get_val(PS4_UP))) {
combo_run(c_DenyUp);
combo_stop(c_Str8Uppercut2);
}
if ((get_val(PS4_R2)) && (get_val(PS4_DOWN))) {
combo_run(c_DenyDown);
combo_stop(c_Str8Uppercut);
}
///////////////////// FAKES
if ((get_val(PS4_PS)) && (get_val(PS4_DOWN))) {
combo_run(c_FakeTransitionDown1);
combo_stop(c_Str8Uppercut);
}
if ((get_val(PS4_PS)) && (get_val(PS4_LEFT))) {
combo_run(c_FakeTransitionLeft1);
combo_stop(c_2PeiceToTheHeadAndBody);
}
if ((get_val(PS4_PS)) && (get_val(PS4_UP))) {
combo_run(c_FakeTransitionUp1);
combo_stop(c_2PeiceToTheHead);
}
if ((get_val(PS4_PS)) && (get_val(PS4_RIGHT))) {
combo_run(c_FakeTransitionRight1);
combo_stop(c_Str8Uppercut2);
}
// EXTRA
if ((get_val(PS4_L2)) && (get_val(PS4_DOWN))) {
combo_run(c_TAKEDOWN);
combo_stop(c_Str8Uppercut);
}
if ((get_val(PS4_SQUARE)) && (get_val(PS4_UP))) {
combo_run(c_GetUp);
combo_stop(c_Str8Uppercut);
}
}
combo c_GetUp {
// GET UP
set_val(PS4_SQUARE, 100);
set_val(PS4_RY, -100);
wait(1700);
}
combo c_HighTakedown {
set_val(PS4_RX, 100);
set_val(PS4_L2, 100);
set_val(PS4_L1, 100);
wait(1700);
}
combo c_TAKEDOWN {
set_val(PS4_RY, 100);
wait(1700);
set_val(PS4_RY, 0);
}
////////////////////////////////////////////////////////
/////////QUICK DENIALS
combo c_DenyLeft {
set_val(PS4_RX, -100);
wait(60);
set_val(PS4_RX, 0);
}
combo c_DenyRight {
set_val(PS4_RX, 100);
wait(80);
set_val(PS4_RX, 0);
}
combo c_DenyDown {
set_val(PS4_RY, 100);
wait(80);
set_val(PS4_RY, 0);
}
combo c_DenyUp {
set_val(PS4_RY, -100);
wait(80);
set_val(PS4_RY, 0);
}
////////////////////////////////////////////////
////// TRANSITION FAKES
combo c_FakeTransitionLeft1 {
set_val(PS4_RX, -100);
wait(250); // <- only right stick is pressed to the left
set_val(PS4_RX, -100);
set_val(BUTTON_7,100); wait(40); // <- right stick and L1
}
combo c_FakeTransitionRight1 {
set_val(PS4_RX, 100);
wait(250); // <- only right stick is pressed to the left
set_val(PS4_RX, 100);
set_val(BUTTON_7,100); wait(40); // <- right stick and L1
}
combo c_FakeTransitionDown1 {
set_val(PS4_RY, 100);
wait(250); // <- only right stick is pressed to the left
set_val(PS4_RY, 100);
set_val(BUTTON_7,100); wait(40); // <- right stick and L1
}
combo c_FakeTransitionUp1 {
set_val(PS4_RY, -100);
wait(250); // <- only right stick is pressed to the left
set_val(PS4_RY, -100);
set_val(BUTTON_7,100); wait(40); // <- right stick and L1
}
////////////////////////////////////////////////////////////////////////
////// COMBOS
combo c_Str8Uppercut {
set_val(PS4_TRIANGLE, 100);
wait(80);
set_val(PS4_LX, -30);
set_val(PS4_TRIANGLE, 100);
wait(10);
set_val(PS4_LX, -57);
set_val(PS4_TRIANGLE, 0);
wait(10);
set_val(PS4_LX, -94);
wait(10);
set_val(PS4_LX, -100);
wait(60);
set_val(PS4_LX, -100);
set_val(PS4_SQUARE, 100);
wait(80);
set_val(PS4_LX, 0);
set_val(PS4_SQUARE, 100);
wait(30);
set_val(PS4_SQUARE, 0);
}
combo c_IronSharifCombo {
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
// SQUARE
set_val(PS4_SQUARE, 100);
set_val(PS4_L2, 100);
wait(125); wait(125);
// Triangle
set_val(PS4_TRIANGLE, 100);
set_val(PS4_L2, 100);
wait(150); wait(150);
// SQUARE
set_val(PS4_SQUARE, 100);
set_val(PS4_L2, 100);
wait(40); wait(40);
}
combo c_2PeiceToTheBody {
// Triangle
set_val(PS4_L2, 100);
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
// SQUARE
set_val(PS4_L2, 100);
set_val(PS4_SQUARE, 100);
wait(100); wait(100);
//Dash Out
set_val(PS4_LX, -100);
wait(100); wait(100);
}
combo c_2PeiceToTheBody2 {
// Triangle
set_val(PS4_L2, 100);
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
// SQUARE
set_val(PS4_L2, 100);
set_val(PS4_SQUARE, 100);
wait(100); wait(100);
//Dash Out
set_val(PS4_LX, 100);
wait(100); wait(100);
}
/////////////////////////////////////////////////
///////// Red
combo c_2PeiceToTheHead1{
// SQUARE
set_val(PS4_SQUARE, 100);
wait(100); wait(100);
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
//Dash Out
set_val(PS4_LX, -100);
wait(100); wait(100);
}
combo c_2PeiceToTheHeadAndBody1 {
// JAB
set_val(PS4_SQUARE, 100);
wait(125); wait(125);
// STRAIGHT TO THE BODY
set_val(PS4_L2, 100);
set_val(PS4_TRIANGLE, 100);
wait(100); wait(100);
//Dash Out
set_val(PS4_LX, -100);
wait(100); wait(100);
}
//////////////////////////////////////////////////////////////////////////////
//////////////// Blue
combo c_2PeiceToTheHead{
// SQUARE
set_val(PS4_SQUARE, 100);
wait(100); wait(100);
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
//Dash Out
set_val(PS4_LX, 100);
wait(100); wait(100);
}
combo c_2PeiceToTheHeadAndBody {
// JAB
set_val(PS4_SQUARE, 100);
wait(125); wait(125);
// STRAIGHT TO THE BODY
set_val(PS4_L2, 100);
set_val(PS4_TRIANGLE, 100);
wait(100); wait(100);
//Dash Out
set_val(PS4_LX, 100);
wait(100); wait(100);
}
combo c_Str8Uppercut2 {
set_val(PS4_TRIANGLE, 100);
wait(130);
set_val(PS4_TRIANGLE, 0);
wait(10);
set_val(PS4_LX, 34);
wait(20);
set_val(PS4_LX, 55);
wait(20);
set_val(PS4_LX, 83);
wait(10);
set_val(PS4_LX, 100);
wait(10);
set_val(PS4_LX, 100);
set_val(PS4_SQUARE, 100);
wait(100);
set_val(PS4_LX, 0);
set_val(PS4_SQUARE, 100);
wait(10);
set_val(PS4_LX, -53);
set_val(PS4_SQUARE, 100);
wait(10);
set_val(PS4_LX, 0);
set_val(PS4_SQUARE, 100);
wait(10);
set_val(PS4_SQUARE, 0);
}
combo c_XsuCamdro {
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
// SQUARE
set_val(PS4_SQUARE, 100);
set_val(PS4_L2, 100);
wait(125); wait(125);
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(30); wait(30);
}
combo c_StraightPunchLeadKick {
set_val(PS4_TRIANGLE, 100);
wait(120);
set_val(PS4_TRIANGLE, 0);
wait(140);
set_val(PS4_CROSS, 100);
wait(80);
set_val(PS4_CROSS, 0);
}
combo c_JabLegKick {
set_val(PS4_SQUARE, 80);
wait(100);
wait(100);
set_val(PS4_CIRCLE, 80);
wait(50);
wait(50);
}
/* function f_color(c1, c2, c3, c4) {
set_led(LED_1, c1);
set_led(LED_2, c2);
set_led(LED_3, c3);
set_led(LED_4, c4);
}
*/
main { // remapping code
set_val(PS4_PS, 0);
set_val(PS4_SHARE, 0);
set_val(PS4_OPTIONS, 0);
}
-
VvV - Sergeant Major
- Posts: 87
- Joined: Mon Jun 18, 2018 12:04 pm
Re: Help with T2 Script
- Code: Select all
#pragma METAINFO("Mendas-T2-Takedown", 1, 0, "<Mendas-T2-Takedown>")
#include <titanone.gph>
// MuayThai 2
//Author: VvV
// Mapped to PS
// Mapped to LEFT
// Mapped to TOUCH
// Mapped to Down
// Mapped to L3
// Mapped to R3
// Mapped to RIGHT
// Square
// Circle
// unmap PS4_PS;
// unmap PS4_SHARE;
int active = FALSE;
init { led(0,0,255); }
main {
if (get_val(PS4_PS) && event_press(PS4_R1)) {
led(255,0,0);
combo_stop(c_2PeiceToTheHead);
combo_stop(c_2PeiceToTheHeadAndBody);
combo_run(c_2PeiceToTheHead1);
combo_run(c_2PeiceToTheHeadAndBody1);
}
if (get_val(PS4_SHARE)) {
combo_run(c_2PeiceToTheBody);
}
if (get_val(PS4_OPTIONS)) {
combo_run(c_2PeiceToTheBody2);
}
if (get_val(PS4_LEFT)) {
combo_run( c_2PeiceToTheHeadAndBody);
}
if (get_val(PS4_UP)) {
combo_run(c_2PeiceToTheHead);
}
if (get_val(PS4_TOUCH)) {
combo_run(c_StraightPunchLeadKick);
}
if (get_val(PS4_DOWN)) {
combo_run(c_Str8Uppercut);
}
if (get_val(PS4_L3)) {
combo_run(c_IronSharifCombo);
}
// Mapped to R3
if(get_val(PS4_R3)) {
combo_run(c_XsuCamdro);
}
if (get_val(PS4_RIGHT)) {
combo_run(c_Str8Uppercut2);
}
if ((get_val(PS4_R2)) && (get_val(PS4_LEFT))) {
combo_run(c_DenyLeft);
combo_stop(c_JabLegKick);
}
if ((get_val(PS4_R2)) && (get_val(PS4_RIGHT))) {
combo_run(c_DenyRight);
combo_stop(c_Str8Uppercut2);
}
if ((get_val(PS4_R2)) && (get_val(PS4_UP))) {
combo_run(c_DenyUp);
combo_stop(c_Str8Uppercut2);
}
if ((get_val(PS4_R2)) && (get_val(PS4_DOWN))) {
combo_run(c_DenyDown);
combo_stop(c_Str8Uppercut);
}
///////////////////// FAKES
if ((get_val(PS4_PS)) && (get_val(PS4_DOWN))) {
combo_run(c_FakeTransitionDown1);
combo_stop(c_Str8Uppercut);
}
if ((get_val(PS4_PS)) && (get_val(PS4_LEFT))) {
combo_run(c_FakeTransitionLeft1);
combo_stop(c_2PeiceToTheHeadAndBody);
}
if ((get_val(PS4_PS)) && (get_val(PS4_UP))) {
combo_run(c_FakeTransitionUp1);
combo_stop(c_2PeiceToTheHead);
}
if ((get_val(PS4_PS)) && (get_val(PS4_RIGHT))) {
combo_run(c_FakeTransitionRight1);
combo_stop(c_Str8Uppercut2);
}
// EXTRA
if ((get_val(PS4_L2)) && (get_val(PS4_DOWN))) {
combo_run(c_TAKEDOWN);
combo_stop(c_Str8Uppercut);
}
if ((get_val(PS4_SQUARE)) && (get_val(PS4_UP))) {
combo_run(c_GetUp);
combo_stop(c_Str8Uppercut);
}
}
combo c_GetUp {
// GET UP
set_val(PS4_SQUARE, 100);
set_val(PS4_RY, -100);
wait(1700);
}
combo c_HighTakedown {
set_val(PS4_RX, 100);
set_val(PS4_L2, 100);
set_val(PS4_L1, 100);
wait(1700);
}
combo c_TAKEDOWN {
set_val(PS4_RY, 100);
wait(1700);
set_val(PS4_RY, 0);
}
////////////////////////////////////////////////////////
/////////QUICK DENIALS
combo c_DenyLeft {
set_val(PS4_RX, -100);
wait(60);
set_val(PS4_RX, 0);
}
combo c_DenyRight {
set_val(PS4_RX, 100);
wait(80);
set_val(PS4_RX, 0);
}
combo c_DenyDown {
set_val(PS4_RY, 100);
wait(80);
set_val(PS4_RY, 0);
}
combo c_DenyUp {
set_val(PS4_RY, -100);
wait(80);
set_val(PS4_RY, 0);
}
////////////////////////////////////////////////
////// TRANSITION FAKES
combo c_FakeTransitionLeft1 {
set_val(PS4_RX, -100);
wait(250); // <- only right stick is pressed to the left
set_val(PS4_RX, -100);
set_val(BUTTON_7,100); wait(40); // <- right stick and L1
}
combo c_FakeTransitionRight1 {
set_val(PS4_RX, 100);
wait(250); // <- only right stick is pressed to the left
set_val(PS4_RX, 100);
set_val(BUTTON_7,100); wait(40); // <- right stick and L1
}
combo c_FakeTransitionDown1 {
set_val(PS4_RY, 100);
wait(250); // <- only right stick is pressed to the left
set_val(PS4_RY, 100);
set_val(BUTTON_7,100); wait(40); // <- right stick and L1
}
combo c_FakeTransitionUp1 {
set_val(PS4_RY, -100);
wait(250); // <- only right stick is pressed to the left
set_val(PS4_RY, -100);
set_val(BUTTON_7,100); wait(40); // <- right stick and L1
}
////////////////////////////////////////////////////////////////////////
////// COMBOS
combo c_Str8Uppercut {
set_val(PS4_TRIANGLE, 100);
wait(80);
set_val(PS4_LX, -30);
set_val(PS4_TRIANGLE, 100);
wait(10);
set_val(PS4_LX, -57);
set_val(PS4_TRIANGLE, 0);
wait(10);
set_val(PS4_LX, -94);
wait(10);
set_val(PS4_LX, -100);
wait(60);
set_val(PS4_LX, -100);
set_val(PS4_SQUARE, 100);
wait(80);
set_val(PS4_LX, 0);
set_val(PS4_SQUARE, 100);
wait(30);
set_val(PS4_SQUARE, 0);
}
combo c_IronSharifCombo {
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
// SQUARE
set_val(PS4_SQUARE, 100);
set_val(PS4_L2, 100);
wait(125); wait(125);
// Triangle
set_val(PS4_TRIANGLE, 100);
set_val(PS4_L2, 100);
wait(150); wait(150);
// SQUARE
set_val(PS4_SQUARE, 100);
set_val(PS4_L2, 100);
wait(40); wait(40);
}
combo c_2PeiceToTheBody {
// Triangle
set_val(PS4_L2, 100);
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
// SQUARE
set_val(PS4_L2, 100);
set_val(PS4_SQUARE, 100);
wait(100); wait(100);
//Dash Out
set_val(PS4_LX, -100);
wait(100); wait(100);
}
combo c_2PeiceToTheBody2 {
// Triangle
set_val(PS4_L2, 100);
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
// SQUARE
set_val(PS4_L2, 100);
set_val(PS4_SQUARE, 100);
wait(100); wait(100);
//Dash Out
set_val(PS4_LX, 100);
wait(100); wait(100);
}
/////////////////////////////////////////////////
///////// Red
combo c_2PeiceToTheHead1{
// SQUARE
set_val(PS4_SQUARE, 100);
wait(100); wait(100);
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
//Dash Out
set_val(PS4_LX, -100);
wait(100); wait(100);
}
combo c_2PeiceToTheHeadAndBody1 {
// JAB
set_val(PS4_SQUARE, 100);
wait(125); wait(125);
// STRAIGHT TO THE BODY
set_val(PS4_L2, 100);
set_val(PS4_TRIANGLE, 100);
wait(100); wait(100);
//Dash Out
set_val(PS4_LX, -100);
wait(100); wait(100);
led(0,0,255);
}
//////////////////////////////////////////////////////////////////////////////
//////////////// Blue
combo c_2PeiceToTheHead{
// SQUARE
set_val(PS4_SQUARE, 100);
wait(100); wait(100);
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
//Dash Out
set_val(PS4_LX, 100);
wait(100); wait(100);
}
combo c_2PeiceToTheHeadAndBody {
// JAB
set_val(PS4_SQUARE, 100);
wait(125); wait(125);
// STRAIGHT TO THE BODY
set_val(PS4_L2, 100);
set_val(PS4_TRIANGLE, 100);
wait(100); wait(100);
//Dash Out
set_val(PS4_LX, 100);
wait(100); wait(100);
}
combo c_Str8Uppercut2 {
set_val(PS4_TRIANGLE, 100);
wait(130);
set_val(PS4_TRIANGLE, 0);
wait(10);
set_val(PS4_LX, 34);
wait(20);
set_val(PS4_LX, 55);
wait(20);
set_val(PS4_LX, 83);
wait(10);
set_val(PS4_LX, 100);
wait(10);
set_val(PS4_LX, 100);
set_val(PS4_SQUARE, 100);
wait(100);
set_val(PS4_LX, 0);
set_val(PS4_SQUARE, 100);
wait(10);
set_val(PS4_LX, -53);
set_val(PS4_SQUARE, 100);
wait(10);
set_val(PS4_LX, 0);
set_val(PS4_SQUARE, 100);
wait(10);
set_val(PS4_SQUARE, 0);
}
combo c_XsuCamdro {
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
// SQUARE
set_val(PS4_SQUARE, 100);
set_val(PS4_L2, 100);
wait(125); wait(125);
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(30); wait(30);
}
combo c_StraightPunchLeadKick {
set_val(PS4_TRIANGLE, 100);
wait(120);
set_val(PS4_TRIANGLE, 0);
wait(140);
set_val(PS4_CROSS, 100);
wait(80);
set_val(PS4_CROSS, 0);
}
combo c_JabLegKick {
set_val(PS4_SQUARE, 80);
wait(100);
wait(100);
set_val(PS4_CIRCLE, 80);
wait(50);
wait(50);
}
void led(int8 r, int8 g, int8 b) {
led_set(LED_1, (fix32)b, 0);
led_set(LED_2, (fix32)r, 0);
led_set(LED_3, (fix32)g, 0);
return;
}
main { // remapping code
set_val(PS4_PS, 0);
set_val(PS4_SHARE, 0);
set_val(PS4_OPTIONS, 0);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
Re: Help with T2 Script
Mad wrote:
- Code: Select all
#pragma METAINFO("Mendas-T2-Takedown", 1, 0, "<Mendas-T2-Takedown>")
#include <titanone.gph>
// MuayThai 2
//Author: VvV
// Mapped to PS
// Mapped to LEFT
// Mapped to TOUCH
// Mapped to Down
// Mapped to L3
// Mapped to R3
// Mapped to RIGHT
// Square
// Circle
// unmap PS4_PS;
// unmap PS4_SHARE;
int active = FALSE;
init { led(0,0,255); }
main {
if (get_val(PS4_PS) && event_press(PS4_R1)) {
led(255,0,0);
combo_stop(c_2PeiceToTheHead);
combo_stop(c_2PeiceToTheHeadAndBody);
combo_run(c_2PeiceToTheHead1);
combo_run(c_2PeiceToTheHeadAndBody1);
}
if (get_val(PS4_SHARE)) {
combo_run(c_2PeiceToTheBody);
}
if (get_val(PS4_OPTIONS)) {
combo_run(c_2PeiceToTheBody2);
}
if (get_val(PS4_LEFT)) {
combo_run( c_2PeiceToTheHeadAndBody);
}
if (get_val(PS4_UP)) {
combo_run(c_2PeiceToTheHead);
}
if (get_val(PS4_TOUCH)) {
combo_run(c_StraightPunchLeadKick);
}
if (get_val(PS4_DOWN)) {
combo_run(c_Str8Uppercut);
}
if (get_val(PS4_L3)) {
combo_run(c_IronSharifCombo);
}
// Mapped to R3
if(get_val(PS4_R3)) {
combo_run(c_XsuCamdro);
}
if (get_val(PS4_RIGHT)) {
combo_run(c_Str8Uppercut2);
}
if ((get_val(PS4_R2)) && (get_val(PS4_LEFT))) {
combo_run(c_DenyLeft);
combo_stop(c_JabLegKick);
}
if ((get_val(PS4_R2)) && (get_val(PS4_RIGHT))) {
combo_run(c_DenyRight);
combo_stop(c_Str8Uppercut2);
}
if ((get_val(PS4_R2)) && (get_val(PS4_UP))) {
combo_run(c_DenyUp);
combo_stop(c_Str8Uppercut2);
}
if ((get_val(PS4_R2)) && (get_val(PS4_DOWN))) {
combo_run(c_DenyDown);
combo_stop(c_Str8Uppercut);
}
///////////////////// FAKES
if ((get_val(PS4_PS)) && (get_val(PS4_DOWN))) {
combo_run(c_FakeTransitionDown1);
combo_stop(c_Str8Uppercut);
}
if ((get_val(PS4_PS)) && (get_val(PS4_LEFT))) {
combo_run(c_FakeTransitionLeft1);
combo_stop(c_2PeiceToTheHeadAndBody);
}
if ((get_val(PS4_PS)) && (get_val(PS4_UP))) {
combo_run(c_FakeTransitionUp1);
combo_stop(c_2PeiceToTheHead);
}
if ((get_val(PS4_PS)) && (get_val(PS4_RIGHT))) {
combo_run(c_FakeTransitionRight1);
combo_stop(c_Str8Uppercut2);
}
// EXTRA
if ((get_val(PS4_L2)) && (get_val(PS4_DOWN))) {
combo_run(c_TAKEDOWN);
combo_stop(c_Str8Uppercut);
}
if ((get_val(PS4_SQUARE)) && (get_val(PS4_UP))) {
combo_run(c_GetUp);
combo_stop(c_Str8Uppercut);
}
}
combo c_GetUp {
// GET UP
set_val(PS4_SQUARE, 100);
set_val(PS4_RY, -100);
wait(1700);
}
combo c_HighTakedown {
set_val(PS4_RX, 100);
set_val(PS4_L2, 100);
set_val(PS4_L1, 100);
wait(1700);
}
combo c_TAKEDOWN {
set_val(PS4_RY, 100);
wait(1700);
set_val(PS4_RY, 0);
}
////////////////////////////////////////////////////////
/////////QUICK DENIALS
combo c_DenyLeft {
set_val(PS4_RX, -100);
wait(60);
set_val(PS4_RX, 0);
}
combo c_DenyRight {
set_val(PS4_RX, 100);
wait(80);
set_val(PS4_RX, 0);
}
combo c_DenyDown {
set_val(PS4_RY, 100);
wait(80);
set_val(PS4_RY, 0);
}
combo c_DenyUp {
set_val(PS4_RY, -100);
wait(80);
set_val(PS4_RY, 0);
}
////////////////////////////////////////////////
////// TRANSITION FAKES
combo c_FakeTransitionLeft1 {
set_val(PS4_RX, -100);
wait(250); // <- only right stick is pressed to the left
set_val(PS4_RX, -100);
set_val(BUTTON_7,100); wait(40); // <- right stick and L1
}
combo c_FakeTransitionRight1 {
set_val(PS4_RX, 100);
wait(250); // <- only right stick is pressed to the left
set_val(PS4_RX, 100);
set_val(BUTTON_7,100); wait(40); // <- right stick and L1
}
combo c_FakeTransitionDown1 {
set_val(PS4_RY, 100);
wait(250); // <- only right stick is pressed to the left
set_val(PS4_RY, 100);
set_val(BUTTON_7,100); wait(40); // <- right stick and L1
}
combo c_FakeTransitionUp1 {
set_val(PS4_RY, -100);
wait(250); // <- only right stick is pressed to the left
set_val(PS4_RY, -100);
set_val(BUTTON_7,100); wait(40); // <- right stick and L1
}
////////////////////////////////////////////////////////////////////////
////// COMBOS
combo c_Str8Uppercut {
set_val(PS4_TRIANGLE, 100);
wait(80);
set_val(PS4_LX, -30);
set_val(PS4_TRIANGLE, 100);
wait(10);
set_val(PS4_LX, -57);
set_val(PS4_TRIANGLE, 0);
wait(10);
set_val(PS4_LX, -94);
wait(10);
set_val(PS4_LX, -100);
wait(60);
set_val(PS4_LX, -100);
set_val(PS4_SQUARE, 100);
wait(80);
set_val(PS4_LX, 0);
set_val(PS4_SQUARE, 100);
wait(30);
set_val(PS4_SQUARE, 0);
}
combo c_IronSharifCombo {
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
// SQUARE
set_val(PS4_SQUARE, 100);
set_val(PS4_L2, 100);
wait(125); wait(125);
// Triangle
set_val(PS4_TRIANGLE, 100);
set_val(PS4_L2, 100);
wait(150); wait(150);
// SQUARE
set_val(PS4_SQUARE, 100);
set_val(PS4_L2, 100);
wait(40); wait(40);
}
combo c_2PeiceToTheBody {
// Triangle
set_val(PS4_L2, 100);
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
// SQUARE
set_val(PS4_L2, 100);
set_val(PS4_SQUARE, 100);
wait(100); wait(100);
//Dash Out
set_val(PS4_LX, -100);
wait(100); wait(100);
}
combo c_2PeiceToTheBody2 {
// Triangle
set_val(PS4_L2, 100);
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
// SQUARE
set_val(PS4_L2, 100);
set_val(PS4_SQUARE, 100);
wait(100); wait(100);
//Dash Out
set_val(PS4_LX, 100);
wait(100); wait(100);
}
/////////////////////////////////////////////////
///////// Red
combo c_2PeiceToTheHead1{
// SQUARE
set_val(PS4_SQUARE, 100);
wait(100); wait(100);
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
//Dash Out
set_val(PS4_LX, -100);
wait(100); wait(100);
}
combo c_2PeiceToTheHeadAndBody1 {
// JAB
set_val(PS4_SQUARE, 100);
wait(125); wait(125);
// STRAIGHT TO THE BODY
set_val(PS4_L2, 100);
set_val(PS4_TRIANGLE, 100);
wait(100); wait(100);
//Dash Out
set_val(PS4_LX, -100);
wait(100); wait(100);
led(0,0,255);
}
//////////////////////////////////////////////////////////////////////////////
//////////////// Blue
combo c_2PeiceToTheHead{
// SQUARE
set_val(PS4_SQUARE, 100);
wait(100); wait(100);
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
//Dash Out
set_val(PS4_LX, 100);
wait(100); wait(100);
}
combo c_2PeiceToTheHeadAndBody {
// JAB
set_val(PS4_SQUARE, 100);
wait(125); wait(125);
// STRAIGHT TO THE BODY
set_val(PS4_L2, 100);
set_val(PS4_TRIANGLE, 100);
wait(100); wait(100);
//Dash Out
set_val(PS4_LX, 100);
wait(100); wait(100);
}
combo c_Str8Uppercut2 {
set_val(PS4_TRIANGLE, 100);
wait(130);
set_val(PS4_TRIANGLE, 0);
wait(10);
set_val(PS4_LX, 34);
wait(20);
set_val(PS4_LX, 55);
wait(20);
set_val(PS4_LX, 83);
wait(10);
set_val(PS4_LX, 100);
wait(10);
set_val(PS4_LX, 100);
set_val(PS4_SQUARE, 100);
wait(100);
set_val(PS4_LX, 0);
set_val(PS4_SQUARE, 100);
wait(10);
set_val(PS4_LX, -53);
set_val(PS4_SQUARE, 100);
wait(10);
set_val(PS4_LX, 0);
set_val(PS4_SQUARE, 100);
wait(10);
set_val(PS4_SQUARE, 0);
}
combo c_XsuCamdro {
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
// SQUARE
set_val(PS4_SQUARE, 100);
set_val(PS4_L2, 100);
wait(125); wait(125);
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(30); wait(30);
}
combo c_StraightPunchLeadKick {
set_val(PS4_TRIANGLE, 100);
wait(120);
set_val(PS4_TRIANGLE, 0);
wait(140);
set_val(PS4_CROSS, 100);
wait(80);
set_val(PS4_CROSS, 0);
}
combo c_JabLegKick {
set_val(PS4_SQUARE, 80);
wait(100);
wait(100);
set_val(PS4_CIRCLE, 80);
wait(50);
wait(50);
}
void led(int8 r, int8 g, int8 b) {
led_set(LED_1, (fix32)b, 0);
led_set(LED_2, (fix32)r, 0);
led_set(LED_3, (fix32)g, 0);
return;
}
main { // remapping code
set_val(PS4_PS, 0);
set_val(PS4_SHARE, 0);
set_val(PS4_OPTIONS, 0);
}
Hi Mad thanks for the help.
When I hold the buttons to make the color change, The LED light only flashes red for a second and then turns back to blue.
Is there a way I can make it so the Lights Stay Red until I hit the activation buttons again?
I'm trying to use PS4_PS & PS4_L2 as a switch to cycle between the colors.
I Also changed it to PS + L2 since PS + R1 is used to cycle between slots. You can leave it as R1 and I'll just switch it to L2 on my end.
I changed the activation buttons for this combo to PS4_PS & PS4_UP since PS4_PS & PS4_R1 is used to changed between slots.
-
VvV - Sergeant Major
- Posts: 87
- Joined: Mon Jun 18, 2018 12:04 pm
Re: Help with T2 Script
(hold) PS + (press) R1 isn't used to switch slots, it is (hold) R1 + (press) PS.
But the PS gets not send to the output in both cases. Using "get_lval" instead of "get_val" allows you to use this button combination for your script.
Try if this one works for you:
But the PS gets not send to the output in both cases. Using "get_lval" instead of "get_val" allows you to use this button combination for your script.
Try if this one works for you:
- Code: Select all
#pragma METAINFO("Mendas-T2-Takedown", 1, 0, "<Mendas-T2-Takedown>")
#include <titanone.gph>
// MuayThai 2
//Author: VvV
// Mapped to PS
// Mapped to LEFT
// Mapped to TOUCH
// Mapped to Down
// Mapped to L3
// Mapped to R3
// Mapped to RIGHT
// Square
// Circle
// unmap PS4_PS;
// unmap PS4_SHARE;
int active = FALSE;
init { led(0,0,255); }
int modeRED = FALSE;
main {
if (get_lval(PS4_PS) && event_press(PS4_R1)) {
modeRED = !modeRED;
if (modeRED) led(255,0,0);
else led(0,0,255);
}
if (get_val(PS4_SHARE)) {
combo_run(c_2PeiceToTheBody);
}
if (get_val(PS4_OPTIONS)) {
combo_run(c_2PeiceToTheBody2);
}
if (get_val(PS4_LEFT)) {
if (!modeRED) combo_run(c_2PeiceToTheHeadAndBody);
else combo_run(c_2PeiceToTheHeadAndBody1);
}
if (get_val(PS4_UP)) {
if (!modeRED) combo_run(c_2PeiceToTheHead);
else combo_run(c_2PeiceToTheHead1);
}
if (get_val(PS4_TOUCH)) {
combo_run(c_StraightPunchLeadKick);
}
if (get_val(PS4_DOWN)) {
combo_run(c_Str8Uppercut);
}
if (get_val(PS4_L3)) {
combo_run(c_IronSharifCombo);
}
// Mapped to R3
if(get_val(PS4_R3)) {
combo_run(c_XsuCamdro);
}
if (get_val(PS4_RIGHT)) {
combo_run(c_Str8Uppercut2);
}
if ((get_val(PS4_R2)) && (get_val(PS4_LEFT))) {
combo_run(c_DenyLeft);
combo_stop(c_JabLegKick);
}
if ((get_val(PS4_R2)) && (get_val(PS4_RIGHT))) {
combo_run(c_DenyRight);
combo_stop(c_Str8Uppercut2);
}
if ((get_val(PS4_R2)) && (get_val(PS4_UP))) {
combo_run(c_DenyUp);
combo_stop(c_Str8Uppercut2);
}
if ((get_val(PS4_R2)) && (get_val(PS4_DOWN))) {
combo_run(c_DenyDown);
combo_stop(c_Str8Uppercut);
}
///////////////////// FAKES
if ((get_val(PS4_PS)) && (get_val(PS4_DOWN))) {
combo_run(c_FakeTransitionDown1);
combo_stop(c_Str8Uppercut);
}
if ((get_val(PS4_PS)) && (get_val(PS4_LEFT))) {
combo_run(c_FakeTransitionLeft1);
combo_stop(c_2PeiceToTheHeadAndBody);
}
if ((get_val(PS4_PS)) && (get_val(PS4_UP))) {
combo_run(c_FakeTransitionUp1);
combo_stop(c_2PeiceToTheHead);
}
if ((get_val(PS4_PS)) && (get_val(PS4_RIGHT))) {
combo_run(c_FakeTransitionRight1);
combo_stop(c_Str8Uppercut2);
}
// EXTRA
if ((get_val(PS4_L2)) && (get_val(PS4_DOWN))) {
combo_run(c_TAKEDOWN);
combo_stop(c_Str8Uppercut);
}
if ((get_val(PS4_SQUARE)) && (get_val(PS4_UP))) {
combo_run(c_GetUp);
combo_stop(c_Str8Uppercut);
}
}
combo c_GetUp {
// GET UP
set_val(PS4_SQUARE, 100);
set_val(PS4_RY, -100);
wait(1700);
}
combo c_HighTakedown {
set_val(PS4_RX, 100);
set_val(PS4_L2, 100);
set_val(PS4_L1, 100);
wait(1700);
}
combo c_TAKEDOWN {
set_val(PS4_RY, 100);
wait(1700);
set_val(PS4_RY, 0);
}
////////////////////////////////////////////////////////
/////////QUICK DENIALS
combo c_DenyLeft {
set_val(PS4_RX, -100);
wait(60);
set_val(PS4_RX, 0);
}
combo c_DenyRight {
set_val(PS4_RX, 100);
wait(80);
set_val(PS4_RX, 0);
}
combo c_DenyDown {
set_val(PS4_RY, 100);
wait(80);
set_val(PS4_RY, 0);
}
combo c_DenyUp {
set_val(PS4_RY, -100);
wait(80);
set_val(PS4_RY, 0);
}
////////////////////////////////////////////////
////// TRANSITION FAKES
combo c_FakeTransitionLeft1 {
set_val(PS4_RX, -100);
wait(250); // <- only right stick is pressed to the left
set_val(PS4_RX, -100);
set_val(BUTTON_7,100); wait(40); // <- right stick and L1
}
combo c_FakeTransitionRight1 {
set_val(PS4_RX, 100);
wait(250); // <- only right stick is pressed to the left
set_val(PS4_RX, 100);
set_val(BUTTON_7,100); wait(40); // <- right stick and L1
}
combo c_FakeTransitionDown1 {
set_val(PS4_RY, 100);
wait(250); // <- only right stick is pressed to the left
set_val(PS4_RY, 100);
set_val(BUTTON_7,100); wait(40); // <- right stick and L1
}
combo c_FakeTransitionUp1 {
set_val(PS4_RY, -100);
wait(250); // <- only right stick is pressed to the left
set_val(PS4_RY, -100);
set_val(BUTTON_7,100); wait(40); // <- right stick and L1
}
////////////////////////////////////////////////////////////////////////
////// COMBOS
combo c_Str8Uppercut {
set_val(PS4_TRIANGLE, 100);
wait(80);
set_val(PS4_LX, -30);
set_val(PS4_TRIANGLE, 100);
wait(10);
set_val(PS4_LX, -57);
set_val(PS4_TRIANGLE, 0);
wait(10);
set_val(PS4_LX, -94);
wait(10);
set_val(PS4_LX, -100);
wait(60);
set_val(PS4_LX, -100);
set_val(PS4_SQUARE, 100);
wait(80);
set_val(PS4_LX, 0);
set_val(PS4_SQUARE, 100);
wait(30);
set_val(PS4_SQUARE, 0);
}
combo c_IronSharifCombo {
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
// SQUARE
set_val(PS4_SQUARE, 100);
set_val(PS4_L2, 100);
wait(125); wait(125);
// Triangle
set_val(PS4_TRIANGLE, 100);
set_val(PS4_L2, 100);
wait(150); wait(150);
// SQUARE
set_val(PS4_SQUARE, 100);
set_val(PS4_L2, 100);
wait(40); wait(40);
}
combo c_2PeiceToTheBody {
// Triangle
set_val(PS4_L2, 100);
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
// SQUARE
set_val(PS4_L2, 100);
set_val(PS4_SQUARE, 100);
wait(100); wait(100);
//Dash Out
set_val(PS4_LX, -100);
wait(100); wait(100);
}
combo c_2PeiceToTheBody2 {
// Triangle
set_val(PS4_L2, 100);
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
// SQUARE
set_val(PS4_L2, 100);
set_val(PS4_SQUARE, 100);
wait(100); wait(100);
//Dash Out
set_val(PS4_LX, 100);
wait(100); wait(100);
}
/////////////////////////////////////////////////
///////// Red
combo c_2PeiceToTheHead1{
// SQUARE
set_val(PS4_SQUARE, 100);
wait(100); wait(100);
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
//Dash Out
set_val(PS4_LX, -100);
wait(100); wait(100);
}
combo c_2PeiceToTheHeadAndBody1 {
// JAB
set_val(PS4_SQUARE, 100);
wait(125); wait(125);
// STRAIGHT TO THE BODY
set_val(PS4_L2, 100);
set_val(PS4_TRIANGLE, 100);
wait(100); wait(100);
//Dash Out
set_val(PS4_LX, -100);
wait(100); wait(100);
}
//////////////////////////////////////////////////////////////////////////////
//////////////// Blue
combo c_2PeiceToTheHead{
// SQUARE
set_val(PS4_SQUARE, 100);
wait(100); wait(100);
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
//Dash Out
set_val(PS4_LX, 100);
wait(100); wait(100);
}
combo c_2PeiceToTheHeadAndBody {
// JAB
set_val(PS4_SQUARE, 100);
wait(125); wait(125);
// STRAIGHT TO THE BODY
set_val(PS4_L2, 100);
set_val(PS4_TRIANGLE, 100);
wait(100); wait(100);
//Dash Out
set_val(PS4_LX, 100);
wait(100); wait(100);
}
combo c_Str8Uppercut2 {
set_val(PS4_TRIANGLE, 100);
wait(130);
set_val(PS4_TRIANGLE, 0);
wait(10);
set_val(PS4_LX, 34);
wait(20);
set_val(PS4_LX, 55);
wait(20);
set_val(PS4_LX, 83);
wait(10);
set_val(PS4_LX, 100);
wait(10);
set_val(PS4_LX, 100);
set_val(PS4_SQUARE, 100);
wait(100);
set_val(PS4_LX, 0);
set_val(PS4_SQUARE, 100);
wait(10);
set_val(PS4_LX, -53);
set_val(PS4_SQUARE, 100);
wait(10);
set_val(PS4_LX, 0);
set_val(PS4_SQUARE, 100);
wait(10);
set_val(PS4_SQUARE, 0);
}
combo c_XsuCamdro {
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
// SQUARE
set_val(PS4_SQUARE, 100);
set_val(PS4_L2, 100);
wait(125); wait(125);
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(30); wait(30);
}
combo c_StraightPunchLeadKick {
set_val(PS4_TRIANGLE, 100);
wait(120);
set_val(PS4_TRIANGLE, 0);
wait(140);
set_val(PS4_CROSS, 100);
wait(80);
set_val(PS4_CROSS, 0);
}
combo c_JabLegKick {
set_val(PS4_SQUARE, 80);
wait(100);
wait(100);
set_val(PS4_CIRCLE, 80);
wait(50);
wait(50);
}
void led(int8 r, int8 g, int8 b) {
led_set(LED_1, (fix32)b, 0);
led_set(LED_2, (fix32)r, 0);
led_set(LED_3, (fix32)g, 0);
return;
}
main { // remapping code
set_val(PS4_PS, 0);
set_val(PS4_SHARE, 0);
set_val(PS4_OPTIONS, 0);
}
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
Re: Help with T2 Script
Scachi wrote:(hold) PS + (press) R1 isn't used to switch slots, it is (hold) R1 + (press) PS.
But the PS gets not send to the output in both cases. Using "get_lval" instead of "get_val" allows you to use this button combination for your script.
Try if this one works for you:
- Code: Select all
#pragma METAINFO("Mendas-T2-Takedown", 1, 0, "<Mendas-T2-Takedown>")
#include <titanone.gph>
// MuayThai 2
//Author: VvV
// Mapped to PS
// Mapped to LEFT
// Mapped to TOUCH
// Mapped to Down
// Mapped to L3
// Mapped to R3
// Mapped to RIGHT
// Square
// Circle
// unmap PS4_PS;
// unmap PS4_SHARE;
int active = FALSE;
init { led(0,0,255); }
int modeRED = FALSE;
main {
if (get_lval(PS4_PS) && event_press(PS4_R1)) {
modeRED = !modeRED;
if (modeRED) led(255,0,0);
else led(0,0,255);
}
if (get_val(PS4_SHARE)) {
combo_run(c_2PeiceToTheBody);
}
if (get_val(PS4_OPTIONS)) {
combo_run(c_2PeiceToTheBody2);
}
if (get_val(PS4_LEFT)) {
if (!modeRED) combo_run(c_2PeiceToTheHeadAndBody);
else combo_run(c_2PeiceToTheHeadAndBody1);
}
if (get_val(PS4_UP)) {
if (!modeRED) combo_run(c_2PeiceToTheHead);
else combo_run(c_2PeiceToTheHead1);
}
if (get_val(PS4_TOUCH)) {
combo_run(c_StraightPunchLeadKick);
}
if (get_val(PS4_DOWN)) {
combo_run(c_Str8Uppercut);
}
if (get_val(PS4_L3)) {
combo_run(c_IronSharifCombo);
}
// Mapped to R3
if(get_val(PS4_R3)) {
combo_run(c_XsuCamdro);
}
if (get_val(PS4_RIGHT)) {
combo_run(c_Str8Uppercut2);
}
if ((get_val(PS4_R2)) && (get_val(PS4_LEFT))) {
combo_run(c_DenyLeft);
combo_stop(c_JabLegKick);
}
if ((get_val(PS4_R2)) && (get_val(PS4_RIGHT))) {
combo_run(c_DenyRight);
combo_stop(c_Str8Uppercut2);
}
if ((get_val(PS4_R2)) && (get_val(PS4_UP))) {
combo_run(c_DenyUp);
combo_stop(c_Str8Uppercut2);
}
if ((get_val(PS4_R2)) && (get_val(PS4_DOWN))) {
combo_run(c_DenyDown);
combo_stop(c_Str8Uppercut);
}
///////////////////// FAKES
if ((get_val(PS4_PS)) && (get_val(PS4_DOWN))) {
combo_run(c_FakeTransitionDown1);
combo_stop(c_Str8Uppercut);
}
if ((get_val(PS4_PS)) && (get_val(PS4_LEFT))) {
combo_run(c_FakeTransitionLeft1);
combo_stop(c_2PeiceToTheHeadAndBody);
}
if ((get_val(PS4_PS)) && (get_val(PS4_UP))) {
combo_run(c_FakeTransitionUp1);
combo_stop(c_2PeiceToTheHead);
}
if ((get_val(PS4_PS)) && (get_val(PS4_RIGHT))) {
combo_run(c_FakeTransitionRight1);
combo_stop(c_Str8Uppercut2);
}
// EXTRA
if ((get_val(PS4_L2)) && (get_val(PS4_DOWN))) {
combo_run(c_TAKEDOWN);
combo_stop(c_Str8Uppercut);
}
if ((get_val(PS4_SQUARE)) && (get_val(PS4_UP))) {
combo_run(c_GetUp);
combo_stop(c_Str8Uppercut);
}
}
combo c_GetUp {
// GET UP
set_val(PS4_SQUARE, 100);
set_val(PS4_RY, -100);
wait(1700);
}
combo c_HighTakedown {
set_val(PS4_RX, 100);
set_val(PS4_L2, 100);
set_val(PS4_L1, 100);
wait(1700);
}
combo c_TAKEDOWN {
set_val(PS4_RY, 100);
wait(1700);
set_val(PS4_RY, 0);
}
////////////////////////////////////////////////////////
/////////QUICK DENIALS
combo c_DenyLeft {
set_val(PS4_RX, -100);
wait(60);
set_val(PS4_RX, 0);
}
combo c_DenyRight {
set_val(PS4_RX, 100);
wait(80);
set_val(PS4_RX, 0);
}
combo c_DenyDown {
set_val(PS4_RY, 100);
wait(80);
set_val(PS4_RY, 0);
}
combo c_DenyUp {
set_val(PS4_RY, -100);
wait(80);
set_val(PS4_RY, 0);
}
////////////////////////////////////////////////
////// TRANSITION FAKES
combo c_FakeTransitionLeft1 {
set_val(PS4_RX, -100);
wait(250); // <- only right stick is pressed to the left
set_val(PS4_RX, -100);
set_val(BUTTON_7,100); wait(40); // <- right stick and L1
}
combo c_FakeTransitionRight1 {
set_val(PS4_RX, 100);
wait(250); // <- only right stick is pressed to the left
set_val(PS4_RX, 100);
set_val(BUTTON_7,100); wait(40); // <- right stick and L1
}
combo c_FakeTransitionDown1 {
set_val(PS4_RY, 100);
wait(250); // <- only right stick is pressed to the left
set_val(PS4_RY, 100);
set_val(BUTTON_7,100); wait(40); // <- right stick and L1
}
combo c_FakeTransitionUp1 {
set_val(PS4_RY, -100);
wait(250); // <- only right stick is pressed to the left
set_val(PS4_RY, -100);
set_val(BUTTON_7,100); wait(40); // <- right stick and L1
}
////////////////////////////////////////////////////////////////////////
////// COMBOS
combo c_Str8Uppercut {
set_val(PS4_TRIANGLE, 100);
wait(80);
set_val(PS4_LX, -30);
set_val(PS4_TRIANGLE, 100);
wait(10);
set_val(PS4_LX, -57);
set_val(PS4_TRIANGLE, 0);
wait(10);
set_val(PS4_LX, -94);
wait(10);
set_val(PS4_LX, -100);
wait(60);
set_val(PS4_LX, -100);
set_val(PS4_SQUARE, 100);
wait(80);
set_val(PS4_LX, 0);
set_val(PS4_SQUARE, 100);
wait(30);
set_val(PS4_SQUARE, 0);
}
combo c_IronSharifCombo {
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
// SQUARE
set_val(PS4_SQUARE, 100);
set_val(PS4_L2, 100);
wait(125); wait(125);
// Triangle
set_val(PS4_TRIANGLE, 100);
set_val(PS4_L2, 100);
wait(150); wait(150);
// SQUARE
set_val(PS4_SQUARE, 100);
set_val(PS4_L2, 100);
wait(40); wait(40);
}
combo c_2PeiceToTheBody {
// Triangle
set_val(PS4_L2, 100);
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
// SQUARE
set_val(PS4_L2, 100);
set_val(PS4_SQUARE, 100);
wait(100); wait(100);
//Dash Out
set_val(PS4_LX, -100);
wait(100); wait(100);
}
combo c_2PeiceToTheBody2 {
// Triangle
set_val(PS4_L2, 100);
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
// SQUARE
set_val(PS4_L2, 100);
set_val(PS4_SQUARE, 100);
wait(100); wait(100);
//Dash Out
set_val(PS4_LX, 100);
wait(100); wait(100);
}
/////////////////////////////////////////////////
///////// Red
combo c_2PeiceToTheHead1{
// SQUARE
set_val(PS4_SQUARE, 100);
wait(100); wait(100);
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
//Dash Out
set_val(PS4_LX, -100);
wait(100); wait(100);
}
combo c_2PeiceToTheHeadAndBody1 {
// JAB
set_val(PS4_SQUARE, 100);
wait(125); wait(125);
// STRAIGHT TO THE BODY
set_val(PS4_L2, 100);
set_val(PS4_TRIANGLE, 100);
wait(100); wait(100);
//Dash Out
set_val(PS4_LX, -100);
wait(100); wait(100);
}
//////////////////////////////////////////////////////////////////////////////
//////////////// Blue
combo c_2PeiceToTheHead{
// SQUARE
set_val(PS4_SQUARE, 100);
wait(100); wait(100);
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
//Dash Out
set_val(PS4_LX, 100);
wait(100); wait(100);
}
combo c_2PeiceToTheHeadAndBody {
// JAB
set_val(PS4_SQUARE, 100);
wait(125); wait(125);
// STRAIGHT TO THE BODY
set_val(PS4_L2, 100);
set_val(PS4_TRIANGLE, 100);
wait(100); wait(100);
//Dash Out
set_val(PS4_LX, 100);
wait(100); wait(100);
}
combo c_Str8Uppercut2 {
set_val(PS4_TRIANGLE, 100);
wait(130);
set_val(PS4_TRIANGLE, 0);
wait(10);
set_val(PS4_LX, 34);
wait(20);
set_val(PS4_LX, 55);
wait(20);
set_val(PS4_LX, 83);
wait(10);
set_val(PS4_LX, 100);
wait(10);
set_val(PS4_LX, 100);
set_val(PS4_SQUARE, 100);
wait(100);
set_val(PS4_LX, 0);
set_val(PS4_SQUARE, 100);
wait(10);
set_val(PS4_LX, -53);
set_val(PS4_SQUARE, 100);
wait(10);
set_val(PS4_LX, 0);
set_val(PS4_SQUARE, 100);
wait(10);
set_val(PS4_SQUARE, 0);
}
combo c_XsuCamdro {
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(125); wait(125);
// SQUARE
set_val(PS4_SQUARE, 100);
set_val(PS4_L2, 100);
wait(125); wait(125);
// Triangle
set_val(PS4_TRIANGLE, 100);
wait(30); wait(30);
}
combo c_StraightPunchLeadKick {
set_val(PS4_TRIANGLE, 100);
wait(120);
set_val(PS4_TRIANGLE, 0);
wait(140);
set_val(PS4_CROSS, 100);
wait(80);
set_val(PS4_CROSS, 0);
}
combo c_JabLegKick {
set_val(PS4_SQUARE, 80);
wait(100);
wait(100);
set_val(PS4_CIRCLE, 80);
wait(50);
wait(50);
}
void led(int8 r, int8 g, int8 b) {
led_set(LED_1, (fix32)b, 0);
led_set(LED_2, (fix32)r, 0);
led_set(LED_3, (fix32)g, 0);
return;
}
main { // remapping code
set_val(PS4_PS, 0);
set_val(PS4_SHARE, 0);
set_val(PS4_OPTIONS, 0);
}
This right here is exactly what i was looking for Thanks again Scachi & Mad
-
VvV - Sergeant Major
- Posts: 87
- Joined: Mon Jun 18, 2018 12:04 pm
5 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: midg3t2 and 168 guests