mirror of
https://github.com/ineedbots/iw2_bot_warfare.git
synced 2025-04-22 23:25:42 +00:00
check for none
This commit is contained in:
parent
81856f9d28
commit
f9289077ef
@ -422,9 +422,13 @@ onWeaponChange()
|
|||||||
{
|
{
|
||||||
first = false;
|
first = false;
|
||||||
newWeapon = self getcurrentweapon();
|
newWeapon = self getcurrentweapon();
|
||||||
|
|
||||||
// hack fix for botstop overridding weapon
|
// hack fix for botstop overridding weapon
|
||||||
|
if ( newWeapon != "none" )
|
||||||
|
{
|
||||||
self switchtoweapon( newWeapon );
|
self switchtoweapon( newWeapon );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
self waittill( "weapon_change", newWeapon );
|
self waittill( "weapon_change", newWeapon );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user