1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Expose hidden server option.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sandu Liviu Catalin 2021-08-01 13:03:19 +03:00
parent 8eb431ea8f
commit 79fca45c13
3 changed files with 6 additions and 5 deletions

View File

@ -99,7 +99,7 @@ void ScriptSrc::Process()
// Read completely? // Read completely?
if (r != static_cast< size_t >(length)) if (r != static_cast< size_t >(length))
{ {
return SqThrowF(fmt::runtime("Failed to read script contents.")); // Not cool SqThrowF(fmt::runtime("Failed to read script contents.")); // Not cool
} }
// Where the last line ended // Where the last line ended
size_t line_start = 0, line_end = 0; size_t line_start = 0, line_end = 0;

View File

@ -344,12 +344,12 @@ static const EnumElement g_ServerOptionEnum[] = {
{_SC("WallGlitch"), vcmpServerOptionWallGlitch}, {_SC("WallGlitch"), vcmpServerOptionWallGlitch},
{_SC("DisableBackfaceCulling"), vcmpServerOptionDisableBackfaceCulling}, {_SC("DisableBackfaceCulling"), vcmpServerOptionDisableBackfaceCulling},
{_SC("DisableHeliBladeDamage"), vcmpServerOptionDisableHeliBladeDamage}, {_SC("DisableHeliBladeDamage"), vcmpServerOptionDisableHeliBladeDamage},
#if SQMOD_SDK_LEAST(2, 1) //#if SQMOD_SDK_LEAST(2, 1)
{_SC("DisableCrouch"), vcmpServerOptionDisableCrouch}, {_SC("DisableCrouch"), vcmpServerOptionDisableCrouch},
{_SC("Max"), vcmpServerOptionDisableCrouch} {_SC("Max"), vcmpServerOptionDisableCrouch}
#else //#else
{_SC("Max"), vcmpServerOptionDisableHeliBladeDamage} // {_SC("Max"), vcmpServerOptionDisableHeliBladeDamage}
#endif //#endif
}; };
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------

View File

@ -156,6 +156,7 @@ typedef enum {
vcmpServerOptionWallGlitch = 19, vcmpServerOptionWallGlitch = 19,
vcmpServerOptionDisableBackfaceCulling = 20, vcmpServerOptionDisableBackfaceCulling = 20,
vcmpServerOptionDisableHeliBladeDamage = 21, vcmpServerOptionDisableHeliBladeDamage = 21,
vcmpServerOptionDisableCrouch = 22, // Apparently this exists in 4.6 as well
forceSizeVcmpServerOption = INT32_MAX forceSizeVcmpServerOption = INT32_MAX
} vcmpServerOption; } vcmpServerOption;