no land sound when dead, no broken-ear snd effect when dead, knife selection fixed, hud stats in spect mode
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2058 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -531,6 +531,7 @@ void weapon::equipplayer(playerent *pl)
|
||||
pl->setnextprimary(GUN_ASSAULT);
|
||||
}
|
||||
|
||||
bool weapon::valid(int id) { return id>=0 && id<NUMGUNS; }
|
||||
|
||||
// grenadeent
|
||||
|
||||
@@ -890,13 +891,7 @@ bool assaultrifle::selectable() { return weapon::selectable() && !m_noprimary &&
|
||||
// pistol
|
||||
|
||||
pistol::pistol(playerent *owner) : gun(owner, GUN_PISTOL) {}
|
||||
bool pistol::selectable() { return weapon::selectable() && !m_nopistol; }
|
||||
void pistol::onselecting()
|
||||
{
|
||||
// switch immediately to akimbo if present
|
||||
if(owner->akimbo) owner->weaponswitch(owner->weapons[GUN_AKIMBO]);
|
||||
else gun::onselecting();
|
||||
}
|
||||
bool pistol::selectable() { return weapon::selectable() && !m_nopistol && !owner->akimbo; }
|
||||
|
||||
|
||||
// akimbo
|
||||
|
||||
Reference in New Issue
Block a user