// Press B to trigger the timed finish automation // Ping can be adjusted in the Cronus Zen Interactive Config // Define the default ping in milliseconds define DEFAULT_PING = 28; define MIN_PING = 5; // Minimum ping for the slider define MAX_PING = 150; // Maximum ping for the slider define FINISH_DELAY = 160; // Base delay for Green Time Finish in milliseconds int ping = DEFAULT_PING; // Initial ping value int ping_adjustment; // Initialize the script init { // Create a slider in Zen Studio for ping adjustment ping = get_val(PS4_L2); // Replace this with the interactive menu option in Zen Studio } main { // Adjust the delay based on the user's ping ping_adjustment = FINISH_DELAY + ping / 2; // Detect if B is pressed (XBOX B or PS4 O) if (get_val(XB1_B)) { combo_run(green_time_finish); } } // Combo for timed finish combo green_time_finish { wait(ping_adjustment); // Wait the calculated time based on ping set_val(XB1_B, 100); // Press B after waiting wait(40); // Hold time for the second B press set_val(XB1_B, 0); // Release B }