mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-20 17:55:42 +00:00
Fixed prone shooting
This commit is contained in:
parent
23a682decd
commit
f1de7e695a
@ -335,6 +335,10 @@ stance()
|
|||||||
toStance = "stand";
|
toStance = "stand";
|
||||||
if(self.bot.next_wp != -1)
|
if(self.bot.next_wp != -1)
|
||||||
toStance = level.waypoints[self.bot.next_wp].type;
|
toStance = level.waypoints[self.bot.next_wp].type;
|
||||||
|
|
||||||
|
if(toStance == "climb")
|
||||||
|
toStance = "stand";
|
||||||
|
|
||||||
if(toStance != "stand" && toStance != "crouch" && toStance != "prone")
|
if(toStance != "stand" && toStance != "crouch" && toStance != "prone")
|
||||||
toStance = "crouch";
|
toStance = "crouch";
|
||||||
|
|
||||||
@ -1203,7 +1207,7 @@ walk()
|
|||||||
{
|
{
|
||||||
curweap = self getCurrentWeapon();
|
curweap = self getCurrentWeapon();
|
||||||
|
|
||||||
if(self.bot.target.entity.classname == "script_vehicle" || self.bot.isfraggingafter || self.bot.issmokingafter)
|
if(self.bot.target.entity.classname == "script_vehicle" || self.bot.isfraggingafter || self.bot.issmokingafter || self InLastStand() || self GetStance() == "prone")
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -130,6 +130,14 @@ IsBotReloading()
|
|||||||
return self.bot.isreloading;
|
return self.bot.isreloading;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Is bot knifing
|
||||||
|
*/
|
||||||
|
IsBotKnifing()
|
||||||
|
{
|
||||||
|
return self.bot.isknifingafter;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Freezes the bot's controls.
|
Freezes the bot's controls.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user