mirror of
				https://github.com/ineedbots/t5_bot_warfare.git
				synced 2025-11-04 01:57:07 +00:00 
			
		
		
		
	Fixed bot knifing
This commit is contained in:
		@@ -98,6 +98,8 @@ bot_give_loadout()
 | 
			
		||||
		
 | 
			
		||||
		
 | 
			
		||||
	self takeAllWeapons();
 | 
			
		||||
	self GiveWeapon( "knife_mp" );
 | 
			
		||||
 | 
			
		||||
	weap = self.pers["bot"]["class_primary"];
 | 
			
		||||
	if(weap == "")
 | 
			
		||||
		weap = "ak47_mp";
 | 
			
		||||
 
 | 
			
		||||
@@ -17,6 +17,8 @@ init()
 | 
			
		||||
{
 | 
			
		||||
	level.bw_VERSION = "1.1.0";
 | 
			
		||||
 | 
			
		||||
	level.bot_offline = false;
 | 
			
		||||
 | 
			
		||||
	if(getDvar("bots_main") == "")
 | 
			
		||||
		setDvar("bots_main", true);
 | 
			
		||||
 | 
			
		||||
@@ -339,6 +341,8 @@ bot_set_difficulty( difficulty )
 | 
			
		||||
		SetDvar( "sv_botAllowGrenades",		"0"	);
 | 
			
		||||
		
 | 
			
		||||
	SetDvar( "bot_difficulty", difficulty );
 | 
			
		||||
	SetDvar( "scr_bot_difficulty", difficulty );
 | 
			
		||||
	SetDvar( "splitscreen_botDifficulty", difficulty );
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
@@ -625,6 +629,8 @@ add_bot()
 | 
			
		||||
	if (isdefined(bot))
 | 
			
		||||
	{
 | 
			
		||||
		bot.pers["isBot"] = true;
 | 
			
		||||
		bot.equipment_enabled = true;
 | 
			
		||||
		bot.pers[ "bot_perk" ] = true;
 | 
			
		||||
		bot.pers["isBotWarfare"] = true;
 | 
			
		||||
		bot thread maps\mp\bots\_bot_script::added();
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user