diff options
author | IronClawTrem <louie.nutman@gmail.com> | 2020-04-25 19:52:41 +0100 |
---|---|---|
committer | IronClawTrem <louie.nutman@gmail.com> | 2020-04-25 19:52:41 +0100 |
commit | 20eb8a33e9eb5ad412ae0fd0dac901846cc8059f (patch) | |
tree | 5523d47833da0f35060275e423842b00d76e6574 /src/cgame | |
parent | 2fac8671a2b5919971016bea3382f16f4a76fd2b (diff) |
-smegmaez-not-too-hard-at-all
Diffstat (limited to 'src/cgame')
-rw-r--r-- | src/cgame/cg_event.c | 5 | ||||
-rw-r--r-- | src/cgame/cg_local.h | 2 | ||||
-rw-r--r-- | src/cgame/cg_main.c | 2 |
3 files changed, 9 insertions, 0 deletions
diff --git a/src/cgame/cg_event.c b/src/cgame/cg_event.c index 07bcea9..550005d 100644 --- a/src/cgame/cg_event.c +++ b/src/cgame/cg_event.c @@ -970,6 +970,11 @@ void CG_EntityEvent( centity_t *cent, vec3_t position ) cg.spawnTime = cg.time; break; + case EV_SMEGMA_DIE: + DEBUGNAME( "EV_SMEGMA_DIE" ); + trap_S_StartSound( NULL, es->number, CHAN_AUTO, cgs.media.smegmaDie ); + break; + default: DEBUGNAME( "UNKNOWN" ); CG_Error( "Unknown event: %i", event ); diff --git a/src/cgame/cg_local.h b/src/cgame/cg_local.h index a1ff0a6..a7dd0e7 100644 --- a/src/cgame/cg_local.h +++ b/src/cgame/cg_local.h @@ -1278,6 +1278,8 @@ typedef struct qhandle_t buildWeaponTimerPie[ 8 ]; qhandle_t upgradeClassIconShader; + + sfxHandle_t smegmaDie; } cgMedia_t; typedef struct diff --git a/src/cgame/cg_main.c b/src/cgame/cg_main.c index ce32b0e..f1f66d8 100644 --- a/src/cgame/cg_main.c +++ b/src/cgame/cg_main.c @@ -958,6 +958,8 @@ static void CG_RegisterSounds( void ) cgs.media.buildableRepairedSound = trap_S_RegisterSound( "sound/buildables/human/repaired.wav", qfalse ); cgs.media.lCannonWarningSound = trap_S_RegisterSound( "models/weapons/lcannon/warning.wav", qfalse ); + + cgs.media.smegmaDie = trap_S_RegisterSound( "sound/buildables/human/explosion.wav", qfalse ); } |