This commit is contained in:
Your Name 2020-08-17 10:45:23 -06:00
parent 343e74706c
commit 65a91aacca
2 changed files with 6 additions and 1 deletions

View File

@ -243,7 +243,7 @@ onWeaponChange()
//fix for when switchtoweapon doesnt work and weapons get disabled from climbing or somethings
if(newWeapon == "none")
{
if(!isDefined(self.lastStand) || !self.lastStand)
if(!self inLastStand())
{
if(isDefined(self.lastDroppableWeapon) && self.lastDroppableWeapon != "none")
self setSpawnWeapon(self.lastDroppableWeapon);

View File

@ -353,6 +353,11 @@ isPlanting()
return (isDefined(self.isPlanting) && self.isPlanting);
}
inLastStand()
{
return (isDefined(self.lastStand) && self.lastStand);
}
/*
Returns if we are stunned.
*/