Page 1 of 1

BFV Sprint

PostPosted: Tue Oct 08, 2019 7:50 pm
by battlelog
Who broke the sprint on BFV gamepack??? I see it was updated recently.

Thanks in advance.

Re: BFV Sprint

PostPosted: Tue Oct 08, 2019 11:20 pm
by bonefisher
Code: Select all
 
#include <display.gph>
 
main {
  // - SPRINT MOD - - - - - - - - - - - - - - - - - - - - - - - - - - -
    #define SPRINT_OFF     0
    #define SPRINT_ON      1
    static uint8 sprint;
    if(event_active(BUTTON_16)|| event_active(BUTTON_5)|| event_active(BUTTON_9)
    || is_active(STICK_2_Y) && time_release(STICK_2_Y) < 250)
    {
        sprint = SPRINT_ON;
        goto SPRINT_LIGHTBAR;
    }
    else if(event_active(BUTTON_8)|| event_active(BUTTON_17))
    {
    if(sprint || !sprint)
    {
        switch(sprint)
    {
        case SPRINT_OFF: sprint = SPRINT_ON;  break;
        case SPRINT_ON:  sprint = SPRINT_OFF; break;
    }
    }else sprint = SPRINT_OFF;
        SPRINT_LIGHTBAR:
        led_reset();
        switch(sprint)
    {
        case SPRINT_OFF: display_overlay(_0_, 500); break;
        case SPRINT_ON:  display_overlay(_1_, 500); break;
    }
    }
    if(sprint == SPRINT_ON)
    {
    if(get_actual(STICK_2_Y) < -95.0)set_val(BUTTON_9, 100.0);
  }
    if(sprint == SPRINT_ON )
    {
        set_val(STICK_2_X, get_val(STICK_2_X));
        set_val(STICK_2_Y, get_val(STICK_2_Y));
    }
    if(sprint == SPRINT_OFF)
    {
        set_val(STICK_2_X, get_val(STICK_2_X) / 1.1);
        set_val(STICK_2_Y, get_val(STICK_2_Y) / 1.1);
    }
}
 

Try this sprint

Re: BFV Sprint

PostPosted: Thu Oct 10, 2019 3:30 pm
by battlelog
Hey fish can I use that with the bfv gamepack?

Re: BFV Sprint

PostPosted: Thu Oct 10, 2019 5:21 pm
by bonefisher
J2Kbr would have to put in gamepack!

Re: BFV Sprint

PostPosted: Sun Oct 13, 2019 11:16 am
by J2Kbr