Enable entity lump editing for Outbreak

This commit is contained in:
Nicholas Hastings
2026-11-09 23:09:11 -05:00
parent 38edc91857
commit 1fa24557e3
9 changed files with 183 additions and 20 deletions
+10 -3
View File
@@ -37,6 +37,11 @@
#include <stack>
#include <vector>
#if SOURCE_ENGINE == SE_OUTBREAK
#include "sm_convar.h"
#include <eiface.h>
#endif
#if defined _DEBUG
# define IF_DEBUG_SPEW
# define ENDIF_DEBUG_SPEW
@@ -52,7 +57,7 @@
* @brief Implements SourceMod's global overall management, API, and logic
*/
class SourceModBase :
class SourceModBase :
public ISourceMod,
public SMGlobalClass
{
@@ -78,7 +83,7 @@ public:
* @brief Map change hook
*/
#if SOURCE_ENGINE == SE_OUTBREAK
bool LevelInit(char const *pMapName, void *pMapEntities, char const *pOldLevel, char const *pLandmarkName, bool loadGame, bool background);
bool LevelInit(char const *pMapName, CMapEntityDataList *pMapEntities, char const *pOldLevel, char const *pLandmarkName, bool loadGame, bool background);
#else
bool LevelInit(char const *pMapName, char const *pMapEntities, char const *pOldLevel, char const *pLandmarkName, bool loadGame, bool background);
#endif
@@ -140,7 +145,9 @@ public: // ISourceMod
private:
void ShutdownServices();
private:
#if SOURCE_ENGINE != SE_OUTBREAK
#if SOURCE_ENGINE == SE_OUTBREAK
const CMapEntityDataList *GetMapEntityList() const;
#else
const char* GetMapEntitiesString();
#endif
char m_SMBaseDir[PLATFORM_MAX_PATH];