GPC Library

Zombies Player Reviving Script (Around a player)


This is an Easy Player Reviving Script for Zombies

All you have to do is press L2 + SQUARE to activate it

When activated the script it holds the SQUARE button
for 5 seconds and the LED will go red.

After 5 seconds it will disable automatically for you or
you disable it manually by pressing R2 / L3 (Shoot / Sprint)

-------------------------------------------------------------------------------

Additional Features:

- Haptic Feedback when activating
- LED indicator for activation state
- automatically disabling of the script when hopefully the job is done 🙂
Version 1
Author Zitroneee
Publish Date 2018-01-10 17:15:24
Update Date 2018-01-10 17:15:24
Downloads 113
RATE


1

0

Release Notes: - Initial Release
Code:Select all
/***********************************************************************
*                                                                      *
*      This is an Easy Player Reviving Script for Zombies	    	   *
*                                                                      *
*     All you have to do is press L2 + SQUARE to activate it		   *
*                                                                      *
*  		  When activated the script it holds the SQUARE button         *
*    	       for 5 seconds and the LED will go red		           * 
*                                                                      *
*       After 5 seconds it will disable automatically for you or       *
*     you disable it manually by pressing R2 / L3 (Shoot / Sprint)     *
*                                                                      *
************************************************************************/

combo Vibration 
{
set_rumble(RUMBLE_A, 100);
set_rumble(RUMBLE_B, 100);
wait(500);

// Turn the rumble off
set_rumble(RUMBLE_A, 0);
set_rumble(RUMBLE_B, 0);
}

combo Revive
{

wait(200);
set_val(PS4_SQUARE, 0);
wait(10);
set_val(PS4_SQUARE, 100);
wait(5000);
set_val(PS4_SQUARE, 0);
wait(100);
combo_run(Vibration);
combo_run(cancel);

}

combo cancel
{
		running=FALSE;
		combo_stop(Revive);
        active = FALSE;
        
}

int active = FALSE;
int running=FALSE;
main 
{
	if(combo_running(Revive))
	{
		if(get_val(PS4_R2))
    	{
    	combo_run(cancel);
    	}
	}
	
	if(running!=TRUE)
	{
	
 		if(get_val(PS4_SQUARE)&&get_val(PS4_L2))
    	{
    	running=TRUE;
		combo_run(Vibration);
		combo_run(Revive);
        active = !active;
    	}
        }
    
    if(event_press(PS4_L3))
    {
		combo_run(cancel);
    } 
    
  	if(active)
    {
    	color(0,1,0,0)
    }
    else
    {
        color(1,0,0,0)
    }
    
    if(active)
    {
      	combo_run(Revive); 
    }

}

//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);
}



  • Rating

    10 / 10 here !

    If you own a ps3 and prefer an xbox controller, or even use a keyboard and mouse, this is a must to remap your keyboard to a controller. Go buy it now you won't be disappointed !

  • Rating

    Amazing device

    If you're like me and love your PS4 controller but want to use an Xbox One GET THIS you won't be sorry.

  • Rating

    Worth every penny

    The controller feels and performs as it does on the xbox right there on my ps3, awesome job guys, and worth every penny !!!

  • Rating

    Amazing Macro combos

    tested Super Street Fighter IV Arcade Edition. I was able to perform normal & FADC combos with some characters like Ryu and Ken with a single click. Amazing.

  • Rating

    As good as a XIM

    If you are a pc gamer, that needs a pc solution for console, get yourself a ControllerMAX you will not regret it.

  • Rating

    KB & Mouse RULES!

    All I can say playing 10 minutes with ControllerMAX properly configured it felt better then PC....YES I said it even better then PC, it's that smooth.

  • Rating

    Six-Axis 360!

    WOW! I can finally get that six-axis awesomeness on my Xbox 360. The best money I ever spent.

  • Rating

    Beats all rapidfire mods

    I've tried the Intensafire, Godfather even the new Wolf controller. The ControllerMAX beats them hands down and no wires or soldering too. 5 Stars!

  • Rating

    Just perfect!

    I can't believe how much this can do for the price tag - it blew me away. Best controller upgrade ever.

  • Rating

    Hugh Thanks!

    Without your help I couldn't be playing Xbox, thanks guys.

  • Rating

    Wow!

    I have to say after reading the forums for Destiny Mouse and Keyboard setup I was flying into getting it set up in 20 minutes. It works outstanding! I'm more then satisfied and its worth every penny!

  • Rating

    Achievement Unlocked!

    Idle boosting Complete 150 Multiplayer games, James Cameron's Avatar. My friend said it would be hard, I laughed then linked him.

  • Rating

    A++!

    Now this is a company you can count on and trust...keep up the great work guys!

  • Rating

    What Disability?

    I would like to thank you for making the CronusMax. I have this problem hitting L3 and R3, and today that problem was fixed. I love the remap feature on the Cronus max. You made my life easier.

  • Rating

    Awesome stuff guys!

    Playing Forza 5 with my original MS 360 wireless wheel makes the XB1 complete for me, thanks to the CronusMax. Thumbs up!