From 79dbab8fcbb9f49515d9f24e41118e5fac64827b Mon Sep 17 00:00:00 2001 From: okvdai <108829133+okvdai@users.noreply.github.com> Date: Mon, 24 Apr 2023 22:11:42 +0200 Subject: [PATCH] Update pulse.gnut --- mod/scripts/vscripts/pulse.gnut | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/mod/scripts/vscripts/pulse.gnut b/mod/scripts/vscripts/pulse.gnut index f6ca8b7..ecfe1f9 100644 --- a/mod/scripts/vscripts/pulse.gnut +++ b/mod/scripts/vscripts/pulse.gnut @@ -50,10 +50,6 @@ void function GetStatsFromToneAPI_threaded(){ int function getWeaponKillsFromToneApi(string weaponRef){ - if(weaponRef.find("mp_weapon") != null){ - weaponRef = weaponRef.slice(10) - } - if(weaponRef in globalToneAPIKillData){ print("[PULSE] Found matching weapon : " + weaponRef + " with " + globalToneAPIKillData[weaponRef] + " kills") return expect int(globalToneAPIKillData[weaponRef]) @@ -63,10 +59,6 @@ int function getWeaponKillsFromToneApi(string weaponRef){ int function getNemesisWeaponFromToneAPI(string weaponRef){ - if(weaponRef.find("mp_weapon") != null){ - weaponRef = weaponRef.slice(10) - } - if(weaponRef in globalToneAPIDeathData){ print("[PULSE] Found matching weapon : " + weaponRef + " with " + globalToneAPIDeathData[weaponRef] + " nemesis weapon kills") return expect int(globalToneAPIDeathData[weaponRef]) @@ -76,10 +68,6 @@ int function getNemesisWeaponFromToneAPI(string weaponRef){ int function getDWEFromToneAPI(string weaponRef){ - if(weaponRef.find("mp_weapon") != null){ - weaponRef = weaponRef.slice(10) - } - if(weaponRef in globalToneAPIDWEData){ print("[PULSE] Found matching weapon : " + weaponRef + " with " + globalToneAPIDeathData[weaponRef] + " deaths while equipped") return expect int(globalToneAPIDWEData[weaponRef])