From f50019918162c6e28bf164f73c6d7634726cd8e4 Mon Sep 17 00:00:00 2001 From: striga Date: Mon, 8 Jan 2024 17:58:19 -0300 Subject: [PATCH] Fix for ambient_general via fgd to restore ambient sounds (#63) --- source/maps/fgd/hl-nzp.fgd | 16 +++++++++++++--- source/maps/fgd/tb-nzp.fgd | 16 +++++++++++++--- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/source/maps/fgd/hl-nzp.fgd b/source/maps/fgd/hl-nzp.fgd index d2631e9..4ce1e4f 100644 --- a/source/maps/fgd/hl-nzp.fgd +++ b/source/maps/fgd/hl-nzp.fgd @@ -1364,10 +1364,20 @@ ] ] -@PointClass = ambient_general : "Universal Ambient Sound" -[ +@PointClass base(Targetname, Soundplaying) = ambient_generic : "Universal Ambient Sound" +[ + spawnflags(flags) = + [ + 0: "Medium radius" + 1: "Everywhere" + 2: "Small (Idle)" + 4: "Medium (static)" + 8: "Large (normal)" + 16: "Start Silent" + 32: "Not looping" + ] volume(integer) : "Volume" : 1 - noise(string) : "Ambient Sound" + message(string) : "Ambient Sound" ] @PointClass base(Targetname, Soundplaying) = ambient_bgm : "Back Ground Music" diff --git a/source/maps/fgd/tb-nzp.fgd b/source/maps/fgd/tb-nzp.fgd index 42a3e04..61fc6ba 100644 --- a/source/maps/fgd/tb-nzp.fgd +++ b/source/maps/fgd/tb-nzp.fgd @@ -1364,10 +1364,20 @@ ] ] -@PointClass = ambient_general : "Universal Ambient Sound" -[ +@PointClass base(Targetname, Soundplaying) = ambient_generic : "Universal Ambient Sound" +[ + spawnflags(flags) = + [ + 0: "Medium radius" + 1: "Everywhere" + 2: "Small (Idle)" + 4: "Medium (static)" + 8: "Large (normal)" + 16: "Start Silent" + 32: "Not looping" + ] volume(integer) : "Volume" : 1 - noise(string) : "Ambient Sound" + message(string) : "Ambient Sound" ] @PointClass base(Targetname, Soundplaying) = ambient_bgm : "Back Ground Music"