smooth recoil, crouching

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1424 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-11-11 16:11:51 +00:00
parent 6e3f739b96
commit edf220fc63
4 changed files with 18 additions and 11 deletions
+5
View File
@@ -291,6 +291,11 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime)
d = pl->vel;
d.mul(speed);
// smooth pitch
pl->pitch += pl->pitchvel*speed;
pl->pitchvel *= fpsfric-3;
pl->pitchvel /= fpsfric;
if(floating) // just apply velocity
{
pl->o.add(d);