LS 720 degree spin [Request]

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

LS 720 degree spin [Request]

Postby Jazzin » Tue Dec 24, 2019 3:28 am

Hey everyone,

Does anyone have a script that will spin the LS either 360 degrees or 720 degrees at the press of a button?

Example: Pressing in the LS (or BUTTON_9) with cause the LS to rotate 720 degrees starting from 12 o'clock going clockwise.

I have been looking into FIFA scripts bc I know you use one of the sticks for tricks, but I haven't had any luck.

Incase you're wondering, this is for Dead by Daylight. An example is in this video https://www.youtube.com/watch?v=mA9sKitu49w
I am just looking for a script that will only control the LS spin.

Thanks in advance!

Edit: I also know that this depends a lot on timing of how fast the spin is. Is there a way that I can record my controller movements and turn that into a script?
User avatar
Jazzin
Staff Sergeant
Staff Sergeant
 
Posts: 11
Joined: Wed Jul 16, 2014 8:35 pm

Re: LS 720 degree spin [Request]

Postby Mad » Tue Dec 24, 2019 3:55 am

Code: Select all
#define SPIN_TIME 500 // Adjust (ms)
 
main {
  if(event_active(BUTTON_9)) combo_run(Spin);
}
 
combo Spin {
  set_val(STICK_2_X, 100);
  wait(SPIN_TIME);
}


You can use this to print out the hold time in Gtuner:
Code: Select all
main {
  if(event_release(STICK_2_X)) {
    printf("%.2f", (fix32)time_active(STICK_2_X));
  }
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 207 guests

cron