- Added Xaser's weapon patch to check +reload and +zoom in A_WeaponReady.

SVN r3530 (trunk)
This commit is contained in:
Christoph Oelckers 2012-04-07 13:07:25 +00:00
commit 235a09d92a
8 changed files with 172 additions and 3 deletions

View file

@ -653,6 +653,28 @@ FState *AWeapon::GetAltAtkState (bool hold)
return state;
}
//===========================================================================
//
// AWeapon :: GetRelState
//
//===========================================================================
FState *AWeapon::GetRelState ()
{
return FindState(NAME_Reload);
}
//===========================================================================
//
// AWeapon :: GetZoomState
//
//===========================================================================
FState *AWeapon::GetZoomState ()
{
return FindState(NAME_Zoom);
}
/* Weapon giver ***********************************************************/
class AWeaponGiver : public AWeapon