mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-22 10:15:44 +00:00
func
This commit is contained in:
parent
343e74706c
commit
65a91aacca
@ -243,7 +243,7 @@ onWeaponChange()
|
|||||||
//fix for when switchtoweapon doesnt work and weapons get disabled from climbing or somethings
|
//fix for when switchtoweapon doesnt work and weapons get disabled from climbing or somethings
|
||||||
if(newWeapon == "none")
|
if(newWeapon == "none")
|
||||||
{
|
{
|
||||||
if(!isDefined(self.lastStand) || !self.lastStand)
|
if(!self inLastStand())
|
||||||
{
|
{
|
||||||
if(isDefined(self.lastDroppableWeapon) && self.lastDroppableWeapon != "none")
|
if(isDefined(self.lastDroppableWeapon) && self.lastDroppableWeapon != "none")
|
||||||
self setSpawnWeapon(self.lastDroppableWeapon);
|
self setSpawnWeapon(self.lastDroppableWeapon);
|
||||||
|
@ -353,6 +353,11 @@ isPlanting()
|
|||||||
return (isDefined(self.isPlanting) && self.isPlanting);
|
return (isDefined(self.isPlanting) && self.isPlanting);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inLastStand()
|
||||||
|
{
|
||||||
|
return (isDefined(self.lastStand) && self.lastStand);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Returns if we are stunned.
|
Returns if we are stunned.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user