Update dllmain.cpp

This commit is contained in:
0TheSpy 2021-07-08 21:59:10 +03:00 committed by GitHub
parent df4bd55fd9
commit 2aae1cd10d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,6 +76,19 @@ void OnLevelInit()
iff.g_pCVar->FindVar("mat_force_tonemap_scale")->SetValue(g_Options.tonemapscale);
SetValueUnrestricted("r_aspectratio", g_Options.aspectratio);
iff.g_pCVar->FindVar("mat_postprocess_enable")->SetValue(!g_Options.postproc);
iff.g_pCVar->FindVar("cl_csm_enabled")->SetValue(!g_Options.shadows);
iff.g_pCVar->FindVar("cl_ragdoll_gravity")->SetValue(g_Options.ragdollgravity);
SetValueUnrestricted("cl_phys_timescale", g_Options.ragdolltime);
SetValueUnrestricted("fov_cs_debug", g_Options.fov);
SetValueUnrestricted("viewmodel_fov", g_Options.viewmodel_fov);
SetValueUnrestricted("viewmodel_offset_x", g_Options.viewmodel_x);
SetValueUnrestricted("viewmodel_offset_y", g_Options.viewmodel_y);
SetValueUnrestricted("viewmodel_offset_z", g_Options.viewmodel_z);
colorWorld();