Add offset keep
J_Tanzanite: Here is a suggestion which I sorta have been asking for a while now - fix aa yaw! Right now if you say, set it to 90, it doesn't go +90 degrees from where you are looking, would be nice to get that implemented. J_Tanzanite: makes hvhs much better boots: @J_Tanzanite basically just have it so that there's a "keep + static" option that keeps your yaw but also adds the static value to it? J_Tanzanite: Yes J_Tanzanite: NCC has that and it is godf*@sKing useful
This commit is contained in:
parent
f10aa41b20
commit
5359b593b7
@ -15,7 +15,7 @@ namespace hacks { namespace shared { namespace antiaim {
|
|||||||
CatVar enabled(CV_SWITCH, "aa_enabled", "0", "Anti-Aim", "Master AntiAim switch");
|
CatVar enabled(CV_SWITCH, "aa_enabled", "0", "Anti-Aim", "Master AntiAim switch");
|
||||||
CatVar yaw(CV_FLOAT, "aa_yaw", "0.0", "Yaw", "Static yaw (left/right)", 360.0);
|
CatVar yaw(CV_FLOAT, "aa_yaw", "0.0", "Yaw", "Static yaw (left/right)", 360.0);
|
||||||
CatVar pitch(CV_FLOAT, "aa_pitch", "-89.0", "Pitch", "Static pitch (up/down)", -89.0, 89.0);
|
CatVar pitch(CV_FLOAT, "aa_pitch", "-89.0", "Pitch", "Static pitch (up/down)", -89.0, 89.0);
|
||||||
CatEnum yaw_mode_enum({ "KEEP", "STATIC", "JITTER", "BIGRANDOM", "RANDOM", "SPIN" });
|
CatEnum yaw_mode_enum({ "KEEP", "STATIC", "JITTER", "BIGRANDOM", "RANDOM", "SPIN", "OFFSETKEEP" });
|
||||||
CatEnum pitch_mode_enum({ "KEEP", "STATIC", "JITTER", "RANDOM", "FLIP", "FAKEFLIP", "FAKEUP", "FAKEDOWN", "UP", "DOWN" });
|
CatEnum pitch_mode_enum({ "KEEP", "STATIC", "JITTER", "RANDOM", "FLIP", "FAKEFLIP", "FAKEUP", "FAKEDOWN", "UP", "DOWN" });
|
||||||
CatVar yaw_mode(yaw_mode_enum, "aa_yaw_mode", "3", "Yaw mode", "Yaw mode");
|
CatVar yaw_mode(yaw_mode_enum, "aa_yaw_mode", "3", "Yaw mode", "Yaw mode");
|
||||||
CatVar pitch_mode(pitch_mode_enum, "aa_pitch_mode", "1", "Pitch mode", "Pitch mode");
|
CatVar pitch_mode(pitch_mode_enum, "aa_pitch_mode", "1", "Pitch mode", "Pitch mode");
|
||||||
@ -90,6 +90,9 @@ void ProcessUserCmd(CUserCmd* cmd) {
|
|||||||
if (cur_yaw < 180) cur_yaw = 180;
|
if (cur_yaw < 180) cur_yaw = 180;
|
||||||
y = cur_yaw;
|
y = cur_yaw;
|
||||||
break;
|
break;
|
||||||
|
case 6: // OFFSETKEEP
|
||||||
|
y += (float)yaw;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
switch ((int)pitch_mode) {
|
switch ((int)pitch_mode) {
|
||||||
case 1:
|
case 1:
|
||||||
|
Reference in New Issue
Block a user