1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-02-20 13:54:14 +01:00

Add preliminary support for Deadlock

This commit is contained in:
Nicholas Hastings 2025-02-16 12:22:10 -05:00
parent a0ef30603f
commit d87e1547d3
4 changed files with 11 additions and 1 deletions

View File

@ -213,6 +213,8 @@ int Source2Provider::DetermineSourceEngine()
return SOURCE_ENGINE_DOTA;
#elif SOURCE_ENGINE == SE_CS2
return SOURCE_ENGINE_CS2;
#elif SOURCE_ENGINE == SE_DEADLOCK
return SOURCE_ENGINE_DEADLOCK;
#else
#error "SOURCE_ENGINE not defined to a known value"
#endif
@ -224,6 +226,8 @@ const char* Source2Provider::GetEngineDescription() const
return "Dota 2 (2013)";
#elif SOURCE_ENGINE == SE_CS2
return "Counter-Strike 2 (2023)";
#elif SOURCE_ENGINE == SE_DEADLOCK
return "Deadlock (2024)";
#else
#error "SOURCE_ENGINE not defined to a known value"
#endif

View File

@ -362,7 +362,11 @@ public:
virtual InitReturnVal_t Init()
{
if (!stricmp("csgo", game_name))
if (!stricmp("citadel", game_name))
{
mm_backend = MMBackend_Deadlock;
}
else if (!stricmp("csgo", game_name))
{
mm_backend = MMBackend_CS2;
}

View File

@ -102,6 +102,7 @@ static const char *backend_names[] =
"2.pvkii",
"2.mcv",
"2.cs2",
"2.deadlock",
};
#if defined _WIN32

View File

@ -107,6 +107,7 @@ enum MetamodBackend
MMBackend_PVKII,
MMBackend_MCV,
MMBackend_CS2,
MMBackend_Deadlock,
MMBackend_UNKNOWN
};