// GPC Online Library
// gta_v_partial_assisted_aim_headshot_helper.gpc
/*
GTA V: Partial Assisted Aim Headshot Helper
Note: Tested with default settings. Different settings may give different results, you can adjust the script through trial and error down below til you find values that you like.
*You can go back to default settings on the PS4 by holding L1 + R1 on game startup until you get the brightness calibration screen.
Instructions
------------
Enable/Disable the script with the SHARE button. (Red LED = ON, Blue LED = OFF)
Do this in order:
1. Hold the headshot button (default: R1).
2. Hold the aim button. (Get the aim assist to lock on to someone)
3. Hold the shoot button.
By default the script will push the right stick up 62% of the way and after 560 miliseconds it will stop.
I suggest using the Control Type Standard FPS 2 because R1 becomes sprint.
*/
//Controls
define aimButton = PS4_L2;
define shootButton = PS4_R2;
define headshotButton = PS4_R1;
//Headshot Variables - (may want to change this if you aren't using default settings or don't like these values)
int cameraSpeed = -62; //How far it pushes the right stick up (default: 62% of the way)
int stopTime = 560; //How long it waits to stop moving the camera (default: 560 miliseconds)
int active = FALSE;
main
{
if(event_press(PS4_SHARE))
{
active = !active
}
if(get_val(PS4_SHARE) == 100)
{
set_val(PS4_SHARE, 0)
}
if(active)
{
color(0,1,0,0)
}
else
{
color(1,0,0,0)
}
if(active && (get_val(aimButton) > 10 && get_val(headshotButton) == 100 && event_press(shootButton)) || (get_val(shootButton) > 10 && get_val(headshotButton) == 100 && event_press(aimButton)) )
{
combo_run(auto_head)
}
else if(event_release(aimButton) || event_release(headshotButton))
{
combo_stop(auto_head)
}
}
combo auto_head
{
set_val(PS4_RY, cameraSpeed)
wait(stopTime)
}
//Set LED Colors
function 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);
}