mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Permit players to not bounce when colliding with ML_NOTBOUNCY walls (imperfect but better than the LITERALLY NO SUPPORT that was there beforehand)
This commit is contained in:
parent
4b1cef0f20
commit
93e4ef0ef1
1 changed files with 9 additions and 0 deletions
|
|
@ -3823,10 +3823,19 @@ void P_BouncePlayerMove(mobj_t *mo)
|
|||
|
||||
if (P_IsLineTripWire(bestslideline))
|
||||
{
|
||||
// TRIPWIRE CANNOT BE MADE NONBOUNCY
|
||||
K_ApplyTripWire(mo->player, TRIP_BLOCKED);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Some walls aren't bouncy even if you are
|
||||
if (bestslideline && (bestslideline->flags & ML_NOTBOUNCY))
|
||||
{
|
||||
// SRB2Kart: Non-bouncy line!
|
||||
P_SlideMove(mo);
|
||||
return;
|
||||
}
|
||||
|
||||
K_SpawnBumpEffect(mo);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue