Help regarding script

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

Help regarding script

Postby Beryl » Thu Jan 19, 2023 1:40 am

Can anyone explain the lowest and highest figures i can use for this sensitivity script? Just looking to slow my Left Analog down when im down scope as i find i over aim when i move it. Thanks


#define SENSITIVITY 2.0

main {
if (get_val(BUTTON_9)) {
set_val(STICK_1_X, clamp(get_val(STICK_1_X) * SENSITIVITY, -100.0, 100.0));
set_val(STICK_1_Y, clamp(get_val(STICK_1_Y) * SENSITIVITY, -100.0, 100.0));
}
}
User avatar
Beryl
Command Sergeant Major
Command Sergeant Major
 
Posts: 174
Joined: Fri Nov 27, 2020 7:47 pm

Re: Help regarding script

Postby Tahsin » Sun Jan 22, 2023 10:05 am

Code: Select all
#define SENSITIVITY 2.0     // Adjust this figure from 2.0 to upwards or downwards to increase or decrease sensitivity
User avatar
Tahsin
Sergeant Major
Sergeant Major
 
Posts: 98
Joined: Wed May 15, 2019 7:57 am


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 32 guests