1
0
mirror of https://github.com/ineedbots/iw5_bot_warfare.git synced 2025-06-29 07:31:50 +00:00

Prep for bot chatter

This commit is contained in:
ineed bots
2022-04-20 12:59:21 -06:00
parent d8bc00708e
commit 234e095efe
5 changed files with 130 additions and 40 deletions

View File

@ -230,6 +230,14 @@ BotStopMoving( what )
self notify( "kill_goal" );
}
/*
Notify the bot chat message
*/
BotNotifyBotEvent( msg, a, b, c, d, e, f, g )
{
self notify( "bot_event", msg, a, b, c, d, e, f, g );
}
/*
Returns if the bot has a script goal.
(like t5 gsc bot)
@ -766,19 +774,6 @@ Round( x )
return y;
}
/*
Rounds up the given value.
*/
RoundUp( floatVal )
{
i = int( floatVal );
if ( i != floatVal )
return i + 1;
else
return i;
}
/*
converts a string into a float
*/
@ -2493,6 +2488,12 @@ botGiveLoadout( team, class, allowCopycat, setPrimarySpawnWeapon ) // setPrimary
if ( loadoutStreakType == "streaktype_support" )
loadoutStreakType = "streaktype_assault";
if ( loadoutPrimary == "riotshield" )
loadoutPrimary = "iw5_m4";
if ( loadoutSecondary == "riotshield" )
loadoutSecondary = "iw5_m4";
}
self maps\mp\gametypes\_class::loadoutFakePerks( loadoutStreakType );