Skip to content

Commit

Permalink
CATCH: Bots change to a diffrenet weapon after picking up the Killder…
Browse files Browse the repository at this point in the history
…Duck in Catch #285
  • Loading branch information
mgerhardy committed Oct 30, 2024
1 parent b9baee2 commit c0630e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/game/ai_dmq3.c
Original file line number Diff line number Diff line change
Expand Up @@ -1454,6 +1454,10 @@ void BotChooseWeapon(bot_state_t *bs) {
}
}

if (BG_IsKillerDuck(&bs->cur_ps)) {
newweaponnum = WP_KILLERDUCKS;
}

if (g_modInstagib.integer && (newweaponnum != WP_SPRAYPISTOL)) {
newweaponnum = Instagib_getSpawnWeapon();
bs->weaponnum = newweaponnum;
Expand Down

0 comments on commit c0630e1

Please sign in to comment.