STEAM GROUP
hoodb0yzz h n g r
STEAM GROUP
hoodb0yzz h n g r
0
IN-GAME
0
ONLINE
Founded
14 August, 2017
Location
United States 
ABOUT hoodb0yzz

//ferraripeek

const weapon_info_t *weapon_info = local_weapon->get_weapon_info( );
if( !weapon_info )
return;


const float max_speed = local_weapon->has_scope( ) ? weapon_info->max_speed_alt : weapon_info->max_speed;

if( g_misc.unpredicted_vel.length_2d( ) > max_speed * .34f ) {
const vec3_t velocity = g_misc.unpredicted_vel;
const float_t speed = g_cl.m_local->velocity( ).length( );

vec3_t direction;
math::vector_angle( velocity, direction );

direction.y = m_cmd->m_viewangles.y - direction.y;

vec3_t forward;
math::angle_to_vector( direction, forward );
vec3_t negated_direction = forward * -speed;

const float factor = std::max( negated_direction.x, negated_direction.y ) / 450.f;
negated_direction *= factor;

m_cmd->m_forwardmove = negated_direction.x;
m_cmd->m_sidemove = negated_direction.y;
}
POPULAR DISCUSSIONS
VIEW ALL (9)
GROUP MEMBERS
Administrators
Members
0
IN-GAME
0
ONLINE
1 IN CHAT
Enter chat room
Founded
14 August, 2017
Location
United States 
ASSOCIATED GAMES