mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-26 15:44:49 +00:00
Bots target equipment
This commit is contained in:
parent
6201ba9a9a
commit
8a5aa1b8b4
@ -1625,7 +1625,7 @@ start_bot_threads()
|
|||||||
if (getDvarInt("bots_play_target_other"))
|
if (getDvarInt("bots_play_target_other"))
|
||||||
{
|
{
|
||||||
//self thread bot_target_vehicle();
|
//self thread bot_target_vehicle();
|
||||||
//self thread bot_equipment_kill_think();
|
self thread bot_equipment_kill_think();
|
||||||
//self thread bot_turret_think();
|
//self thread bot_turret_think();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2958,7 +2958,7 @@ bot_equipment_kill_think()
|
|||||||
if ( IsDefined( item.owner ) && ((level.teamBased && item.owner.team == self.team) || item.owner == self) )
|
if ( IsDefined( item.owner ) && ((level.teamBased && item.owner.team == self.team) || item.owner == self) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (item.name != "c4_mp" && item.name != "claymore_mp")
|
if (item.name != "c4_mp" && item.name != "claymore_mp" && item.name != "bouncingbetty_mp" && item.name != "portable_radar_mp" && item.name != "trophy_mp" && item.name != "scrambler_mp")
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(!hasSitrep && !bulletTracePassed(myEye, item.origin, false, item))
|
if(!hasSitrep && !bulletTracePassed(myEye, item.origin, false, item))
|
||||||
@ -3037,8 +3037,7 @@ bot_equipment_kill_think()
|
|||||||
self CampAtSpot(target.origin, target.origin + (0, 0, 42));
|
self CampAtSpot(target.origin, target.origin + (0, 0, 42));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isDefined(target))
|
self thread BotPressUse();
|
||||||
target.enemyTrigger notify("trigger", self);
|
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user