mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-03 14:42:53 +00:00
Prevent bots from killing bubbles
Self-explanatory. They can still breathe them in, they just no longer get popped
This commit is contained in:
parent
8b53295a74
commit
5cc8734da7
1 changed files with 6 additions and 2 deletions
|
|
@ -1593,7 +1593,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
||||||
return; // Only go in the mouth
|
return; // Only go in the mouth
|
||||||
|
|
||||||
// Eaten by player!
|
// Eaten by player!
|
||||||
if (player->powers[pw_underwater] && player->powers[pw_underwater] <= 12*TICRATE + 1)
|
if ((!player->bot) && (player->powers[pw_underwater] && player->powers[pw_underwater] <= 12*TICRATE + 1))
|
||||||
P_RestoreMusic(player);
|
P_RestoreMusic(player);
|
||||||
|
|
||||||
if (player->powers[pw_underwater] < underwatertics + 1)
|
if (player->powers[pw_underwater] < underwatertics + 1)
|
||||||
|
|
@ -1606,7 +1606,11 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
||||||
}
|
}
|
||||||
|
|
||||||
toucher->momx = toucher->momy = toucher->momz = 0;
|
toucher->momx = toucher->momy = toucher->momz = 0;
|
||||||
break;
|
|
||||||
|
if (player->bot)
|
||||||
|
return;
|
||||||
|
else
|
||||||
|
break;
|
||||||
|
|
||||||
case MT_WATERDROP:
|
case MT_WATERDROP:
|
||||||
if (special->state == &states[special->info->spawnstate])
|
if (special->state == &states[special->info->spawnstate])
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue