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
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8eb431ea8f
commit
79fca45c13
@ -99,7 +99,7 @@ void ScriptSrc::Process()
|
||||
// Read completely?
|
||||
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
|
||||
size_t line_start = 0, line_end = 0;
|
||||
|
@ -344,12 +344,12 @@ static const EnumElement g_ServerOptionEnum[] = {
|
||||
{_SC("WallGlitch"), vcmpServerOptionWallGlitch},
|
||||
{_SC("DisableBackfaceCulling"), vcmpServerOptionDisableBackfaceCulling},
|
||||
{_SC("DisableHeliBladeDamage"), vcmpServerOptionDisableHeliBladeDamage},
|
||||
#if SQMOD_SDK_LEAST(2, 1)
|
||||
//#if SQMOD_SDK_LEAST(2, 1)
|
||||
{_SC("DisableCrouch"), vcmpServerOptionDisableCrouch},
|
||||
{_SC("Max"), vcmpServerOptionDisableCrouch}
|
||||
#else
|
||||
{_SC("Max"), vcmpServerOptionDisableHeliBladeDamage}
|
||||
#endif
|
||||
//#else
|
||||
// {_SC("Max"), vcmpServerOptionDisableHeliBladeDamage}
|
||||
//#endif
|
||||
};
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
|
@ -156,6 +156,7 @@ typedef enum {
|
||||
vcmpServerOptionWallGlitch = 19,
|
||||
vcmpServerOptionDisableBackfaceCulling = 20,
|
||||
vcmpServerOptionDisableHeliBladeDamage = 21,
|
||||
vcmpServerOptionDisableCrouch = 22, // Apparently this exists in 4.6 as well
|
||||
forceSizeVcmpServerOption = INT32_MAX
|
||||
} vcmpServerOption;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user