mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-31 20:22:40 +00:00
Do not let player use items while in turbines or ice cubes
This commit is contained in:
parent
29d6169bf5
commit
377ec280f8
1 changed files with 6 additions and 0 deletions
|
|
@ -15710,6 +15710,12 @@ void K_MakeObjectReappear(mobj_t *mo)
|
|||
|
||||
boolean K_PlayerCanUseItem(player_t *player)
|
||||
{
|
||||
if (player->icecube.frozen)
|
||||
return false;
|
||||
|
||||
if (player->turbine && (player->mo->flags & MF_NOCLIP))
|
||||
return false;
|
||||
|
||||
return (player->mo->health > 0 && !player->spectator && !P_PlayerInPain(player) && !mapreset && leveltime > introtime);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue