mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Properly put in the parameters
This commit is contained in:
parent
da459a9c73
commit
9bae31fd03
1 changed files with 40 additions and 0 deletions
|
|
@ -824,6 +824,26 @@ static void K_ParseSplashParameter(size_t i, char *param, char *val)
|
|||
{
|
||||
splash->color = get_number(val);
|
||||
}
|
||||
else if (stricmp(param, "pushH") == 0)
|
||||
{
|
||||
splash->pushH = FLOAT_TO_FIXED(atof(val));
|
||||
}
|
||||
else if (stricmp(param, "pushV") == 0)
|
||||
{
|
||||
splash->pushV = FLOAT_TO_FIXED(atof(val));
|
||||
}
|
||||
else if (stricmp(param, "spread") == 0)
|
||||
{
|
||||
splash->spread = FLOAT_TO_FIXED(atof(val));
|
||||
}
|
||||
else if (stricmp(param, "cone") == 0)
|
||||
{
|
||||
splash->cone = AngleFixed(FLOAT_TO_FIXED(atof(val))); // lol
|
||||
}
|
||||
else if (stricmp(param, "numParticles") == 0)
|
||||
{
|
||||
splash->numParticles = (UINT8)atoi(val);
|
||||
}
|
||||
}
|
||||
|
||||
/*--------------------------------------------------
|
||||
|
|
@ -904,6 +924,26 @@ static void K_ParseFootstepParameter(size_t i, char *param, char *val)
|
|||
{
|
||||
footstep->color = get_number(val);
|
||||
}
|
||||
else if (stricmp(param, "pushH") == 0)
|
||||
{
|
||||
footstep->pushH = FLOAT_TO_FIXED(atof(val));
|
||||
}
|
||||
else if (stricmp(param, "pushV") == 0)
|
||||
{
|
||||
footstep->pushV = FLOAT_TO_FIXED(atof(val));
|
||||
}
|
||||
else if (stricmp(param, "spread") == 0)
|
||||
{
|
||||
footstep->spread = FLOAT_TO_FIXED(atof(val));
|
||||
}
|
||||
else if (stricmp(param, "cone") == 0)
|
||||
{
|
||||
footstep->cone = AngleFixed(FLOAT_TO_FIXED(atof(val))); // lol
|
||||
}
|
||||
else if (stricmp(param, "sfxFreq") == 0)
|
||||
{
|
||||
footstep->sfxFreq = (tic_t)atoi(val);
|
||||
}
|
||||
}
|
||||
|
||||
/*--------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue