From b428d5ed815200b41b80f15f1b60c7242bbb18c0 Mon Sep 17 00:00:00 2001 From: Xylemon Date: Mon, 17 Apr 2023 02:32:29 -0700 Subject: [PATCH] Added the rest of the ambient sound ents from Quake, apparently Valve also left into ambient_suck_wind by mistake... --- src/server/ambient_comp_hum.qc | 47 +++++++++++++++++++++++++++++ src/server/ambient_drone.qc | 47 +++++++++++++++++++++++++++++ src/server/ambient_flouro_buzz.qc | 47 +++++++++++++++++++++++++++++ src/server/ambient_light_buzz.qc | 47 +++++++++++++++++++++++++++++ src/server/ambient_suck_wind.qc | 49 +++++++++++++++++++++++++++++++ src/server/ambient_swamp1.qc | 47 +++++++++++++++++++++++++++++ src/server/ambient_swamp2.qc | 47 +++++++++++++++++++++++++++++ src/server/ambient_thunder.qc | 47 +++++++++++++++++++++++++++++ src/server/progs.src | 8 +++++ 9 files changed, 386 insertions(+) create mode 100644 src/server/ambient_comp_hum.qc create mode 100644 src/server/ambient_drone.qc create mode 100644 src/server/ambient_flouro_buzz.qc create mode 100644 src/server/ambient_light_buzz.qc create mode 100644 src/server/ambient_suck_wind.qc create mode 100644 src/server/ambient_swamp1.qc create mode 100644 src/server/ambient_swamp2.qc create mode 100644 src/server/ambient_thunder.qc diff --git a/src/server/ambient_comp_hum.qc b/src/server/ambient_comp_hum.qc new file mode 100644 index 0000000..404b075 --- /dev/null +++ b/src/server/ambient_comp_hum.qc @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2023 Marco Cawthorne + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER + * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING + * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +/*!QUAKED ambient_comp_hum (0.3 0.1 0.6) (-10 -10 -8) (10 10 8) +# OVERVIEW +An ambient sound that makes a computer noise. + +# TRIVIA +This entity was introduced in Quake (1996). +*/ +class +ambient_comp_hum:ambient_generic +{ +public: + void ambient_comp_hum(void); + + /* overrides */ + virtual void Spawned(void); +}; + +void +ambient_comp_hum::ambient_comp_hum(void) +{ +} + +void +ambient_comp_hum::Spawned(void) +{ + m_strSpawnPath = "ambience/computalk1.wav"; + m_flSpawnVolume = 0.5f; + m_flSpawnPitch = 100.0f; + spawnflags |= AS_MRADIUS; + super::Spawned(); +} \ No newline at end of file diff --git a/src/server/ambient_drone.qc b/src/server/ambient_drone.qc new file mode 100644 index 0000000..eff883d --- /dev/null +++ b/src/server/ambient_drone.qc @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2023 Marco Cawthorne + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER + * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING + * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +/*!QUAKED ambient_drone (0.3 0.1 0.6) (-10 -10 -8) (10 10 8) +# OVERVIEW +An ambient sound that makes a droning noise. + +# TRIVIA +This entity was introduced in Quake (1996). +*/ +class +ambient_drone:ambient_generic +{ +public: + void ambient_drone(void); + + /* overrides */ + virtual void Spawned(void); +}; + +void +ambient_drone::ambient_drone(void) +{ +} + +void +ambient_drone::Spawned(void) +{ + m_strSpawnPath = "ambience/alien_powernode.wav"; + m_flSpawnVolume = 0.5f; + m_flSpawnPitch = 100.0f; + spawnflags |= AS_MRADIUS; + super::Spawned(); +} \ No newline at end of file diff --git a/src/server/ambient_flouro_buzz.qc b/src/server/ambient_flouro_buzz.qc new file mode 100644 index 0000000..23ced0d --- /dev/null +++ b/src/server/ambient_flouro_buzz.qc @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2023 Marco Cawthorne + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER + * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING + * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +/*!QUAKED ambient_flouro_buzz (0.3 0.1 0.6) (-10 -10 -8) (10 10 8) +# OVERVIEW +An ambient sound that makes a broken fluorescent light noise. + +# TRIVIA +This entity was introduced in Quake (1996). +*/ +class +ambient_flouro_buzz:ambient_generic +{ +public: + void ambient_flouro_buzz(void); + + /* overrides */ + virtual void Spawned(void); +}; + +void +ambient_flouro_buzz::ambient_flouro_buzz(void) +{ +} + +void +ambient_flouro_buzz::Spawned(void) +{ + m_strSpawnPath = "ambience/sparks.wav"; + m_flSpawnVolume = 0.5f; + m_flSpawnPitch = 100.0f; + spawnflags |= AS_MRADIUS; + super::Spawned(); +} \ No newline at end of file diff --git a/src/server/ambient_light_buzz.qc b/src/server/ambient_light_buzz.qc new file mode 100644 index 0000000..283140c --- /dev/null +++ b/src/server/ambient_light_buzz.qc @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2023 Marco Cawthorne + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER + * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING + * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +/*!QUAKED ambient_light_buzz (0.3 0.1 0.6) (-10 -10 -8) (10 10 8) +# OVERVIEW +An ambient sound that makes a fluorescent light noise. + +# TRIVIA +This entity was introduced in Quake (1996). +*/ +class +ambient_light_buzz:ambient_generic +{ +public: + void ambient_light_buzz(void); + + /* overrides */ + virtual void Spawned(void); +}; + +void +ambient_light_buzz::ambient_light_buzz(void) +{ +} + +void +ambient_light_buzz::Spawned(void) +{ + m_strSpawnPath = "ambience/signalgear1.wav"; + m_flSpawnVolume = 0.5f; + m_flSpawnPitch = 100.0f; + spawnflags |= AS_MRADIUS; + super::Spawned(); +} \ No newline at end of file diff --git a/src/server/ambient_suck_wind.qc b/src/server/ambient_suck_wind.qc new file mode 100644 index 0000000..0c4f760 --- /dev/null +++ b/src/server/ambient_suck_wind.qc @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2023 Marco Cawthorne + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER + * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING + * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +/*!QUAKED ambient_suck_wind (0.3 0.1 0.6) (-10 -10 -8) (10 10 8) +# OVERVIEW +An ambient sound that makes a wind noise. + +# TRIVIA +This entity was introduced in Quake (1996). + +It's only used once in Deathmatch Classic. +*/ +class +ambient_suck_wind:ambient_generic +{ +public: + void ambient_suck_wind(void); + + /* overrides */ + virtual void Spawned(void); +}; + +void +ambient_suck_wind::ambient_suck_wind(void) +{ +} + +void +ambient_suck_wind::Spawned(void) +{ + m_strSpawnPath = "ambience/wind1.wav"; + m_flSpawnVolume = 0.5f; + m_flSpawnPitch = 100.0f; + spawnflags |= AS_MRADIUS; + super::Spawned(); +} \ No newline at end of file diff --git a/src/server/ambient_swamp1.qc b/src/server/ambient_swamp1.qc new file mode 100644 index 0000000..47d2d52 --- /dev/null +++ b/src/server/ambient_swamp1.qc @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2023 Marco Cawthorne + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER + * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING + * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +/*!QUAKED ambient_swamp1 (0.3 0.1 0.6) (-10 -10 -8) (10 10 8) +# OVERVIEW +An ambient sound that makes a swampish noise. + +# TRIVIA +This entity was introduced in Quake (1996). +*/ +class +ambient_swamp1:ambient_generic +{ +public: + void ambient_swamp1(void); + + /* overrides */ + virtual void Spawned(void); +}; + +void +ambient_swamp1::ambient_swamp1(void) +{ +} + +void +ambient_swamp1::Spawned(void) +{ + m_strSpawnPath = "ambience/cricket.wav"; + m_flSpawnVolume = 0.5f; + m_flSpawnPitch = 100.0f; + spawnflags |= AS_MRADIUS; + super::Spawned(); +} \ No newline at end of file diff --git a/src/server/ambient_swamp2.qc b/src/server/ambient_swamp2.qc new file mode 100644 index 0000000..dfb14d5 --- /dev/null +++ b/src/server/ambient_swamp2.qc @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2023 Marco Cawthorne + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER + * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING + * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +/*!QUAKED ambient_swamp2 (0.3 0.1 0.6) (-10 -10 -8) (10 10 8) +# OVERVIEW +An ambient sound that makes a swampish noise. + +# TRIVIA +This entity was introduced in Quake (1996). +*/ +class +ambient_swamp2:ambient_generic +{ +public: + void ambient_swamp2(void); + + /* overrides */ + virtual void Spawned(void); +}; + +void +ambient_swamp2::ambient_swamp2(void) +{ +} + +void +ambient_swamp2::Spawned(void) +{ + m_strSpawnPath = "ambience/crickets.wav"; + m_flSpawnVolume = 0.5f; + m_flSpawnPitch = 100.0f; + spawnflags |= AS_MRADIUS; + super::Spawned(); +} \ No newline at end of file diff --git a/src/server/ambient_thunder.qc b/src/server/ambient_thunder.qc new file mode 100644 index 0000000..9ea0407 --- /dev/null +++ b/src/server/ambient_thunder.qc @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2023 Marco Cawthorne + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER + * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING + * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +/*!QUAKED ambient_thunder (0.3 0.1 0.6) (-10 -10 -8) (10 10 8) +# OVERVIEW +An ambient sound that makes a thunder noise. + +# TRIVIA +This entity was introduced in Quake (1996). +*/ +class +ambient_thunder:ambient_generic +{ +public: + void ambient_thunder(void); + + /* overrides */ + virtual void Spawned(void); +}; + +void +ambient_thunder::ambient_thunder(void) +{ +} + +void +ambient_thunder::Spawned(void) +{ + m_strSpawnPath = "ambience/the_horror2.wav"; + m_flSpawnVolume = 0.5f; + m_flSpawnPitch = 100.0f; + spawnflags |= AS_MRADIUS; + super::Spawned(); +} \ No newline at end of file diff --git a/src/server/progs.src b/src/server/progs.src index 615b8e3..5d4a648 100644 --- a/src/server/progs.src +++ b/src/server/progs.src @@ -72,7 +72,15 @@ item_armor.qc item_health.qc item_artifact.qc +ambient_comp_hum.qc ambient_drip.qc +ambient_drone.qc +ambient_flouro_buzz.qc +ambient_light_buzz.qc +ambient_suck_wind.qc +ambient_swamp1.qc +ambient_swamp2.qc +ambient_thunder.qc ../../../src/botlib/include.src