From fb92c2369f9201c39897579248b08c79f7741bcb Mon Sep 17 00:00:00 2001 From: Giegue Date: Mon, 3 Apr 2023 12:51:01 -0300 Subject: [PATCH] Remove unsupported door info in AI navigation. Fix keyvalue length being too small. --- src/dlls/monster_plugin.h | 2 +- src/dlls/nodes.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/dlls/monster_plugin.h b/src/dlls/monster_plugin.h index 0162f02..08d4450 100644 --- a/src/dlls/monster_plugin.h +++ b/src/dlls/monster_plugin.h @@ -8,7 +8,7 @@ typedef struct { char key[33]; - char value[33]; + char value[481]; } pKVD; #define MAX_KEYVALUES 32 diff --git a/src/dlls/nodes.cpp b/src/dlls/nodes.cpp index a4d7eb0..727750e 100644 --- a/src/dlls/nodes.cpp +++ b/src/dlls/nodes.cpp @@ -232,7 +232,9 @@ int CGraph :: HandleLinkEnt ( int iNode, entvars_t *pevLinkEnt, int afCapMask, N // func_door if ( FClassnameIs( pevLinkEnt, "func_door" ) || FClassnameIs( pevLinkEnt, "func_door_rotating" ) ) {// ent is a door. - + // Can't retrieve door info right now, assume it's a hard wall and don't let the monster go through + return FALSE; + /* pDoor = ( CMBaseEntity::Instance( pevLinkEnt ) ); if ( ( pevLinkEnt->spawnflags & SF_DOOR_USE_ONLY ) ) @@ -269,6 +271,7 @@ int CGraph :: HandleLinkEnt ( int iNode, entvars_t *pevLinkEnt, int afCapMask, N return FALSE; } + */ } // func_breakable else if ( FClassnameIs( pevLinkEnt, "func_breakable" ) && queryType == NODEGRAPH_STATIC )