WarFace Script???
Re: WarFace Script???
Mad wrote:
- Code: Select all
/*
ADS +
DPAD UP to toggle rapidfire
DPAD DOWN to toggle strafe
DPAD LEFT to toggle crouch spam
DPAD RIGHT to toggle ADS Spam
*/
#pragma METAINFO("Warface", 1, 0, "Mad")
#define RF_HOLD 33
#define RF_RELEASE 64
#define AIM_HOLD 150
#define AIM_RELEASE 50
#define STRAFE_TIME 350
#define AA_VALUE 30
#define AA_DELAY 40
fix32 AR = 15f; // Anti Recoil Value
bool rapidfire;
bool strafe;
bool cspam;
bool aspam;
bool aa = TRUE; // Enable aim assist.
init {
led(255,0,0);
}
main {
if (is_active(7)) {
if (event_active(9)) Toggle(1);
if (event_active(10)) Toggle(2);
if (event_active(11)) Toggle(3);
if (event_active(12)) Toggle(4);
if (aa) combo_run(AimAssist);
}
if (is_active(21) || is_active(22)) combo_stop(AimAssist);
if (get_actual(4)) {
AntiRecoil(22, AR);
if (rapidfire) combo_run(RapidFire);
}
if (strafe) {
if(is_active(23) || is_active(24)) combo_stop(Strafe);
else if(get_actual(7) || get_actual(4)) combo_run(Strafe);
}
if (cspam && get_actual(14)) combo_run(Crouch);
if (aspam && get_actual(7) && !get_actual(4)) combo_run(AimAbuse);
}
combo RapidFire {
set_val(4, 100);
wait(RF_HOLD);
set_val(4, 0);
wait(RF_RELEASE);
}
combo Strafe {
set_val(23, -100.0);
wait(STRAFE_TIME);
set_val(23, 100.0);;
wait(STRAFE_TIME);
}
combo Crouch {
set_val(14, 100);
wait(30);
set_val(14, 0);
wait(30);
}
combo AimAbuse {
set_val(7, 100);
wait(AIM_HOLD);
set_val(7, 0.0);
wait(AIM_RELEASE);
}
combo AimAssist {
set_val(22, AA_VALUE);
set_val(21, AA_VALUE);
set_val(21, -AA_VALUE);
wait(AA_DELAY);
set_val(22, -AA_VALUE);
set_val(21, -AA_VALUE);
set_val(21, AA_VALUE);
wait(AA_DELAY);
}
void AntiRecoil (uint8 axis, fix32 recoil){
if (sqrt(sq(get_actual(21)) + sq(get_actual(22))) < abs(recoil)) {
set_val(axis,(recoil * (100.0 - abs(get_val(axis)))) / 100.0 + get_actual(axis));
}
}
void Toggle(int id) {
do{
switch(id){
case 1: {
rapidfire = !rapidfire;
if (rapidfire){ led(0, 255, 0); return; }
else continue;
}
case 2: {
strafe = !strafe;
if (strafe){ led(0, 0, 255); return; }
else continue;
}
case 3: {
cspam = !cspam;
if (cspam){ led(0, 255, 255); return; }
else continue;
}
case 4: {
aspam = !aspam;
if (aspam){ led(255, 255, 0); return; }
else continue;
}
}
}
while(0);
led(255, 0, 0);
}
void led(int8 r, int8 g, int8 b) {
led_set(LED_1, (fix32)b, 0);
led_set(LED_2, (fix32)r, 0);
led_set(LED_3, (fix32)g, 0);
return;
}
Thx I'll try this out when I'm off work and give feed back
-
Shthappensbro - Major
- Posts: 754
- Joined: Wed Aug 16, 2017 4:55 pm
Re: WarFace Script???
Mad wrote:
- Code: Select all
else if(get_actual(7) || get_actual(4)) combo_run(Strafe);
anyway to turn on and off the recoil pull down ??? think it masses up the circle?? when its on and make circle only fire??? it seems like it goes like this too /
-
Shthappensbro - Major
- Posts: 754
- Joined: Wed Aug 16, 2017 4:55 pm
Re: WarFace Script???
I set it to ADS only - If you want ADS+Fire use this:
- Code: Select all
/*
ADS +
DPAD UP to toggle rapidfire
DPAD DOWN to toggle strafe
DPAD LEFT to toggle crouch spam
DPAD RIGHT to toggle ADS Spam
*/
#pragma METAINFO("Warface", 1, 0, "Mad")
#define RF_HOLD 33
#define RF_RELEASE 64
#define AIM_HOLD 150
#define AIM_RELEASE 50
#define STRAFE_TIME 350
#define AA_VALUE 30
#define AA_DELAY 40
fix32 AR = 15f; // Anti Recoil Value
bool rapidfire;
bool strafe;
bool cspam;
bool aspam;
bool aa = TRUE; // Enable aim assist.
init {
led(255,0,0);
}
main {
if (is_active(7)) {
if (event_active(9)) Toggle(1);
if (event_active(10)) Toggle(2);
if (event_active(11)) Toggle(3);
if (event_active(12)) Toggle(4);
}
if (is_active(7) || is_active(4)) {
if (aa) combo_run(AimAssist);
}
if (is_active(21) || is_active(22)) combo_stop(AimAssist);
if (get_actual(4)) {
AntiRecoil(22, AR);
if (rapidfire) combo_run(RapidFire);
}
if (strafe) {
if(is_active(23) || is_active(24)) combo_stop(Strafe);
else if(get_actual(7) || get_actual(4)) combo_run(Strafe);
}
if (cspam && get_actual(14)) combo_run(Crouch);
if (aspam && get_actual(7) && !get_actual(4)) combo_run(AimAbuse);
}
combo RapidFire {
set_val(4, 100);
wait(RF_HOLD);
set_val(4, 0);
wait(RF_RELEASE);
}
combo Strafe {
set_val(23, -100.0);
wait(STRAFE_TIME);
set_val(23, 100.0);;
wait(STRAFE_TIME);
}
combo Crouch {
set_val(14, 100);
wait(30);
set_val(14, 0);
wait(30);
}
combo AimAbuse {
set_val(7, 100);
wait(AIM_HOLD);
set_val(7, 0.0);
wait(AIM_RELEASE);
}
combo AimAssist {
set_val(22, AA_VALUE);
set_val(21, AA_VALUE);
set_val(21, -AA_VALUE);
wait(AA_DELAY);
set_val(22, -AA_VALUE);
set_val(21, -AA_VALUE);
set_val(21, AA_VALUE);
wait(AA_DELAY);
}
void AntiRecoil (uint8 axis, fix32 recoil){
if (sqrt(sq(get_actual(21)) + sq(get_actual(22))) < abs(recoil)) {
set_val(axis,(recoil * (100.0 - abs(get_val(axis)))) / 100.0 + get_actual(axis));
}
}
void Toggle(int id) {
do{
switch(id){
case 1: {
rapidfire = !rapidfire;
if (rapidfire){ led(0, 255, 0); return; }
else continue;
}
case 2: {
strafe = !strafe;
if (strafe){ led(0, 0, 255); return; }
else continue;
}
case 3: {
cspam = !cspam;
if (cspam){ led(0, 255, 255); return; }
else continue;
}
case 4: {
aspam = !aspam;
if (aspam){ led(255, 255, 0); return; }
else continue;
}
}
}
while(0);
led(255, 0, 0);
}
void led(int8 r, int8 g, int8 b) {
led_set(LED_1, (fix32)b, 0);
led_set(LED_2, (fix32)r, 0);
led_set(LED_3, (fix32)g, 0);
return;
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
- Mad
- Major General
- Posts: 4533
- Joined: Wed May 22, 2019 5:39 am
Re: WarFace Script???
Mad wrote:
- Code: Select all
else if(get_actual(7) || get_actual(4)) combo_run(Strafe);
only prob im having with the circle is i can aim with it active on ads . so i was wondering if u can make it active on fire only
-
Shthappensbro - Major
- Posts: 754
- Joined: Wed Aug 16, 2017 4:55 pm
Re: WarFace Script???
- Code: Select all
/*
ADS +
DPAD UP to toggle rapidfire
DPAD DOWN to toggle strafe
DPAD LEFT to toggle crouch spam
DPAD RIGHT to toggle ADS Spam
*/
#pragma METAINFO("Warface", 1, 0, "Mad")
#define RF_HOLD 33
#define RF_RELEASE 64
#define AIM_HOLD 150
#define AIM_RELEASE 50
#define STRAFE_TIME 350
#define AA_VALUE 30
#define AA_DELAY 40
fix32 AR = 15f; // Anti Recoil Value
bool rapidfire;
bool strafe;
bool cspam;
bool aspam;
bool aa = TRUE; // Enable aim assist.
init {
led(255,0,0);
}
main {
if (is_active(7)) {
if (event_active(9)) Toggle(1);
if (event_active(10)) Toggle(2);
if (event_active(11)) Toggle(3);
if (event_active(12)) Toggle(4);
}
if (is_active(4) && aa) combo_run(AimAssist);
if (is_active(21) || is_active(22)) combo_stop(AimAssist);
if (get_actual(4)) {
AntiRecoil(22, AR);
if (rapidfire) combo_run(RapidFire);
}
if (strafe) {
if(is_active(23) || is_active(24)) combo_stop(Strafe);
else if(get_actual(7) || get_actual(4)) combo_run(Strafe);
}
if (cspam && get_actual(14)) combo_run(Crouch);
if (aspam && get_actual(7) && !get_actual(4)) combo_run(AimAbuse);
}
combo RapidFire {
set_val(4, 100);
wait(RF_HOLD);
set_val(4, 0);
wait(RF_RELEASE);
}
combo Strafe {
set_val(23, -100.0);
wait(STRAFE_TIME);
set_val(23, 100.0);;
wait(STRAFE_TIME);
}
combo Crouch {
set_val(14, 100);
wait(30);
set_val(14, 0);
wait(30);
}
combo AimAbuse {
set_val(7, 100);
wait(AIM_HOLD);
set_val(7, 0.0);
wait(AIM_RELEASE);
}
combo AimAssist {
set_val(22, AA_VALUE);
set_val(21, AA_VALUE);
set_val(21, -AA_VALUE);
wait(AA_DELAY);
set_val(22, -AA_VALUE);
set_val(21, -AA_VALUE);
set_val(21, AA_VALUE);
wait(AA_DELAY);
}
void AntiRecoil (uint8 axis, fix32 recoil){
if (sqrt(sq(get_actual(21)) + sq(get_actual(22))) < abs(recoil)) {
set_val(axis,(recoil * (100.0 - abs(get_val(axis)))) / 100.0 + get_actual(axis));
}
}
void Toggle(int id) {
do{
switch(id){
case 1: {
rapidfire = !rapidfire;
if (rapidfire){ led(0, 255, 0); return; }
else continue;
}
case 2: {
strafe = !strafe;
if (strafe){ led(0, 0, 255); return; }
else continue;
}
case 3: {
cspam = !cspam;
if (cspam){ led(0, 255, 255); return; }
else continue;
}
case 4: {
aspam = !aspam;
if (aspam){ led(255, 255, 0); return; }
else continue;
}
}
}
while(0);
led(255, 0, 0);
}
void led(int8 r, int8 g, int8 b) {
led_set(LED_1, (fix32)b, 0);
led_set(LED_2, (fix32)r, 0);
led_set(LED_3, (fix32)g, 0);
return;
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
- Mad
- Major General
- Posts: 4533
- Joined: Wed May 22, 2019 5:39 am
Re: WarFace Script???
Mad wrote:
- Code: Select all
/*
ADS +
DPAD UP to toggle rapidfire
DPAD DOWN to toggle strafe
DPAD LEFT to toggle crouch spam
DPAD RIGHT to toggle ADS Spam
*/
#pragma METAINFO("Warface", 1, 0, "Mad")
#define RF_HOLD 33
#define RF_RELEASE 64
#define AIM_HOLD 150
#define AIM_RELEASE 50
#define STRAFE_TIME 350
#define AA_VALUE 30
#define AA_DELAY 40
fix32 AR = 15f; // Anti Recoil Value
bool rapidfire;
bool strafe;
bool cspam;
bool aspam;
bool aa = TRUE; // Enable aim assist.
init {
led(255,0,0);
}
main {
if (is_active(7)) {
if (event_active(9)) Toggle(1);
if (event_active(10)) Toggle(2);
if (event_active(11)) Toggle(3);
if (event_active(12)) Toggle(4);
}
if (is_active(4) && aa) combo_run(AimAssist);
if (is_active(21) || is_active(22)) combo_stop(AimAssist);
if (get_actual(4)) {
AntiRecoil(22, AR);
if (rapidfire) combo_run(RapidFire);
}
if (strafe) {
if(is_active(23) || is_active(24)) combo_stop(Strafe);
else if(get_actual(7) || get_actual(4)) combo_run(Strafe);
}
if (cspam && get_actual(14)) combo_run(Crouch);
if (aspam && get_actual(7) && !get_actual(4)) combo_run(AimAbuse);
}
combo RapidFire {
set_val(4, 100);
wait(RF_HOLD);
set_val(4, 0);
wait(RF_RELEASE);
}
combo Strafe {
set_val(23, -100.0);
wait(STRAFE_TIME);
set_val(23, 100.0);;
wait(STRAFE_TIME);
}
combo Crouch {
set_val(14, 100);
wait(30);
set_val(14, 0);
wait(30);
}
combo AimAbuse {
set_val(7, 100);
wait(AIM_HOLD);
set_val(7, 0.0);
wait(AIM_RELEASE);
}
combo AimAssist {
set_val(22, AA_VALUE);
set_val(21, AA_VALUE);
set_val(21, -AA_VALUE);
wait(AA_DELAY);
set_val(22, -AA_VALUE);
set_val(21, -AA_VALUE);
set_val(21, AA_VALUE);
wait(AA_DELAY);
}
void AntiRecoil (uint8 axis, fix32 recoil){
if (sqrt(sq(get_actual(21)) + sq(get_actual(22))) < abs(recoil)) {
set_val(axis,(recoil * (100.0 - abs(get_val(axis)))) / 100.0 + get_actual(axis));
}
}
void Toggle(int id) {
do{
switch(id){
case 1: {
rapidfire = !rapidfire;
if (rapidfire){ led(0, 255, 0); return; }
else continue;
}
case 2: {
strafe = !strafe;
if (strafe){ led(0, 0, 255); return; }
else continue;
}
case 3: {
cspam = !cspam;
if (cspam){ led(0, 255, 255); return; }
else continue;
}
case 4: {
aspam = !aspam;
if (aspam){ led(255, 255, 0); return; }
else continue;
}
}
}
while(0);
led(255, 0, 0);
}
void led(int8 r, int8 g, int8 b) {
led_set(LED_1, (fix32)b, 0);
led_set(LED_2, (fix32)r, 0);
led_set(LED_3, (fix32)g, 0);
return;
}
hmm makes it where i can aim my sights like it gets stuck lol is taht bc anti recoil on with the circle movement??? idk if its the game or the code but it doesnt do a circlqe movement it goes like this /
-
Shthappensbro - Major
- Posts: 754
- Joined: Wed Aug 16, 2017 4:55 pm
Re: WarFace Script???
It shouldn't get stuck, But I don't know the games mechanics.
I've added in a recoil toggle.
I've added in a recoil toggle.
- Code: Select all
/*
ADS +
DPAD UP to toggle rapidfire
DPAD DOWN to toggle strafe
DPAD LEFT to toggle crouch spam
DPAD RIGHT to toggle ADS Spam
*/
#pragma METAINFO("Warface", 1, 0, "Mad")
#define RF_HOLD 33
#define RF_RELEASE 64
#define AIM_HOLD 150
#define AIM_RELEASE 50
#define STRAFE_TIME 350
#define AA_VALUE 30
#define AA_DELAY 40
fix32 AR = 15f; // Anti Recoil Value
bool rapidfire;
bool strafe;
bool cspam;
bool aspam;
bool aa = TRUE; // Enable aim assist.
bool recoil = FALSE; // Enable anti-recoil
init {
led(255,0,0);
}
main {
if (is_active(7)) {
if (event_active(9)) Toggle(1);
if (event_active(10)) Toggle(2);
if (event_active(11)) Toggle(3);
if (event_active(12)) Toggle(4);
}
if (is_active(4) && aa) combo_run(AimAssist);
if (is_active(21) || is_active(22)) combo_stop(AimAssist);
if (get_actual(4)) {
if (recoil) AntiRecoil(22, AR);
if (rapidfire) combo_run(RapidFire);
}
if (strafe) {
if(is_active(23) || is_active(24)) combo_stop(Strafe);
else if(get_actual(7) || get_actual(4)) combo_run(Strafe);
}
if (cspam && get_actual(14)) combo_run(Crouch);
if (aspam && get_actual(7) && !get_actual(4)) combo_run(AimAbuse);
}
combo RapidFire {
set_val(4, 100);
wait(RF_HOLD);
set_val(4, 0);
wait(RF_RELEASE);
}
combo Strafe {
set_val(23, -100.0);
wait(STRAFE_TIME);
set_val(23, 100.0);;
wait(STRAFE_TIME);
}
combo Crouch {
set_val(14, 100);
wait(30);
set_val(14, 0);
wait(30);
}
combo AimAbuse {
set_val(7, 100);
wait(AIM_HOLD);
set_val(7, 0.0);
wait(AIM_RELEASE);
}
combo AimAssist {
set_val(22, AA_VALUE);
set_val(21, AA_VALUE);
set_val(21, -AA_VALUE);
wait(AA_DELAY);
set_val(22, -AA_VALUE);
set_val(21, -AA_VALUE);
set_val(21, AA_VALUE);
wait(AA_DELAY);
}
void AntiRecoil (uint8 axis, fix32 recoil){
if (sqrt(sq(get_actual(21)) + sq(get_actual(22))) < abs(recoil)) {
set_val(axis,(recoil * (100.0 - abs(get_val(axis)))) / 100.0 + get_actual(axis));
}
}
void Toggle(int id) {
do{
switch(id){
case 1: {
rapidfire = !rapidfire;
if (rapidfire){ led(0, 255, 0); return; }
else continue;
}
case 2: {
strafe = !strafe;
if (strafe){ led(0, 0, 255); return; }
else continue;
}
case 3: {
cspam = !cspam;
if (cspam){ led(0, 255, 255); return; }
else continue;
}
case 4: {
aspam = !aspam;
if (aspam){ led(255, 255, 0); return; }
else continue;
}
}
}
while(0);
led(255, 0, 0);
}
void led(int8 r, int8 g, int8 b) {
led_set(LED_1, (fix32)b, 0);
led_set(LED_2, (fix32)r, 0);
led_set(LED_3, (fix32)g, 0);
return;
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
- Mad
- Major General
- Posts: 4533
- Joined: Wed May 22, 2019 5:39 am
Re: WarFace Script???
Mad wrote:It shouldn't get stuck, But I don't know the games mechanics.
I've added in a recoil toggle.
- Code: Select all
/*
ADS +
DPAD UP to toggle rapidfire
DPAD DOWN to toggle strafe
DPAD LEFT to toggle crouch spam
DPAD RIGHT to toggle ADS Spam
*/
#pragma METAINFO("Warface", 1, 0, "Mad")
#define RF_HOLD 33
#define RF_RELEASE 64
#define AIM_HOLD 150
#define AIM_RELEASE 50
#define STRAFE_TIME 350
#define AA_VALUE 30
#define AA_DELAY 40
fix32 AR = 15f; // Anti Recoil Value
bool rapidfire;
bool strafe;
bool cspam;
bool aspam;
bool aa = TRUE; // Enable aim assist.
bool recoil = FALSE; // Enable anti-recoil
init {
led(255,0,0);
}
main {
if (is_active(7)) {
if (event_active(9)) Toggle(1);
if (event_active(10)) Toggle(2);
if (event_active(11)) Toggle(3);
if (event_active(12)) Toggle(4);
}
if (is_active(4) && aa) combo_run(AimAssist);
if (is_active(21) || is_active(22)) combo_stop(AimAssist);
if (get_actual(4)) {
if (recoil) AntiRecoil(22, AR);
if (rapidfire) combo_run(RapidFire);
}
if (strafe) {
if(is_active(23) || is_active(24)) combo_stop(Strafe);
else if(get_actual(7) || get_actual(4)) combo_run(Strafe);
}
if (cspam && get_actual(14)) combo_run(Crouch);
if (aspam && get_actual(7) && !get_actual(4)) combo_run(AimAbuse);
}
combo RapidFire {
set_val(4, 100);
wait(RF_HOLD);
set_val(4, 0);
wait(RF_RELEASE);
}
combo Strafe {
set_val(23, -100.0);
wait(STRAFE_TIME);
set_val(23, 100.0);;
wait(STRAFE_TIME);
}
combo Crouch {
set_val(14, 100);
wait(30);
set_val(14, 0);
wait(30);
}
combo AimAbuse {
set_val(7, 100);
wait(AIM_HOLD);
set_val(7, 0.0);
wait(AIM_RELEASE);
}
combo AimAssist {
set_val(22, AA_VALUE);
set_val(21, AA_VALUE);
set_val(21, -AA_VALUE);
wait(AA_DELAY);
set_val(22, -AA_VALUE);
set_val(21, -AA_VALUE);
set_val(21, AA_VALUE);
wait(AA_DELAY);
}
void AntiRecoil (uint8 axis, fix32 recoil){
if (sqrt(sq(get_actual(21)) + sq(get_actual(22))) < abs(recoil)) {
set_val(axis,(recoil * (100.0 - abs(get_val(axis)))) / 100.0 + get_actual(axis));
}
}
void Toggle(int id) {
do{
switch(id){
case 1: {
rapidfire = !rapidfire;
if (rapidfire){ led(0, 255, 0); return; }
else continue;
}
case 2: {
strafe = !strafe;
if (strafe){ led(0, 0, 255); return; }
else continue;
}
case 3: {
cspam = !cspam;
if (cspam){ led(0, 255, 255); return; }
else continue;
}
case 4: {
aspam = !aspam;
if (aspam){ led(255, 255, 0); return; }
else continue;
}
}
}
while(0);
led(255, 0, 0);
}
void led(int8 r, int8 g, int8 b) {
led_set(LED_1, (fix32)b, 0);
led_set(LED_2, (fix32)r, 0);
led_set(LED_3, (fix32)g, 0);
return;
}
alright thanks ill test whats ur paypal ill donate some cast for this lol is it the game that not doin the circle or the script ? im confused lol it goes like this / back and fort // /// and not like this o ?
-
Shthappensbro - Major
- Posts: 754
- Joined: Wed Aug 16, 2017 4:55 pm
Re: WarFace Script???
It shakes the reticle to get aim assist.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
- Mad
- Major General
- Posts: 4533
- Joined: Wed May 22, 2019 5:39 am
Re: WarFace Script???
Mad wrote:It shakes the reticle to get aim assist.
Oh alright what about left to right instead of up and down ? Wait idk about that I was just thinking about not helping the recoil on the guns bc they kick up like call of duty the aim assist is weird on this game cant figure it out
-
Shthappensbro - Major
- Posts: 754
- Joined: Wed Aug 16, 2017 4:55 pm
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 138 guests