BFV Sprint

Titan Two general support. Questions, firmware update, feature request.

BFV Sprint

Postby battlelog » Tue Oct 08, 2019 7:50 pm

Who broke the sprint on BFV gamepack??? I see it was updated recently.

Thanks in advance.
battlelog
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 257
Joined: Sun Apr 17, 2016 6:50 am

Re: BFV Sprint

Postby bonefisher » Tue Oct 08, 2019 11:20 pm

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
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5359
Joined: Thu Jan 29, 2015 10:49 am

Re: BFV Sprint

Postby battlelog » Thu Oct 10, 2019 3:30 pm

Hey fish can I use that with the bfv gamepack?
battlelog
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 257
Joined: Sun Apr 17, 2016 6:50 am

Re: BFV Sprint

Postby bonefisher » Thu Oct 10, 2019 5:21 pm

J2Kbr would have to put in gamepack!
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5359
Joined: Thu Jan 29, 2015 10:49 am

Re: BFV Sprint

Postby J2Kbr » Sun Oct 13, 2019 11:16 am

ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 18116
Joined: Tue Mar 18, 2014 1:39 pm


Return to Titan Two Device

Who is online

Users browsing this forum: Doxy and 36 guests