So many question that need awnsers
45 posts
• Page 5 of 5 • 1, 2, 3, 4, 5
Re: So many question that need awnsers
The script I am using to find the deadzone and to make the XY curve is this:
Please note this is not an final version. I want make this with some sort of user interface to help users find the parameters in an step-by-step fashion.
- Code: Select all
#pragma METAINFO("Find Mouse XY Parameters", 0, 3, "J2Kbr")
#include <keyboard.gph>
#include <mouse.gph>
/*
100 343
95 430 (REF)
90 570
85 710
80 900
75 1140
70 1400
65 1680
60 2060
55 2460
50 3000
45 3540
40 4300
35 5500
30 7050
25 9050
20 15100
15 29000
10 DEADZONE
5
0
*/
#define S 15.00
#define T 29000
fix32 mx, my;
fix32 speed;
uint16 time;
main {
//set_val(BUTTON_8, 100.0);
//set_val(STICK_1_X, mx);
//set_val(STICK_1_Y, my);
//combo_run(KeyHit);
if(event_active(BUTTON_13)) {
speed = S;
time = T;
combo_run(Move);
}
if(event_active(BUTTON_12)) {
speed = -S;
time = T;
combo_run(Move);
}
set_val(BUTTON_12, 0.0);
set_val(BUTTON_13, 0.0);
// Auto breath
if(get_val(BUTTON_8) && time_active(BUTTON_8) >= 220) {
set_val(BUTTON_9, 100.0);
} else {
set_val(STICK_1_X, 0.0);
set_val(STICK_1_Y, 0.0);
}
}
combo Move {
set_val(BUTTON_8, 100.0);
wait(500);
set_val(BUTTON_8, 100.0);
set_val(STICK_1_X, speed);
wait(time);
}
combo KeyHit {
if(key_status(KEY_PAD4)) mx -= (key_status(KEY_RIGHTCONTROL)) ? 1.00 : 0.01;
if(key_status(KEY_PAD6)) mx += (key_status(KEY_RIGHTCONTROL)) ? 1.00 : 0.01;
if(key_status(KEY_PAD2)) my -= (key_status(KEY_RIGHTCONTROL)) ? 1.00 : 0.01;
if(key_status(KEY_PAD8)) my += (key_status(KEY_RIGHTCONTROL)) ? 1.00 : 0.01;
mx = clamp(-100.0, mx, 100.0);
my = clamp(-100.0, my, 100.0);
wait(0); wait(50);
}
Please note this is not an final version. I want make this with some sort of user interface to help users find the parameters in an step-by-step fashion.
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: So many question that need awnsers
im not sure how to use it i have to press certaint key to start and stop it ? buttun 13 and 12? and 8 for ads ?
-
poachiche - Command Sergeant Major
- Posts: 116
- Joined: Fri Oct 10, 2014 4:17 pm
Re: So many question that need awnsers
poachiche wrote:im not sure how to use it i have to press certaint key to start and stop it ? buttun 13 and 12? and 8 for ads ?
I use the script posted above for two purposes, the first one is find the deadzone values. So here is excerpt for this purpose:
- Code: Select all
#include <keyboard.gph>
fix32 mx, my;
main {
set_val(BUTTON_8, 100.0);
set_val(STICK_1_X, mx);
set_val(STICK_1_Y, my);
combo_run(KeyHit);
}
combo KeyHit {
if(key_status(KEY_PAD4)) mx -= (key_status(KEY_RIGHTCONTROL)) ? 1.00 : 0.01;
if(key_status(KEY_PAD6)) mx += (key_status(KEY_RIGHTCONTROL)) ? 1.00 : 0.01;
if(key_status(KEY_PAD2)) my -= (key_status(KEY_RIGHTCONTROL)) ? 1.00 : 0.01;
if(key_status(KEY_PAD8)) my += (key_status(KEY_RIGHTCONTROL)) ? 1.00 : 0.01;
mx = clamp(-100.0, mx, 100.0);
my = clamp(-100.0, my, 100.0);
wait(0); wait(50);
}
Load the script and enter in KM Capture Mode. Press CTRL + RIGHT to increase the horizontal value by 1.0, or just the RIGHT to increase by 0.01 -- do that until you see movement on horizontal axis. This is the horizontal deadzone value. Do the same for the vertical axis using CTRL+UP or just UP. And finally, to find the diagonal value, increment the horizontal and vertical simultaneously.
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: So many question that need awnsers
by right and up you mean the arrow or the mouse ? or you mesan the keypad 8 2 4 6?
-
poachiche - Command Sergeant Major
- Posts: 116
- Joined: Fri Oct 10, 2014 4:17 pm
Re: So many question that need awnsers
It is the (KEY_PAD4) and (KEY_RIGHTCONTROL).
Console tuner since my 1st controller.
Scripting, a game in the game.
Believe or dare, It's Titanic!
Scripting, a game in the game.
Believe or dare, It's Titanic!
-
Prototype - Major General
- Posts: 3251
- Joined: Sun Dec 16, 2012 1:43 pm
45 posts
• Page 5 of 5 • 1, 2, 3, 4, 5
Who is online
Users browsing this forum: No registered users and 52 guests