Help please, need auto-run for Assassin's Creed Odyssey

GPC2 script programming for Titan Two. Code examples, questions, requests.

Help please, need auto-run for Assassin's Creed Odyssey

Postby Sparky101 » Fri Jan 22, 2021 4:10 pm

Help please, I need an auto-run function for Assassin's Creed Odyssey for PS4

I've been scouting through auto-run scripts on the forums but I can't find something I feel comfortable editing from. Please help.

I want an auto run function that does the following:

1) the autorun function is triggered when L3 and R3 are pressed

2) Autorun is just Left Stick pushed forwards fully. (Ideally, it would be better if the user could also use Left stick to override the autorun temporarily, and then T2 could continue autorun when Left Stick not being used (except for rule 3b.)

3) the autorun function is cancelled...
3a) ...when L3 and R3 are pressed, or
3b) ...when Left Stick is down fully, give or take 15 degrees. (This would be ideal if possible, and it would be nice for 15 degrees to be a variable. If not possible like this, then perhaps simply just left stick down.)

Many thanks
User avatar
Sparky101
Command Sergeant Major
Command Sergeant Major
 
Posts: 114
Joined: Sun Sep 24, 2017 11:54 am

Re: Help please, need auto-run for Assassin's Creed Odyssey

Postby Mad » Fri Jan 22, 2021 7:34 pm

Code: Select all
#include <ps4.gph>
bool auto_run;
main {
    if(is_active(PS4_L3) && event_active(PS4_R3)) {
        auto_run = !auto_run;
    }
    if(get_actual(PS4_LY) >= 85f) auto_run = 0;
 
    if(auto_run) set_val(PS4_LY, -100);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

Re: Help please, need auto-run for Assassin's Creed Odyssey

Postby Sparky101 » Sat Jan 23, 2021 9:53 pm

thanks Mad, that's awesome! Just what I asked for. :smile0202: :smile0517:
User avatar
Sparky101
Command Sergeant Major
Command Sergeant Major
 
Posts: 114
Joined: Sun Sep 24, 2017 11:54 am

Re: Help please, need auto-run for Assassin's Creed Odyssey

Postby Sparky101 » Thu Feb 11, 2021 6:04 pm

I've been tweaking this code and wanted to share in case anyone else would find a copy useful.

The new code will auto-run and auto-zoom with Ikaros.

// Autorun
// ========
// To start: press L3 whist running (whilst Left Stick is forwards)
// To stop: press Circle OR Left Stick down
//
// Ikaros zoom-hold
// ========
// To start: press L3 whist zooming with Ikaros (whilst holding L2)
// To stop: press CROSS
// NOTE: You can change this to Circle if you prefer, although
// this will fall back to character (instead of back to Ikaros)


Code: Select all
// ================================================================
// Assassin Creed Odyssey - autorun & Ikaros zoom-hold functions
// ================================================================
//
// Autorun
// ========
// To start: press L3 whist running (whilst Left Stick is forwards)
// To stop: press Circle OR Left Stick down
//
// Ikaros zoom-hold
// ========
// To start: press L3 whist zooming with Ikaros (whilst holding L2)
// To stop: press CROSS
// NOTE: You can change this to Circle if you prefer, although
//       this will fall back to character (instead of back to Ikaros)
 
 
#include <ps4.gph>
bool auto_run;
bool auto_L2;
main {
    if(is_active(PS4_LY) && is_active(PS4_L3)) {
        auto_run = 1;
    }
 
    if(get_actual(PS4_LY) >= 85f) auto_run = 0;
 
    if(auto_run) set_val(PS4_LY, -100);
 
 
    if(is_active(PS4_L2) && is_active(PS4_L3)) {
        auto_L2 = 1;
    }
 
    if(auto_L2) set_val(PS4_L2, 100);   
 
    if(is_active(PS4_CROSS)) {
        auto_L2 = 0;
    }
 
    if(is_active(PS4_CIRCLE)) {
        auto_run = 0;
    }
 
 
}


Thanks again Mad for getting me started :joia:
User avatar
Sparky101
Command Sergeant Major
Command Sergeant Major
 
Posts: 114
Joined: Sun Sep 24, 2017 11:54 am


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 125 guests