Can I use Impulse Trigger Vibration?
5 posts
• Page 1 of 1
Can I use Impulse Trigger Vibration?
I want to use the impulse trigger of the Xbox one controller. When Every time rumble.
I have a script I used before.
Can I fix this script normally?
Impulse triggers are a lot of fun for driving games.
I wish impulse rumble can be used by many users
I have a script I used before.
Can I fix this script normally?
Impulse triggers are a lot of fun for driving games.
I wish impulse rumble can be used by many users
- Code: Select all
if (get_controller() == PIO_XB1) {
if (get_rumble(RUMBLE_A) == 0 && get_rumble(RUMBLE_B) == 0) {
set_rumble(RUMBLE_RT, 0);
} else {
if (get_rumble(RUMBLE_A) > 0 && get_rumble(RUMBLE_B) > 0) {
set_rumble(RUMBLE_RT, 5); //both rumble(1~100))
} else if (get_rumble(RUMBLE_A) == 0) {
set_rumble(RUMBLE_RT, 5); //right rumble (1~100))
} else if (get_rumble(RUMBLE_B) == 0) {
set_rumble(RUMBLE_RT, 5); //left rumble (1~100))
}
}
} else {
set_rumble(RUMBLE_RT, 0);
}
-
feverage - Sergeant First Class
- Posts: 19
- Joined: Sat Jun 09, 2018 2:11 am
Re: Can I use Impulse Trigger Vibration?
Simplified the posted code for the Titan Two, it should work the same as the original.
- Code: Select all
main {
if(ffb_get_actual(FFB_1, NULL) || ffb_get_actual(FFB_2, NULL)) {
combo_run(ImpuseTrigger);
}
}
combo ImpuseTrigger {
ffb_set(FFB_3, 5.0, 250);
wait(0); wait(200);
}
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Can I use Impulse Trigger Vibration?
Thanks for the script!
It works very well with Impulse Trigger.
But the basic rumble has disappeared.
I want to experience basic vibration and impulse trigger together.
How do I apply all the rumbles?
It works very well with Impulse Trigger.
But the basic rumble has disappeared.
I want to experience basic vibration and impulse trigger together.
How do I apply all the rumbles?
-
feverage - Sergeant First Class
- Posts: 19
- Joined: Sat Jun 09, 2018 2:11 am
Re: Can I use Impulse Trigger Vibration?
you are right, the changes below will re-enable the original rumble.
- Code: Select all
fix32 ffb_1_speed, ffb_2_speed;
uint32 ffb_1_duration, ffb_2_duration;
main {
ffb_1_speed = ffb_get_actual(FFB_1, &ffb_1_duration);
ffb_2_speed = ffb_get_actual(FFB_2, &ffb_2_duration);
if(ffb_1_speed || ffb_2_speed) {
combo_run(ImpuseTrigger);
}
}
combo ImpuseTrigger {
ffb_set(FFB_1, ffb_1_speed, ffb_1_duration);
ffb_set(FFB_2, ffb_2_speed, ffb_2_duration);
ffb_set(FFB_3, 5.0, 250);
wait(0); wait(200);
}
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Can I use Impulse Trigger Vibration?
Thanks to you, I have solved one important thing in game life.
Let`s enjoy!!
Let`s enjoy!!
-
feverage - Sergeant First Class
- Posts: 19
- Joined: Sat Jun 09, 2018 2:11 am
5 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: Majestic-12 [Bot], midg3t2 and 61 guests