2023-10-24 10:16:45 -04:00
|
|
|
#include "gamemode.h"
|
|
|
|
|
|
|
|
bool Com_GameMode_SupportsFeature_Detour(unsigned int featureID)
|
|
|
|
{
|
2023-10-27 22:42:38 -04:00
|
|
|
static dvar_t* com_timescale;
|
|
|
|
static dvar_t* timescale;
|
|
|
|
|
|
|
|
if (com_timescale == nullptr && featureID == 70)
|
|
|
|
{
|
2023-11-04 17:35:37 -04:00
|
|
|
com_timescale = Dvar_FindVarByName("LNOTRKNRPS");
|
|
|
|
timescale = Dvar_FindVarByName("MSNTNLNQNM");
|
2023-10-27 22:42:38 -04:00
|
|
|
// fixes slowmotion final killcam, but not in an ideal way
|
|
|
|
}
|
|
|
|
|
|
|
|
if (featureID == 70 && timescale->current.value != 1.0) // TIMESCALE_TWEAKING
|
2023-10-24 10:16:45 -04:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (featureID == 33) // GRAVITY_CHANGE_ALLOWED
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return com_gamemode_supportsfeature.stub<bool>(featureID);
|
|
|
|
}
|