mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Add scale & color parameters to terrain particles
This commit is contained in:
parent
2a9f2214cb
commit
edef941a08
2 changed files with 20 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/*--------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue