From 54be70da80c68ed01782a88ec1d8043e779ff37d Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Wed, 7 Apr 2021 12:57:23 +0200 Subject: [PATCH] fx_spark: make it use our sound shader definitions --- base/src/shared/fx_spark.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base/src/shared/fx_spark.qc b/base/src/shared/fx_spark.qc index 3e9a2735..69c5d129 100644 --- a/base/src/shared/fx_spark.qc +++ b/base/src/shared/fx_spark.qc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2020 Marco Hladik + * Copyright (c) 2016-2021 Marco Hladik * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -20,6 +20,7 @@ var float PARTICLE_SPARK; void FX_Spark_Init(void) { + Sound_Precache("env_spark.sfx"); PARTICLE_SPARK = particleeffectnum("fx_spark.effect"); } #endif @@ -40,5 +41,6 @@ FX_Spark(vector pos, vector ang) multicast(pos, MULTICAST_PVS); #else pointparticles(PARTICLE_SPARK, pos, ang, 1); + Sound_PlayAt(pos, "env_spark.sfx"); #endif }