Fixed bot knifing

This commit is contained in:
INeedBots 2021-01-18 19:08:39 -06:00
parent 5b74f8f563
commit 5cd66b4a28
2 changed files with 8 additions and 0 deletions

View File

@ -98,6 +98,8 @@ bot_give_loadout()
self takeAllWeapons(); self takeAllWeapons();
self GiveWeapon( "knife_mp" );
weap = self.pers["bot"]["class_primary"]; weap = self.pers["bot"]["class_primary"];
if(weap == "") if(weap == "")
weap = "ak47_mp"; weap = "ak47_mp";

View File

@ -17,6 +17,8 @@ init()
{ {
level.bw_VERSION = "1.1.0"; level.bw_VERSION = "1.1.0";
level.bot_offline = false;
if(getDvar("bots_main") == "") if(getDvar("bots_main") == "")
setDvar("bots_main", true); setDvar("bots_main", true);
@ -339,6 +341,8 @@ bot_set_difficulty( difficulty )
SetDvar( "sv_botAllowGrenades", "0" ); SetDvar( "sv_botAllowGrenades", "0" );
SetDvar( "bot_difficulty", difficulty ); SetDvar( "bot_difficulty", difficulty );
SetDvar( "scr_bot_difficulty", difficulty );
SetDvar( "splitscreen_botDifficulty", difficulty );
} }
/* /*
@ -625,6 +629,8 @@ add_bot()
if (isdefined(bot)) if (isdefined(bot))
{ {
bot.pers["isBot"] = true; bot.pers["isBot"] = true;
bot.equipment_enabled = true;
bot.pers[ "bot_perk" ] = true;
bot.pers["isBotWarfare"] = true; bot.pers["isBotWarfare"] = true;
bot thread maps\mp\bots\_bot_script::added(); bot thread maps\mp\bots\_bot_script::added();
} }