Anti item farming: edge case fixups

This commit is contained in:
AJ Martinez 2023-09-12 16:18:50 -07:00
parent c1ab333b27
commit e71e194ddf
2 changed files with 5 additions and 2 deletions

View file

@ -8245,7 +8245,7 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
player->incontrol = min(player->incontrol, 5*TICRATE);
player->incontrol = max(player->incontrol, -5*TICRATE);
if (P_PlayerInPain(player))
if (P_PlayerInPain(player) || player->respawn.state != RESPAWNST_NONE)
player->lastpickuptype = -1; // got your ass beat, go grab anything
if (player->tumbleBounces > 0)

View file

@ -439,7 +439,10 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
break;
}
P_UpdateLastPickup(player, 3);
// Ring Capsules shouldn't affect pickup cheese, they're just used as condensed ground-ring placements.
if (special->threshold != KITEM_SUPERRING)
P_UpdateLastPickup(player, 3);
S_StartSound(toucher, special->info->deathsound);
P_KillMobj(special, toucher, toucher, DMG_NORMAL);
return;