From edb0004fd80426f04306540d6511d0016e4673c2 Mon Sep 17 00:00:00 2001 From: ineed bots Date: Fri, 14 Jul 2023 21:08:57 -0600 Subject: [PATCH] prio --- maps/bots/objectives/_wallweapon.gsc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/maps/bots/objectives/_wallweapon.gsc b/maps/bots/objectives/_wallweapon.gsc index 120b0dc..7dac0fd 100644 --- a/maps/bots/objectives/_wallweapon.gsc +++ b/maps/bots/objectives/_wallweapon.gsc @@ -129,6 +129,7 @@ Executer( eObj ) self WatchForCancelCleanup(); self ClearScriptAimPos(); self ClearScriptGoal(); + self ClearPriorityObjective(); self CompletedObjective( eObj.bWasSuccessful, eObj.sReason ); } @@ -184,6 +185,13 @@ GoDoWallweapon( eObj ) model = getEnt( weapon.target, "targetname" ); org = self getOffset( model, weapon ); + weap = self GetCurrentWeapon(); + + if ( weap == "none" || !self getAmmoCount( weap ) ) + { + self SetPriorityObjective(); + } + // go to weapon self thread WatchToGoToWeapon( weapon ); self SetScriptGoal( org, 32 );