/*
GTA V: Explosive Spam Glitch
Description
-----------
While using an explosive weapon like the RPG and holding R2 the script will spam the "RPG spam glitch", where the reload animation of the RPG is cancelled (still actually reloads).
The glitch works like this - Shoot RPG > Switch to grenade > switch to rpg > shoot again! For some reason switching to the grenades cancels the RPG reload while stil actually reloading it.
*Tested with RPG, Homing Launcher, and compact grenade launcher
Requirements
------------
1. Equip a grenade on the grenade slot (don't use it your hand).
2. Have an explosive weapon like the RPG in your hand
Instructions
------------
Enable the script with the share button (SHARE menu is disabled with this script, the input is not sent to the console)
1. Take out an RPG (or any compatible explosive weapon)
2. Hold R2
*/
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(get_val(PS4_R2)> 10 && active)
{
combo_run(spam_rocket)
}
else if(event_release(PS4_R2))
{
combo_stop(spam_rocket)
}
}
combo spam_rocket
{
///Wait for shot
wait(210)
//switch to grenade
set_val(PS4_L1, 100)
wait(180)
set_val(PS4_L1, 100)
set_val(PS4_RX, -85)
set_val(PS4_RY, -85)
wait(45)
set_val(PS4_RX, 0)
set_val(PS4_RY, 0)
set_val(PS4_L1, 0)
wait(50)
//switch back to RPG
set_val(PS4_L1, 100)
wait(180)
set_val(PS4_L1, 100)
set_val(PS4_RX, -100)
wait(45)
set_val(PS4_L1, 0)
wait(100)
}
//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);
}