comment it out tho since we use a lua with the same visual effect

This commit is contained in:
Alug committed 2024-10-25 01:47:59 +02:00
1 parent b5c284f526
commit 5100443457
2 files changed
+12 -10

No files matched your search

+4 -3
View File
@@ -5989,7 +5989,7 @@ static inline angle_t K_MomentumAngle(const mobj_t *mo, const fixed_t threshold)
}
// Returns kart speed from a stat. Boost power and scale are NOT taken into account, no player or object is necessary.
static fixed_t K_GetKartSpeedFromStat(UINT8 kartspeed)
/*static fixed_t K_GetKartSpeedFromStat(UINT8 kartspeed)
{
const fixed_t xspd = (3*FRACUNIT)/64;
fixed_t g_cc = (((13 + (3*gamespeed)) << FRACBITS) / 16) + xspd;
@@ -6000,7 +6000,7 @@ static fixed_t K_GetKartSpeedFromStat(UINT8 kartspeed)
finalspeed = FixedMul(k_speed<<14, g_cc);
return finalspeed;
}
}*/
void K_SpawnWaterRunParticles(mobj_t *mobj)
{
@@ -6038,7 +6038,8 @@ void K_SpawnWaterRunParticles(mobj_t *mobj)
}
else
{
topSpeed = FixedMul(mobj->scale, K_GetKartSpeedFromStat(5));
//topSpeed = FixedMul(mobj->scale, K_GetKartSpeedFromStat(5));
return;
}
curSpeed = P_AproxDistance(mobj->momx, mobj->momy);
+8 -7
View File
@@ -2843,7 +2843,7 @@ static boolean P_SceneryZMovement(mobj_t *mo)
return true;
}
static void P_MobjCheckWaterVisual(mobj_t *mobj)
/*static void P_MobjCheckWaterVisual(mobj_t *mobj)
{
fixed_t thingtop = mobj->z + mobj->height; // especially for players, infotable height does not neccessarily match actual height
sector_t *sector = mobj->subsector->sector;
@@ -2908,7 +2908,7 @@ static void P_MobjCheckWaterVisual(mobj_t *mobj)
}
K_SpawnWaterRunParticles(mobj);
}
}*/
//
// P_MobjCheckWater
@@ -2998,7 +2998,8 @@ void P_MobjCheckWater(mobj_t *mobj)
p->powers[pw_underwater] = 0;
}
K_SpawnWaterRunParticles(mobj);
if (p)
K_SpawnWaterRunParticles(mobj);
// The rest of this code only executes on a water state change.
if (waterwasnotset || !!(mobj->eflags & MFE_UNDERWATER) == wasinwater)
@@ -7733,7 +7734,7 @@ void P_MobjThinker(mobj_t *mobj)
S_StartSound(mobj, mobj->info->activesound);
}
P_MobjCheckWaterVisual(mobj);
//P_MobjCheckWaterVisual(mobj);
break;
}
case MT_JAWZ:
@@ -7794,7 +7795,7 @@ void P_MobjThinker(mobj_t *mobj)
&& GETSECSPECIAL(mobj->subsector->sector->special, 3) == 1))
K_DoPogoSpring(mobj, 0, 1);
P_MobjCheckWaterVisual(mobj);
//P_MobjCheckWaterVisual(mobj);
break;
}
case MT_JAWZ_DUD:
@@ -7836,7 +7837,7 @@ void P_MobjThinker(mobj_t *mobj)
break;
}
case MT_BANANA:
P_MobjCheckWaterVisual(mobj);
//P_MobjCheckWaterVisual(mobj);
case MT_EGGMANITEM:
mobj->friction = ORIG_FRICTION/4;
if (mobj->momx || mobj->momy)
@@ -7860,7 +7861,7 @@ void P_MobjThinker(mobj_t *mobj)
P_SpawnGhostMobj(mobj)->fuse = 3;
if (mobj->threshold > 0)
mobj->threshold--;
P_MobjCheckWaterVisual(mobj);
//P_MobjCheckWaterVisual(mobj);
break;
case MT_SINK:
if (mobj->momx || mobj->momy)