From 3985b3dd5cd60bc0b68db76835619b6f756e73d1 Mon Sep 17 00:00:00 2001 From: okvdai <108829133+okvdai@users.noreply.github.com> Date: Fri, 2 Jun 2023 14:00:38 +0200 Subject: [PATCH] pulseGetData() function --- mod/scripts/vscripts/pulse.gnut | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/mod/scripts/vscripts/pulse.gnut b/mod/scripts/vscripts/pulse.gnut index 1244bbc..e3538de 100644 --- a/mod/scripts/vscripts/pulse.gnut +++ b/mod/scripts/vscripts/pulse.gnut @@ -11,3 +11,17 @@ void function pulseInit() pulsePrefixSet() pulsePrintt("Initialized.") } + +void function pulseGetData() +{ + string URL = GetConVarString("ToneURL") + array URLpath = ["/weapons", "/weapons", "/gamemodes", "/gamemodes", "/maps"] + pulseRequestData(URL + URLpath[1], ["uid" = NSGetLocalPlayerUID()]) + pulseRequestData(URL + URLpath[2], ["uid" = "!" + NSGetLocalPlayerUID()]) + pulseRequestData(URL + URLpath[3], ["uid" = NSGetLocalPlayerUID()]) + foreach (map in file.allMaps) + { + pulseRequestData(URL + URLpath[4], ["uid" = NSGetLocalPlayerUID(), "map" = map.slice(3)]) + } + pulseRequestData(URL + URLpath[5], ["uid" = NSGetLocalPlayerUID()]) +} \ No newline at end of file