summaryrefslogtreecommitdiff
path: root/sourcemod/scripting/gokz-quiet/soundscape.sp
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-02-17 23:42:09 +0100
committeraura <nw@moneybot.cc>2026-02-17 23:42:09 +0100
commit5e2eb7d67ae933b7566f1944d0bb7744da03d586 (patch)
tree054acff1113270a9cd07933df760f3768c1b6853 /sourcemod/scripting/gokz-quiet/soundscape.sp
parent341db13a008dc12bb22ceb50452d93d01476308c (diff)
move source stuff to its own folder
Diffstat (limited to 'sourcemod/scripting/gokz-quiet/soundscape.sp')
-rw-r--r--sourcemod/scripting/gokz-quiet/soundscape.sp30
1 files changed, 0 insertions, 30 deletions
diff --git a/sourcemod/scripting/gokz-quiet/soundscape.sp b/sourcemod/scripting/gokz-quiet/soundscape.sp
deleted file mode 100644
index f320ad3..0000000
--- a/sourcemod/scripting/gokz-quiet/soundscape.sp
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- Toggle soundscapes.
-*/
-
-static int currentSoundscapeIndex[MAXPLAYERS + 1] = {BLANK_SOUNDSCAPEINDEX, ...};
-
-void EnableSoundscape(int client)
-{
- if (currentSoundscapeIndex[client] != BLANK_SOUNDSCAPEINDEX)
- {
- SetEntProp(client, Prop_Data, "soundscapeIndex", currentSoundscapeIndex[client]);
- }
-}
-
-void OnPlayerRunCmdPost_Soundscape(int client)
-{
- int soundscapeIndex = GetEntProp(client, Prop_Data, "soundscapeIndex");
- if (GOKZ_GetOption(client, gC_QTOptionNames[QTOption_Soundscapes]) == Soundscapes_Disabled)
- {
- if (soundscapeIndex != BLANK_SOUNDSCAPEINDEX)
- {
- currentSoundscapeIndex[client] = soundscapeIndex;
- }
- SetEntProp(client, Prop_Data, "soundscapeIndex", BLANK_SOUNDSCAPEINDEX);
- }
- else
- {
- currentSoundscapeIndex[client] = soundscapeIndex;
- }
-} \ No newline at end of file