diff --git a/README.md b/README.md index 71eae64..83ab121 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,9 @@ I'm aware that the plugin is far from perfect, and there are a few things that n - Rarely, Stukabats will become unable to fly towards their target, standing in air doing seemingly nothing. -- Monsters are very prone to gibbing when hurt during death animations. +- Monsters are very prone to gibbing. + +- Houndeyes and Hornets (Alien Grunts) do not get along. The server will crash if a houndeye damages a hornet. There are probably more issues that aren't listed here, I'll attempt to fix them as I find them. Of course, any bug report is welcome. If reporting a bug, try to explain step by step how the bug ocurred. The easier it is to replicate a bug, the easier it is to locate it and fix it. diff --git a/src/dlls/effects.cpp b/src/dlls/effects.cpp index 6d34f9b..222bc9e 100644 --- a/src/dlls/effects.cpp +++ b/src/dlls/effects.cpp @@ -332,14 +332,18 @@ void CMSprite::SpriteInit( const char *pSpriteName, const Vector &origin ) CMSprite *CMSprite::SpriteCreate( const char *pSpriteName, const Vector &origin, BOOL animate ) { CMSprite *pSprite = CreateClassPtr( (CMSprite *)NULL ); - pSprite->SpriteInit( pSpriteName, origin ); - pSprite->pev->classname = MAKE_STRING("env_sprite"); - pSprite->pev->solid = SOLID_NOT; - pSprite->pev->movetype = MOVETYPE_NOCLIP; - if ( animate ) - pSprite->TurnOn(); + if (pSprite) + { + pSprite->SpriteInit(pSpriteName, origin); + pSprite->pev->classname = MAKE_STRING("env_sprite"); + pSprite->pev->solid = SOLID_NOT; + pSprite->pev->movetype = MOVETYPE_NOCLIP; + if (animate) + pSprite->TurnOn(); - return pSprite; + return pSprite; + } + return NULL; } diff --git a/src/dlls/monster_plugin.h b/src/dlls/monster_plugin.h index eda2632..58d5177 100644 --- a/src/dlls/monster_plugin.h +++ b/src/dlls/monster_plugin.h @@ -30,7 +30,7 @@ typedef struct CMBaseMonster *pMonster; } monster_t; -#define MAX_MONSTER_ENTS 400 +#define MAX_MONSTER_ENTS 512 extern monster_t monsters[MAX_MONSTER_ENTS]; @@ -43,7 +43,7 @@ typedef struct { bool need_to_respawn; } monster_spawnpoint_t; -#define MAX_MONSTERS 200 +#define MAX_MONSTERS 256 extern monster_spawnpoint_t monster_spawnpoint[MAX_MONSTERS]; // this is here to store if a node we want to spawn is an ordinary one, or a flying one