diff --git a/src/k_terrain.c b/src/k_terrain.c index 9cfd399d0..c2022d1b9 100644 --- a/src/k_terrain.c +++ b/src/k_terrain.c @@ -596,6 +596,14 @@ static void K_ParseSplashParameter(size_t i, char *param, char *val) { splash->sfx = get_sfx(val); } + else if (stricmp(param, "scale") == 0) + { + splash->scale = FLOAT_TO_FIXED(atof(val)); + } + else if (stricmp(param, "color") == 0) + { + splash->color = get_skincolor(val); + } } /*-------------------------------------------------- @@ -659,6 +667,14 @@ static void K_ParseFootstepParameter(size_t i, char *param, char *val) { footstep->sfx = get_sfx(val); } + else if (stricmp(param, "scale") == 0) + { + footstep->scale = FLOAT_TO_FIXED(atof(val)); + } + else if (stricmp(param, "color") == 0) + { + footstep->color = get_skincolor(val); + } } /*-------------------------------------------------- diff --git a/src/k_terrain.h b/src/k_terrain.h index e53a72358..d494f5edf 100644 --- a/src/k_terrain.h +++ b/src/k_terrain.h @@ -31,6 +31,8 @@ typedef struct t_splash_s UINT16 mobjType; // Thing type. MT_NULL to not spawn anything. UINT16 sfx; // Sound to play. + fixed_t scale; // Thing scale multiplier. + UINT16 color; // Colorize effect. SKINCOLOR_NONE has no colorize. } t_splash_t; typedef struct t_footstep_s @@ -42,6 +44,8 @@ typedef struct t_footstep_s UINT16 mobjType; // Thing type. MT_NULL to not spawn anything. UINT16 sfx; // Sound to play. + fixed_t scale; // Thing scale multiplier. + UINT16 color; // Colorize effect. SKINCOLOR_NONE has no colorize. } t_footstep_t; typedef enum