spectator fixes, recoil tuning

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1450 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-12-01 17:34:05 +00:00
parent 5b7890d820
commit e63d35c4c0
6 changed files with 33 additions and 22 deletions
+2 -2
View File
@@ -67,7 +67,7 @@ struct weaponmove
if(progress > 100.0f || progress < 0) progress = 1.0f;
// f(x) = -sin(x-1.5)^3
kick = -sinf(pow((1.5f*progress)-1.5f,3));
if(player1->crouching) kick *= 0.5f;
if(player1->crouching) kick *= 0.75f;
}
if(player1->lastaction && player1->lastattackgun==player1->gunselect)
@@ -104,7 +104,7 @@ struct weaponmove
sway.y *= swayspeed;
sway.z *= swayupspeed;
if(player1->crouching) sway.mul(0.5f);
if(player1->crouching) sway.mul(0.75f);
}
pos.x -= base.x*k_back+sway.x;