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 );
}
}

 
Şu Anda Çevrimdışı
Kayıtlarda 1 oyun yasaklanması | Bilgi
En son 2601 gün önce yasaklandı
Yorumlar
fool 24 Ara 2017 @ 12:40 
Merry Christmas For you!