mirror of
https://github.com/ineedbots/iw2_bot_warfare.git
synced 2025-10-29 12:26:56 +00:00
bots properally use weapons
This commit is contained in:
@@ -96,6 +96,17 @@ BotBuiltinBotAngles( angles )
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Sets weapon
|
||||
*/
|
||||
BotBuiltinBotWeapon( weapon )
|
||||
{
|
||||
if ( isdefined( level.bot_builtins ) && isdefined( level.bot_builtins[ "botweapon" ] ) )
|
||||
{
|
||||
self [[ level.bot_builtins[ "botweapon" ] ]]( weapon );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Returns if player is the host
|
||||
*/
|
||||
@@ -479,6 +490,11 @@ ClearPriorityObjective()
|
||||
self notify( "kill_goal" );
|
||||
}
|
||||
|
||||
isPlantingOrDefusing()
|
||||
{
|
||||
return isdefined( self.progressbackground );
|
||||
}
|
||||
|
||||
/*
|
||||
If the site is in use
|
||||
*/
|
||||
@@ -591,6 +607,16 @@ getWeaponSlot( weap )
|
||||
}
|
||||
}
|
||||
|
||||
getWeaponsListPrimaries()
|
||||
{
|
||||
answer = [];
|
||||
|
||||
answer[ answer.size ] = self getweaponslotweapon( "primary" );
|
||||
answer[ answer.size ] = self getweaponslotweapon( "primaryb" );
|
||||
|
||||
return answer;
|
||||
}
|
||||
|
||||
/*
|
||||
cOD2
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user