/*
COD: Hold a Zombie
Holds zombie at the end of a round so you and your friends can catch a break.
*Tested on Call of Duty: Black Ops 3 but I imagine it works on other COD Zombie games (You can adjust the script down below).
Instructions
------------
1. Go to a spot with enough space.
2. Press the SHARE button to Enable/Disable.
Note: Once the zombie falls in line with your character and the circle he/she makes when walking, then they should not be able to hit you.
However sometimes when holding multiple zombies one of them can die, respawn and when they come back they might hit you once or twice or worse, corner you and kill you.
*/
int radius = 64; // valid values are 0 - 100 (default: 64). The higher the number, the smaller the circle your character makes when walking + holding zombie.
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)
{
set_val(PS4_LY, -75)
set_val(PS4_LX, -75)
set_val(PS4_RX, radius)
}
}
//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);
}