Add scale & color parameters to terrain particles

This commit is contained in:
Sally Coolatta 2021-12-18 18:30:19 -05:00
parent 2a9f2214cb
commit edef941a08
2 changed files with 20 additions and 0 deletions

View file

@ -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);
}
}
/*--------------------------------------------------

View file

@ -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