PDA

View Full Version : Universal auto sprint script?



wvnative
20th February 15, 11:21
All the scripts and gamepacks I have have auto sprint in addition to other things.

Can I just get a generic auto sprint script with nothing else to use in multiple games? Preferably with press sensitivity?

This way I don't have to dig up a random game pack just for one thing, I tried looking in the script library but didn't find just an auto sprint script by itself.

KittyDawn
20th February 15, 11:54
Easy enough;


int AUTO_SPRINT_COMBO=TRUE; // Set the TRUE for a game which you can continuously press the sprint button.
// Set to False for a game which you toggle sprint (Such as Dying Light)

int MOVE=12; //Assign Character Forward Movement Axis

int SPRINT_BTN=8; //Assign Sprint Button

main{

if(get_val(MOVE) <-95){
if(AUTO_SPRINT_COMBO){
combo_run(AUTO_SPRINT);
}else{
set_val(SPRINT_BTN,100);
}
}

}

combo AUTO_SPRINT{
set_val(SPRINT_BTN,100);
wait(200);
set_val(SPRINT_BTN,0);
wait(200);
}

wvnative
20th February 15, 12:04
Once again, thanks KittyDawn.

Question, you say to set TRUE for continuous sprint and False for toggle sprint.

Does "False" have to be just as you typed it, or all upper case like TRUE?

LEX LOST
20th February 15, 12:19
Once again, thanks KittyDawn.

Question, you say to set TRUE for continuous sprint and False for toggle sprint.

Does "False" have to be just as you typed it, or all upper case like TRUE?

Yes, always upper case