laststand use

This commit is contained in:
Your Name 2020-09-15 15:24:16 -06:00
parent ecb0c7f202
commit 5031566a78

View File

@ -1438,6 +1438,9 @@ bot_perk_think()
if (self HasThreat() || self HasBotJavelinLocation())
break;
if (self InLastStand() && !self InFinalStand())
break;
anyWeapout = false;
weaponsList = self GetWeaponsListAll();
for (i = 0; i < weaponsList.size; i++)
@ -1588,6 +1591,9 @@ bot_use_tube_think()
continue;
}
if (self InLastStand() && !self InFinalStand())
continue;
self SetScriptAimPos(loc);
self BotStopMoving(true);
wait 1;
@ -1895,6 +1901,9 @@ bot_jav_loc_think()
continue;
}
if (self InLastStand() && !self InFinalStand())
continue;
self SetBotJavelinLocation(loc);
self setSpawnWeapon("javelin_mp");
@ -2519,6 +2528,9 @@ bot_weapon_think()
if (self IsUsingRemote())
continue;
if (self InLastStand() && !self InFinalStand())
continue;
curWeap = self GetCurrentWeapon();
hasTarget = self hasThreat();
if(hasTarget)
@ -2765,6 +2777,9 @@ bot_killstreak_think()
if (self IsUsingRemote())
continue;
if (self InLastStand() && !self InFinalStand())
continue;
streakName = self.pers["killstreaks"][0].streakName;
if (level.inGracePeriod && maps\mp\killstreaks\_killstreaks::deadlyKillstreak(streakName))