From 85e6b3e8ac155aa2daa7bf8f1f867960ba91e6e7 Mon Sep 17 00:00:00 2001 From: Jelle Bouma Date: Sun, 14 Jun 2026 17:46:51 +0200 Subject: [PATCH] fix bug in FFA without sweep level.uav_type will be undefined and cause an error in FFA without sweep, sweep logic shouldnt be called --- GSC/AlwaysUAV/AlwaysUAV.gsc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GSC/AlwaysUAV/AlwaysUAV.gsc b/GSC/AlwaysUAV/AlwaysUAV.gsc index 4736675..6432367 100644 --- a/GSC/AlwaysUAV/AlwaysUAV.gsc +++ b/GSC/AlwaysUAV/AlwaysUAV.gsc @@ -57,7 +57,7 @@ onPlayerConnect() onPlayerSpawn() { self endon("disconnect"); - self thread giveUavFFA(); + if(getDvarInt("sweep_uav")) self thread giveUavFFA(); for(;;) { @@ -213,4 +213,4 @@ launchUAV(owner, team, duration, uavType) getRadarStrength(team) { return 3; } updateUAVModelVisibility() { self hide(); } blank(arg1, arg2) {} -returnTrue(arg1, arg2, arg3, arg4) { return true; } \ No newline at end of file +returnTrue(arg1, arg2, arg3, arg4) { return true; }