This commit is contained in:
parent
5ac50e9c22
commit
bf8cdb4ae1
@ -111,13 +111,11 @@ private:
|
||||
};
|
||||
|
||||
|
||||
class CBaseWeaponPickup : public CBaseRespawningPickup
|
||||
class CBaseWeaponPickup : public CBasePickup
|
||||
{
|
||||
protected:
|
||||
virtual void collidedWith(CThing *_thisThing);
|
||||
|
||||
virtual int getRespawnTime() {return 5*60;}
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
@ -746,17 +746,28 @@ if(newmode!=-1)
|
||||
{
|
||||
// Think
|
||||
updatePadInput();
|
||||
if(getPadInputDown()&PI_WEAPONCHANGE)
|
||||
if(!m_tryingToPickupWeapon)
|
||||
{
|
||||
if(m_currentMode==PLAYER_MODE_BASICUNARMED||
|
||||
m_currentMode==PLAYER_MODE_FULLUNARMED)
|
||||
{
|
||||
// Always trying to pickup weapon if unarmed... means that when SB walks
|
||||
// over an item whilst unarmed, he automatically picks it up
|
||||
m_tryingToPickupWeapon=true;
|
||||
}
|
||||
else if(getPadInputDown()&PI_WEAPONCHANGE)
|
||||
{
|
||||
if(!m_tryingToPickupWeapon&&
|
||||
m_currentMode!=PLAYER_MODE_BASICUNARMED&&
|
||||
m_currentMode!=PLAYER_MODE_FULLUNARMED&&
|
||||
m_currentMode!=PLAYER_MODE_DEAD)
|
||||
{
|
||||
// Drop current weapon
|
||||
setMode(PLAYER_MODE_FULLUNARMED);
|
||||
}
|
||||
m_tryingToPickupWeapon=true;
|
||||
}
|
||||
}
|
||||
|
||||
// Trying to converate?
|
||||
if(m_allowConversation==false&&
|
||||
|
Loading…
Reference in New Issue
Block a user