Moved from the other device need a script converting please
7 posts
• Page 1 of 1
Moved from the other device need a script converting please
It's a script for PUBG, I tried the one on here but it effects driving the cars, this one doesn't. Any help would be greatly appreciated. I also don't know how to post this other than what I copy and pasted.
- Code: Select all
// XBOX INSTRUCTIONS:
// ANTIRECOIL (ON by default - Start value: vertical = 30; Horizontal = 0)
// Hold LT and tap UP to increase Antirecoil (+1 each tap on UP, while holding LT)
// Hold LT and tap DOWN to decrease Antirecoil (-1 each tap on DOWN, while holding LT)
// Hold LT and tap RIGHT to compensate to the right (+1 each tap on RIGHT , while holding LT)
// Hold LT and tap LEFT to compensate to the left (+1 each tap on LEFT, while holding LT)
// SAVE new values into the device eeprom: Hold LT and press MENU (or START, for XBOX360 users)
//-------------------------------------------------------------------------------------------
// PLAYSTATION INSTRUCTIONS:
// ANTIRECOIL (ON by default - Start value: vertical = 30; Horizontal = 0)
// Hold L2 and tap UP to increase Antirecoil (+1 each tap on UP, while holding L2)
// Hold L2 and tap DOWN to decrease Antirecoil (-1 each tap on DOWN, while holding L2)
// Hold L2 and tap RIGHT to compensate to the right(+1 each tap on RIGHT , while holding L2)
// Hold L2 and tap LEFT to compensate to the left (+1 each tap on LEFT, while holding L2)
// Save new values into the device eeprom: Hold L2 and press OPTIONS (or START, for PS3 users)
//-------------------------------------------------------------------------------------------
//DECLARARATIONS - define
define save = 2; // XB1_MENU - PS4_OPTIONS
//-------------------------------------------------------------------------------------------
define Scope_only = TRUE; // if TRUE Antirecoil IS ON only when scoping - if FALSE, is always ON
//-------------------------------------------------------------------------------------------
define UP = 13;
define DOWN = 14;
define LEFT = 15;
define RIGHT = 16;
//-------------------------------------------------------------------------------------------
//VARIABLES - int
int recoil_onoff = TRUE; // if TRUE Antirecoil is ON by default - if FALSE, OFF by default
int ANTI_RECOIL;
int ANTI_RECOIL_H;
int anti_recoil;
int anti_recoil_H;
int AR_Release;
int fire_button;
int scope_button;
//-------------------------------------------------------------------------------------------
//INITIALIZATION - init
init{
if(get_console() == PIO_PS3) {
fire_button = 3;
scope_button = 6;
}else {
fire_button = 4;
scope_button = 7;
}
ANTI_RECOIL = get_pvar(SPVAR_2, -100, 100, 30);
ANTI_RECOIL_H = get_pvar(SPVAR_3, -100, 100, 0);
AR_Release = get_pvar(SPVAR_4, -100, 100, 50);
}
//-------------------------------------------------------------------------------------------
//MAIN BLOCK ROUTINES
main {
if(event_press(XB1_LT)) {
combo_run(Tap_1);
combo_run(Turbo_2);
}
if((get_val(XB1_LT)) >= 95) {
set_val(XB1_LB, 100);
}
if(get_val(XB1_RS)) {
combo_run(Tap_3);
}
if(get_val(scope_button) && event_press(save)){
combo_run(vibrate);
set_pvar(SPVAR_2, ANTI_RECOIL);
set_pvar(SPVAR_3, ANTI_RECOIL_H);
set_val(save, 0);
}
if(get_val(7)){
if(event_press(UP)){
ANTI_RECOIL = ANTI_RECOIL+ 1; AR_Release = AR_Release+ 1;
}
if(event_press(DOWN)) {
ANTI_RECOIL = ANTI_RECOIL- 1; AR_Release = AR_Release- 1;
}
set_val(UP,0); set_val(DOWN,0);
if(event_press(LEFT)){
ANTI_RECOIL_H = ANTI_RECOIL_H+ 1;
}
if(event_press(RIGHT)) {
ANTI_RECOIL_H = ANTI_RECOIL_H- 1;
}
set_val(LEFT,0); set_val(RIGHT,0);
}
if(!Scope_only || get_val(scope_button) && get_val(fire_button )) {
combo_run(AntiRecoil);
}
if( abs(get_val(10)) > AR_Release || abs(get_val(9)) > AR_Release) {
combo_stop (AntiRecoil);
}
}
//-------------------------------------------------------------------------------------------
//COMBO BLOCKS
combo vibrate {
set_rumble(RUMBLE_A, 100);
wait(300);
reset_rumble();
}
combo Tap_1 {
set_val(XB1_LT, 0);
wait(400);
set_val(XB1_LT, 100);
wait(50);
set_val(XB1_LT, 100);
}
combo Turbo_2 {
set_val(XB1_LT, 100);
wait(50);
set_val(XB1_LT, 0);
}
combo Tap_3 {
set_val(XB1_X, 0);
wait(10);
set_val(XB1_X, 100);
wait(1500);
set_val(XB1_X, 100);
}
combo AntiRecoil { // This combo must be the last one
if(recoil_onoff) {
anti_recoil = get_val(10) + ANTI_RECOIL;
if(anti_recoil > 100) anti_recoil = 100;
set_val(10, anti_recoil);
anti_recoil_H = get_val(9) + ANTI_RECOIL_H;
if(anti_recoil_H > 100) anti_recoil_H = 100;
set_val(9, anti_recoil_H);
}
}
-
EliteEwok - Sergeant
- Posts: 9
- Joined: Fri Dec 07, 2018 1:30 pm
Re: Moved from the other device need a script converting ple
Add this line to the top:
Info about converting scripts to the T2
viewtopic.php?f=26&t=7591
- Code: Select all
#include <titanone.gph>
Info about converting scripts to the T2
viewtopic.php?f=26&t=7591
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
Re: Moved from the other device need a script converting ple
This is the "other device" not the titan one - begins with C ends in X...
-
EliteEwok - Sergeant
- Posts: 9
- Joined: Fri Dec 07, 2018 1:30 pm
Re: Moved from the other device need a script converting ple
EliteEwok wrote:Help?
He did help! Add what he told you!
- bonefisher
- Lieutenant General
- Posts: 5413
- Joined: Thu Jan 29, 2015 10:49 am
Re: Moved from the other device need a script converting ple
- Code: Select all
#include <titanone.gph>
//Posted by LEX LOST, a member of the community in the device Forums - http://device.com/forums
//Posted : Thursday 6th of December, 2018 1:52 UTC
//-------------------------------------------------------------------------------------------
// ANTIRECOIL adjustable on the fly with SAVE function
//-------------------------------------------------------------------------------------------
// Version: 6.1 - Classic
// Platform: Multi
// Controller: Multi
// Game: All FPS games
// Author: LEX LOST
//------------------------------------------------------------------------------------------
/* *
- Load the script on the CM +
- Turn on the console and enter a game (without enemies, or few enemies)
- Place your character in front of a wall placed at about 10/15 meters (find a wall that leaves the bullet marks while shooting)
- adjusts the antirecoil by increasing it or decreasing it (depending on your weapon's recoil) of one value at a time,
- till the rose of the bullets on the wall is quite collected
- if needed, adjusts also the horizontal antirecoil if your weapon tends to move sideways while shooting
- save the script.
- Follow the instructions below
* */
//------------------------------------------------------------------------------------------
// XBOX INSTRUCTIONS:
// ANTIRECOIL (ON by default - Start value: vertical = 30; Horizontal = 0)
// Hold LT and tap UP to increase Antirecoil (+1 each tap on UP, while holding LT)
// Hold LT and tap DOWN to decrease Antirecoil (-1 each tap on DOWN, while holding LT)
// Hold LT and tap RIGHT to compensate to the right (+1 each tap on RIGHT , while holding LT)
// Hold LT and tap LEFT to compensate to the left (+1 each tap on LEFT, while holding LT)
// SAVE new values into the device eeprom: Hold LT and press MENU (or START, for XBOX360 users)
//-------------------------------------------------------------------------------------------
// PLAYSTATION INSTRUCTIONS:
// ANTIRECOIL (ON by default - Start value: vertical = 30; Horizontal = 0)
// Hold L2 and tap UP to increase Antirecoil (+1 each tap on UP, while holding L2)
// Hold L2 and tap DOWN to decrease Antirecoil (-1 each tap on DOWN, while holding L2)
// Hold L2 and tap RIGHT to compensate to the right(+1 each tap on RIGHT , while holding L2)
// Hold L2 and tap LEFT to compensate to the left (+1 each tap on LEFT, while holding L2)
// Save new values into the device eeprom: Hold L2 and press OPTIONS (or START, for PS3 users)
//-------------------------------------------------------------------------------------------
//DECLARARATIONS - define
define save = 2; // XB1_MENU - PS4_OPTIONS
//-------------------------------------------------------------------------------------------
define Scope_only = TRUE; // if TRUE Antirecoil IS ON only when scoping - if FALSE, is always ON
//-------------------------------------------------------------------------------------------
define UP = 13;
define DOWN = 14;
define LEFT = 15;
define RIGHT = 16;
//-------------------------------------------------------------------------------------------
//VARIABLES - int
int recoil_onoff = TRUE; // if TRUE Antirecoil is ON by default - if FALSE, OFF by default
int ANTI_RECOIL;
int ANTI_RECOIL_H;
int anti_recoil;
int anti_recoil_H;
int AR_Release;
int fire_button;
int scope_button;
//-------------------------------------------------------------------------------------------
//INITIALIZATION - init
init{
if(get_console() == PIO_PS3) {
fire_button = 3;
scope_button = 6;
}else {
fire_button = 4;
scope_button = 7;
}
ANTI_RECOIL = get_pvar(SPVAR_2, -100, 100, 30);
ANTI_RECOIL_H = get_pvar(SPVAR_3, -100, 100, 0);
AR_Release = get_pvar(SPVAR_4, -100, 100, 50);
}
//-------------------------------------------------------------------------------------------
//MAIN BLOCK ROUTINES
main {
if(event_press(XB1_LT)) {
combo_run(Tap_1);
combo_run(Turbo_2);
}
if((get_val(XB1_LT)) >= 95) {
set_val(XB1_LB, 100);
}
if(get_val(XB1_RS)) {
combo_run(Tap_3);
}
if(get_val(scope_button) && event_press(save)){
combo_run(vibrate);
set_pvar(SPVAR_2, ANTI_RECOIL);
set_pvar(SPVAR_3, ANTI_RECOIL_H);
set_val(save, 0);
}
if(get_val(7)){
if(event_press(UP)){
ANTI_RECOIL = ANTI_RECOIL+ 1; AR_Release = AR_Release+ 1;
}
if(event_press(DOWN)) {
ANTI_RECOIL = ANTI_RECOIL- 1; AR_Release = AR_Release- 1;
}
set_val(UP,0); set_val(DOWN,0);
if(event_press(LEFT)){
ANTI_RECOIL_H = ANTI_RECOIL_H+ 1;
}
if(event_press(RIGHT)) {
ANTI_RECOIL_H = ANTI_RECOIL_H- 1;
}
set_val(LEFT,0); set_val(RIGHT,0);
}
if(!Scope_only || get_val(scope_button) && get_val(fire_button )) {
combo_run(AntiRecoil);
}
if( abs(get_val(10)) > AR_Release || abs(get_val(9)) > AR_Release) {
combo_stop (AntiRecoil);
}
}
//-------------------------------------------------------------------------------------------
//COMBO BLOCKS
combo vibrate {
set_rumble(RUMBLE_A, 100);
wait(300);
reset_rumble();
}
combo Tap_1 {
set_val(XB1_LT, 0);
wait(400);
set_val(XB1_LT, 100);
wait(50);
set_val(XB1_LT, 100);
}
combo Turbo_2 {
set_val(XB1_LT, 100);
wait(50);
set_val(XB1_LT, 0);
}
combo Tap_3 {
set_val(XB1_X, 0);
wait(10);
set_val(XB1_X, 100);
wait(1500);
set_val(XB1_X, 100);
}
combo AntiRecoil { // This combo must be the last one
if(recoil_onoff) {
anti_recoil = get_val(10) + ANTI_RECOIL;
if(anti_recoil > 100) anti_recoil = 100;
set_val(10, anti_recoil);
anti_recoil_H = get_val(9) + ANTI_RECOIL_H;
if(anti_recoil_H > 100) anti_recoil_H = 100;
set_val(9, anti_recoil_H);
}
}
- bonefisher
- Lieutenant General
- Posts: 5413
- Joined: Thu Jan 29, 2015 10:49 am
7 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 209 guests