From bc38b36e4a0084ec11276a9c9a6e679dc2802527 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Thu, 28 Apr 2022 10:20:55 -0500 Subject: [PATCH] ignore bots for game interface --- GameFiles/IW4x/userraw/scripts/_integration.gsc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/GameFiles/IW4x/userraw/scripts/_integration.gsc b/GameFiles/IW4x/userraw/scripts/_integration.gsc index 1b8a50984..b06fedf5d 100644 --- a/GameFiles/IW4x/userraw/scripts/_integration.gsc +++ b/GameFiles/IW4x/userraw/scripts/_integration.gsc @@ -22,6 +22,8 @@ init() level.eventTypes.setClientDataRequested = "SetClientDataRequested"; level.eventTypes.setClientDataCompleted = "SetClientDataCompleted"; level.eventTypes.executeCommandRequested = "ExecuteCommandRequested"; + + level.iw4adminIntegrationDebug = false; SetDvarIfUninitialized( level.eventBus.inVar, "" ); SetDvarIfUninitialized( level.eventBus.outVar, "" ); @@ -59,6 +61,12 @@ OnPlayerConnect() level.iw4adminIntegrationDebug = GetDvarInt( "sv_iw4madmin_integration_debug" ); + if ( player.pers["isBot"] ) + { + // we don't want to track bots + continue; + } + if ( !isDefined( player.pers[level.clientDataKey] ) ) { player.pers[level.clientDataKey] = spawnstruct();