mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fix node cover mask
This commit is contained in:
parent
dcd9ce91a8
commit
5ec106642d
2 changed files with 5 additions and 12 deletions
|
@ -2328,7 +2328,7 @@ void PathSearch::PlayerCover(Player *pPlayer)
|
|||
for (i = 0; i < nodecount; i++) {
|
||||
node = pathnodes[i];
|
||||
|
||||
if (!node || !(node->nodeflags & AI_COVERFLAGS)) {
|
||||
if (!node || !(node->nodeflags & AI_MOVE_MASK)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -141,17 +141,10 @@ typedef enum {
|
|||
// Added in 2.0
|
||||
#define AI_LOW_WALL_ARC 256
|
||||
|
||||
#define AI_COVERFLAGS \
|
||||
(AI_CRATE | AI_SNIPER | AI_CORNER_RIGHT | AI_CORNER_LEFT | AI_CONCEALMENT | AI_COVER | AI_LOW_WALL_ARC)
|
||||
#define AI_COVERFLAGS2 (AI_SNIPER | AI_CORNER_RIGHT | AI_CORNER_LEFT | AI_CONCEALMENT)
|
||||
#define AI_COVERFLAGS3 (AI_SNIPER | AI_CORNER_RIGHT | AI_CORNER_LEFT | AI_CONCEALMENT | AI_DUCK | AI_CONCEALMENT)
|
||||
#define AI_SNIPERFLAGS (AI_SNIPER | AI_CORNER_RIGHT | AI_CORNER_LEFT | AI_COVER)
|
||||
#define AI_CRATEFLAGS (AI_CRATE | AI_CORNER_LEFT | AI_CORNER_RIGHT | AI_CONCEALMENT | AI_COVER | AI_DUCK)
|
||||
#define AI_COVER_LEFT_FLAGS (AI_CRATE | AI_SNIPER | AI_CORNER_LEFT | AI_CONCEALMENT | AI_DUCK)
|
||||
#define AI_COVER_RIGHT_FLAGS (AI_CRATE | AI_SNIPER | AI_CORNER_RIGHT | AI_CONCEALMENT | AI_DUCK)
|
||||
#define AI_COVER_MASK (AI_CRATE | AI_CORNER_RIGHT | AI_CORNER_LEFT | AI_CONCEALMENT | AI_COVER)
|
||||
#define AI_CONCEALMENT_MASK (AI_CORNER_LEFT | AI_CORNER_RIGHT | AI_CRATE | AI_LOW_WALL_ARC)
|
||||
#define AI_ALL (AI_DUCK | AI_COVER | AI_CONCEALMENT | AI_CORNER_LEFT | AI_CORNER_RIGHT | AI_SNIPER | AI_CRATE)
|
||||
#define AI_MOVE_MASK \
|
||||
(AI_COVER | AI_CONCEALMENT | AI_CORNER_LEFT | AI_CORNER_RIGHT | AI_SNIPER | AI_CRATE | AI_LOW_WALL_ARC)
|
||||
#define AI_COVER_MASK (AI_COVER | AI_CONCEALMENT | AI_CORNER_LEFT | AI_CORNER_RIGHT | AI_CRATE | AI_LOW_WALL_ARC)
|
||||
#define AI_CONCEALMENT_MASK (AI_CORNER_LEFT | AI_CORNER_RIGHT | AI_CRATE | AI_LOW_WALL_ARC)
|
||||
|
||||
void DrawNode(int iNodeCount);
|
||||
void DrawAllConnections(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue