mirror of
https://github.com/ineedbots/t5_bot_warfare.git
synced 2025-04-20 16:45:43 +00:00
Fixed bot knifing
This commit is contained in:
parent
5b74f8f563
commit
5cd66b4a28
@ -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";
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user