(Nitpick)GameManage.MakeEnemiesHostile() seems excessive

Discuss coding questions, pull requests, and implementation details.
Post Reply
User avatar
DunnyOfPenwick
Posts: 275
Joined: Wed Apr 14, 2021 1:58 am
Location: Southeast US

(Nitpick)GameManage.MakeEnemiesHostile() seems excessive

Post by DunnyOfPenwick »

GameManager.MakeEnemiesHostile() makes all enemy entities in the scene hostile.

It makes sense in some circumstances like bashing a door in a castle, but failing to pick the pocket of a pacified mage shouldn't make a pacified orc on the other side of a dungeon hostile to the player.
In that case, it seems it should be limited to the immediate area (25 meters or so, hearing range) and to members of the same team (except maybe player allies).

User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

Re: (Nitpick)GameManage.MakeEnemiesHostile() seems excessive

Post by Interkarma »

This is designed to work as per classic. MakeEnemiesHostile() is doing exactly what it's supposed to.

Changing this is more of a design question than a support issue. At this stage, I'm unlikely to make any changes to this.

I'll move this to developer discussion as it doesn't involve installing or playing DFU.

Post Reply