-
Автор темы
- #1
How to make the lw directional autostrafe like the v3 one so it's not shitty anymore. It's not that bad but it could be a lot better. If anybody knows what to change, write here
ток там не вт немножечко, а по коду очень очень похоже на гуччи...onetap strafer is shit
ну если бы я не написал onetap, он бы написал что он про вантап спрашивает.ток там не вт немножечко, а по коду очень очень похоже на гуччи...
i can give you on discord my remaked private cool auto straferHow to make the lw directional autostrafe like the v3 one so it's not shitty anymore. It's not that bad but it could be a lot better. If anybody knows what to change, write here
give me your discordi can give you on discord my remaked private cool auto strafer
Krine_Edits#7994give me your discord
U still got it? I need it toololKrine_Edits#7994
if( g_cl.m_pressing_move && g_cfg[ XOR( "misc_wasd_strafe" ) ].get<bool>( ) ) {
// took this idea from stacker, thank u !!!!
enum EDirections {
FORWARDS = 0,
BACKWARDS = 180,
LEFT = 90,
RIGHT = -90,
BACK_LEFT = 135,
BACK_RIGHT = -135
};
float wish_dir{ };
// get our key presses.
bool holding_w = g_cl.m_buttons & IN_FORWARD;
bool holding_a = g_cl.m_buttons & IN_MOVELEFT;
bool holding_s = g_cl.m_buttons & IN_BACK;
bool holding_d = g_cl.m_buttons & IN_MOVERIGHT;
// move in the appropriate direction.
if( holding_w ) {
// forward left
if( holding_a ) {
wish_dir += ( EDirections::LEFT / 2 );
}
// forward right
else if( holding_d ) {
wish_dir += ( EDirections::RIGHT / 2 );
}
// forward
else {
wish_dir += EDirections::FORWARDS;
}
}
else if( holding_s ) {
// back left
if( holding_a ) {
wish_dir += EDirections::BACK_LEFT;
}
// back right
else if( holding_d ) {
wish_dir += EDirections::BACK_RIGHT;
}
// back
else {
wish_dir += EDirections::BACKWARDS;
}
g_cl.m_cmd->m_forward_move = 0;
}
else if( holding_a ) {
// left
wish_dir += EDirections::LEFT;
}
else if( holding_d ) {
// right
wish_dir += EDirections::RIGHT;
}
g_cl.m_strafe_angles.y += math::NormalizeYaw(wish_dir);
}
Проект предоставляет различный материал, относящийся к сфере киберспорта, программирования, ПО для игр, а также позволяет его участникам общаться на многие другие темы. Почта для жалоб: admin@yougame.biz