mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Only let items and player hit special UFO
This commit is contained in:
parent
7744a2823e
commit
d1739feda9
1 changed files with 13 additions and 0 deletions
|
|
@ -834,6 +834,14 @@ static UINT8 GetUFODamage(mobj_t *inflictor, UINT8 damageType)
|
||||||
ret = 10;
|
ret = 10;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case MT_GARDENTOP:
|
||||||
|
{
|
||||||
|
// Garden Top is not classified as a "field
|
||||||
|
// item" because the player can ride it. So
|
||||||
|
// an explicit case is necessary.
|
||||||
|
ret = 10;
|
||||||
|
break;
|
||||||
|
}
|
||||||
case MT_PLAYER:
|
case MT_PLAYER:
|
||||||
{
|
{
|
||||||
// Players deal damage relative to how many sneakers they used.
|
// Players deal damage relative to how many sneakers they used.
|
||||||
|
|
@ -849,6 +857,11 @@ static UINT8 GetUFODamage(mobj_t *inflictor, UINT8 damageType)
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
|
// General hazards cannot damage the UFO
|
||||||
|
if (P_IsKartFieldItem(inflictor->type) == false)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue