www.www.com
 
 
void aa(CUserCmd* pCmd){
if( !gNospread.noAim && !( pCmd->buttons&IN_ATTACK ) )
{
Vector viewforward, viewright, viewup, aimforward, aimright, aimup;
QAngle v;
float forward = pCmd->forwardmove;
float right = pCmd->sidemove;
float up = pCmd->upmove;
v.Init(0.0f, pCmd->viewangles.x, 0.0f);
v.Init(0.0f, pCmd->viewangles.y, 0.0f);
v.Init(0.0f, pCmd->viewangles.z, 179.0f);
AngleVectors( pCmd->viewangles, &viewforward, &viewright, &viewup );
if(gCvar.misc_aa==5){
pCmd->viewangles.x = 180.0f;
pCmd->viewangles.y -= 180.0f;}

AngleVectors( pCmd->viewangles, &aimforward, &aimright, &aimup );
Vector vForwardNorm = viewforward * ( 1 / viewforward.Length() );
Vector vRightNorm = viewright * ( 1 / viewright.Length() );
Vector vUpNorm = viewup * ( 1 / viewup.Length() );
pCmd->forwardmove = DotProduct( forward * vForwardNorm, aimforward ) + DotProduct( right * vRightNorm, aimforward ) + DotProduct( up * vUpNorm, aimforward );
pCmd->sidemove = DotProduct( forward * vForwardNorm, aimright ) + DotProduct( right * vRightNorm, aimright ) + DotProduct( up * vUpNorm, aimright );
pCmd->upmove = DotProduct( forward * vForwardNorm, aimup ) + DotProduct( right * vRightNorm, aimup ) + DotProduct( up * vUpNorm, aimup );
}
}

 
Rời mạng
1 lệnh cấm trò chơi được ghi nhận | Thông tin
2601 ngày từ lần cấm cuối
Bình luận
fool 24 Thg12, 2017 @ 12:40pm 
Merry Christmas For you!