reduced crouch speed from 50% to 40%

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3483 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-11-10 13:17:13 +00:00
parent 4ac8c8e39d
commit 7fdaff745c
+1 -1
View File
@@ -362,7 +362,7 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime)
water = hdr.waterlevel>pl->o.z-0.5f;
const bool crouching = pl->crouching || pl->eyeheight < pl->maxeyeheight;
const float speed = curtime/(water ? 2000.0f : 1000.0f)*pl->maxspeed*(crouching ? 0.5f : 1.0f)*(specfly ? 2.0f : 1.0f);
const float speed = curtime/(water ? 2000.0f : 1000.0f)*pl->maxspeed*(crouching ? 0.4f : 1.0f)*(specfly ? 2.0f : 1.0f);
const float friction = water ? 20.0f : (pl->onfloor || editfly || specfly ? 6.0f : (pl->onladder ? 1.5f : 30.0f));
const float fpsfric = max(friction/curtime*20.0f, 1.0f);