From c5cae84d6cf86421d358778403df57e1e36effeb Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Thu, 7 Feb 2002 22:48:12 +0000 Subject: Buildable sounds --- src/cgame/cg_local.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/cgame/cg_local.h') diff --git a/src/cgame/cg_local.h b/src/cgame/cg_local.h index e497fc83..e1aed132 100644 --- a/src/cgame/cg_local.h +++ b/src/cgame/cg_local.h @@ -429,7 +429,19 @@ typedef struct { typedef struct { - qhandle_t models[MAX_ITEM_MODELS]; + qboolean looped; + qboolean enabled; + + sfxHandle_t sound; +} sound_t; + +typedef struct +{ + qhandle_t models[ MAX_ITEM_MODELS ]; + animation_t animations[ MAX_BUILDABLE_ANIMATIONS ]; + + //same number of sounds as animations + sound_t sounds[ MAX_BUILDABLE_ANIMATIONS ]; } buildableInfo_t; typedef struct { -- cgit