From 5e2eb7d67ae933b7566f1944d0bb7744da03d586 Mon Sep 17 00:00:00 2001 From: aura Date: Tue, 17 Feb 2026 23:42:09 +0100 Subject: move source stuff to its own folder --- sourcemod/scripting/gokz-quiet/falldamage.sp | 40 ---------------------------- 1 file changed, 40 deletions(-) delete mode 100644 sourcemod/scripting/gokz-quiet/falldamage.sp (limited to 'sourcemod/scripting/gokz-quiet/falldamage.sp') diff --git a/sourcemod/scripting/gokz-quiet/falldamage.sp b/sourcemod/scripting/gokz-quiet/falldamage.sp deleted file mode 100644 index 6bd0533..0000000 --- a/sourcemod/scripting/gokz-quiet/falldamage.sp +++ /dev/null @@ -1,40 +0,0 @@ -/* - Toggle player's fall damage sounds. -*/ - -void OnPluginStart_FallDamage() -{ - AddNormalSoundHook(Hook_NormalSound); -} - -static Action Hook_NormalSound(int clients[MAXPLAYERS], int& numClients, char sample[PLATFORM_MAX_PATH], int& entity, int& channel, float& volume, int& level, int& pitch, int& flags, char soundEntry[PLATFORM_MAX_PATH], int& seed) -{ - if (!StrEqual(soundEntry, "Player.FallDamage")) - { - return Plugin_Continue; - } - - for (int i = 0; i < numClients; i++) - { - int client = clients[i]; - if (!IsValidClient(client)) - { - continue; - } - int clientArray[1]; - clientArray[0] = client; - float newVolume; - if (GOKZ_QT_GetOption(client, QTOption_FallDamageSound) == -1 || GOKZ_QT_GetOption(client, QTOption_FallDamageSound) == 10) - { - newVolume = volume; - } - else - { - float volumeFactor = float(GOKZ_QT_GetOption(client, QTOption_FallDamageSound)) * 0.1; - newVolume = volume * volumeFactor; - } - - EmitSoundEntry(clientArray, 1, soundEntry, sample, entity, channel, level, seed, flags, newVolume, pitch); - } - return Plugin_Handled; -} \ No newline at end of file -- cgit v1.2.3