mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Make offroad dust solid, resolving #150.
This commit is contained in:
parent
c5d842d05e
commit
c11ad8c297
3 changed files with 5 additions and 8 deletions
|
|
@ -3777,7 +3777,7 @@ void K_SpawnSparkleTrail(mobj_t *mo)
|
|||
P_SetMobjState(sparkle, S_KARTINVULN_LARGE1);
|
||||
}
|
||||
|
||||
void K_SpawnWipeoutTrail(mobj_t *mo, boolean translucent)
|
||||
void K_SpawnWipeoutTrail(mobj_t *mo, boolean offroad)
|
||||
{
|
||||
mobj_t *dust;
|
||||
angle_t aoff;
|
||||
|
|
@ -3805,15 +3805,12 @@ void K_SpawnWipeoutTrail(mobj_t *mo, boolean translucent)
|
|||
P_SetScale(dust, mo->scale);
|
||||
K_FlipFromObject(dust, mo);
|
||||
|
||||
if (translucent) // offroad effect
|
||||
if (offroad) // offroad effect
|
||||
{
|
||||
dust->momx = mo->momx/2;
|
||||
dust->momy = mo->momy/2;
|
||||
dust->momz = mo->momz/2;
|
||||
}
|
||||
|
||||
if (translucent)
|
||||
dust->renderflags |= RF_GHOSTLY;
|
||||
}
|
||||
|
||||
void K_SpawnDraftDust(mobj_t *mo)
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ void K_RunFinishLineBeam(void);
|
|||
UINT16 K_DriftSparkColor(player_t *player, INT32 charge);
|
||||
void K_SpawnBoostTrail(player_t *player);
|
||||
void K_SpawnSparkleTrail(mobj_t *mo);
|
||||
void K_SpawnWipeoutTrail(mobj_t *mo, boolean translucent);
|
||||
void K_SpawnWipeoutTrail(mobj_t *mo, boolean offroad);
|
||||
void K_SpawnDraftDust(mobj_t *mo);
|
||||
void K_DriftDustHandling(mobj_t *spawner);
|
||||
void K_PuntMine(mobj_t *mine, mobj_t *punter);
|
||||
|
|
|
|||
|
|
@ -3580,11 +3580,11 @@ static int lib_kSpawnSparkleTrail(lua_State *L)
|
|||
static int lib_kSpawnWipeoutTrail(lua_State *L)
|
||||
{
|
||||
mobj_t *mo = *((mobj_t **)luaL_checkudata(L, 1, META_MOBJ));
|
||||
boolean translucent = lua_optboolean(L, 2);
|
||||
boolean offroad = lua_optboolean(L, 2);
|
||||
NOHUD
|
||||
if (!mo)
|
||||
return LUA_ErrInvalid(L, "mobj_t");
|
||||
K_SpawnWipeoutTrail(mo, translucent);
|
||||
K_SpawnWipeoutTrail(mo, offroad);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue