weaponswitch sound for pistol too

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2040 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-05-18 17:54:49 +00:00
parent bc76606d47
commit a5e6556278
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -261,7 +261,7 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime)
drop = rise = 0;
water = hdr.waterlevel>pl->o.z;
const float speed = curtime/(water ? 2000.0f : 1000.0f)*pl->maxspeed;
const float speed = curtime*pl->maxspeed/(water ? 2000.0f : 1000.0f);
const float friction = water ? 20.0f : (pl->onfloor || editfly || specfly ? 6.0f : 30.0f);
const float fpsfric = friction/curtime*20.0f;
+1
View File
@@ -891,6 +891,7 @@ void pistol::onselecting()
{
// switch immediately to akimbo if present
if(owner->akimbo) owner->weaponswitch(owner->weapons[GUN_AKIMBO]);
else gun::onselecting();
}