No min/max on cat_set'd cvars

This commit is contained in:
LightCat 2018-08-30 21:53:42 +02:00
parent f717659927
commit 9ad30fb824
2 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,7 @@ public:
self->GetClientClass()->m_ClassID == CL_CLASS(CTFKatana))
return 128;
else
return (128.0f * 0.67) - 0.5f;
return 72;
}
};
} // namespace re

View File

@ -483,6 +483,8 @@ CatCommand set_value("set", "Set value", [](const CCommand &args) {
return;
std::string value(args.Arg(2));
ReplaceString(value, "\\n", "\n");
var->m_fMaxVal = 999999999.9f;
var->m_fMinVal = -999999999.9f;
var->SetValue(value.c_str());
logging::Info("Set '%s' to '%s'", args.Arg(1), value.c_str());
});