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