Skip to content

Commit

Permalink
- Updated Northstar scripts to version 1.14.2 (Bugfix for Attrition s…
Browse files Browse the repository at this point in the history
…cript loop).
  • Loading branch information
Gazyi committed May 13, 2023
1 parent 4f64485 commit 4c476c4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"Description": "Gives AI minions various anti-titan capabilities.",
"LoadPriority": 2,
"RequiredOnClient": false,
"Version": "1.0.4",
"Version": "1.0.6",
"ConVars":
[
// Weapon distribution CVARs.
Expand Down
11 changes: 11 additions & 0 deletions mod/scripts/vscripts/gamemodes/_gamemode_aitdm.nut
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,18 @@ void function SquadHandler( array<entity> guys )
// Get point and send our whole squad to it
points = GetNPCArrayOfEnemies( team )
if ( points.len() == 0 ) // can't find any points here
{
// Have to wait some amount of time before continuing
// because if we don't the server will continue checking this
// forever, aren't loops fun?
// This definitely didn't waste ~8 hours of my time reverting various
// launcher PRs before finding this mods PR that caused servers to
// freeze forever before having their process killed by the dedi watchdog
// without any logging. If anyone reads this, PLEASE add logging to your scripts
// for when weird edge cases happen, it can literally only help debugging. -Spoon
WaitFrame()
continue
}

point = points[ RandomInt( points.len() ) ].GetOrigin()

Expand Down

0 comments on commit 4c476c4

Please sign in to comment.