From 5031566a78795cb94c76f9ce2033db9e36ffdc01 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 15 Sep 2020 15:24:16 -0600 Subject: [PATCH] laststand use --- userraw/maps/mp/bots/_bot_script.gsc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/userraw/maps/mp/bots/_bot_script.gsc b/userraw/maps/mp/bots/_bot_script.gsc index 8b02a37..7a131c8 100644 --- a/userraw/maps/mp/bots/_bot_script.gsc +++ b/userraw/maps/mp/bots/_bot_script.gsc @@ -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))