mirror of
https://github.com/JezuzLizard/t4sp_bot_warfare.git
synced 2025-06-29 15:51:53 +00:00
prio
This commit is contained in:
@ -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 );
|
||||
|
Reference in New Issue
Block a user