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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user