mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 09:11:17 +00:00
Do not allow DMG_FORCED to bypass ultimate degreeslessness/buddha for players.
This commit is contained in:
parent
10ef430bae
commit
2583da9680
1 changed files with 5 additions and 0 deletions
|
@ -1242,6 +1242,11 @@ int P_DamageMobj (AActor *target, AActor *inflictor, AActor *source, int damage,
|
|||
//
|
||||
if (player)
|
||||
{
|
||||
// Don't allow DMG_FORCED to work on ultimate degreeslessness/buddha and nodamage.
|
||||
if ((player->cheats & (CF_GODMODE2 | CF_BUDDHA2)) || (player->mo->flags5 & MF5_NODAMAGE))
|
||||
{
|
||||
flags &= ~DMG_FORCED;
|
||||
}
|
||||
//Added by MC: Lets bots look allround for enemies if they survive an ambush.
|
||||
if (player->Bot != NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue