mirror of
https://github.com/ineedbots/t5_bot_warfare.git
synced 2025-08-30 21:13:14 +00:00
bot equipment
This commit is contained in:
@@ -1042,7 +1042,7 @@ bot_use_equipment_think()
|
|||||||
dir = vector_scale( dir, 32 );
|
dir = vector_scale( dir, 32 );
|
||||||
goal = self.origin + dir;
|
goal = self.origin + dir;
|
||||||
|
|
||||||
if (randomInt(100) < 50)
|
if (randomInt(100) > 35)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
grenades = GetEntArray( "grenade", "classname" );
|
grenades = GetEntArray( "grenade", "classname" );
|
||||||
@@ -1057,7 +1057,7 @@ bot_use_equipment_think()
|
|||||||
if ( !IsWeaponEquipment( item.name ) )
|
if ( !IsWeaponEquipment( item.name ) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ( DistanceSquared( item.origin, origin ) < 128 * 128 )
|
if ( DistanceSquared( item.origin, goal ) < 128 * 128 )
|
||||||
anyEquNear = true;
|
anyEquNear = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user