yurihari
Weimar, Thuringen, Germany
 
 
void SV_Accelerate (float wishspeed, const vec3_t wishdir)
{
int i;
float addspeed, accelspeed, currentspeed;

currentspeed = DotProduct (velocity, wishdir);
addspeed = wishspeed - currentspeed;
if (addspeed <= 0)
return;
accelspeed = sv_accelerate.value*host_frametime*wishspeed;
if (accelspeed > addspeed)
accelspeed = addspeed;

for (i=0 ; i<3 ; i++)
velocity += accelspeed*wishdir ;
}
< >
Comments
-iA- poison Oct 21, 2018 @ 6:35am 
:sccatgirl:~:loveglow: