JavaScript:
UI.AddCheckbox('FPS Boost');
function fps_boost() {
if (UI.GetValue('Misc', 'JAVASCRIPT', 'Script Items', 'FPS Boost')) {
UI.SetValue('Misc', 'GENERAL', 'Misc', 'Force sv_cheats', true);
UI.SetValue('Misc', 'GENERAL', 'Misc', 'Hidden cvars', true);
Convar.SetString('r_shadows', '0');
Convar.SetString('cl_csm_static_prop_shadows', '0');
Convar.SetString('cl_csm_shadows', '0');
Convar.SetString('cl_csm_world_shadows', '0');
Convar.SetString('cl_foot_contact_shadows', '0');
Convar.SetString('cl_csm_viewmodel_shadows', '0');
Convar.SetString('cl_csm_rope_shadows', '0');
Convar.SetString('cl_csm_sprite_shadows', '0');
Convar.SetString('cl_csm_world_shadows_in_viewmodelcascade', '0');
Convar.SetString('cl_csm_translucent_shadows', '0');
Convar.SetString('cl_csm_entity_shadows', '0');
Convar.SetString('violence_hblood', '0');
Convar.SetString('r_3dsky', '0');
Convar.SetString('r_drawdecals', '0');
Convar.SetString('r_drawrain', '0');
Convar.SetString('r_drawropes', '0');
Convar.SetString('r_drawsprites', '0');
Convar.SetString('fog_enable_water_fog', '0');
Convar.SetString('@panorama_disable_blur', '1');
Convar.SetString('dsp_slow_cpu', '1');
Convar.SetString('cl_disable_ragdolls', '1');
Convar.SetString('mat_disable_bloom', '1')
} else {
Convar.SetString('r_shadows', '1');
Convar.SetString('cl_csm_static_prop_shadows', '1');
Convar.SetString('cl_csm_shadows', '1');
Convar.SetString('cl_csm_world_shadows', '1');
Convar.SetString('cl_foot_contact_shadows', '1');
Convar.SetString('cl_csm_viewmodel_shadows', '1');
Convar.SetString('cl_csm_rope_shadows', '1');
Convar.SetString('cl_csm_sprite_shadows', '1');
Convar.SetString('cl_csm_world_shadows_in_viewmodelcascade', '1');
Convar.SetString('cl_csm_translucent_shadows', '1');
Convar.SetString('cl_csm_entity_shadows', '1');
Convar.SetString('violence_hblood', '1');
Convar.SetString('r_3dsky', '1');
Convar.SetString('r_drawdecals', '1');
Convar.SetString('r_drawrain', '1');
Convar.SetString('r_drawropes', '1');
Convar.SetString('r_drawsprites', '1');
Convar.SetString('fog_enable_water_fog', '1');
Convar.SetString('@panorama_disable_blur', '0');
Convar.SetString('dsp_slow_cpu', '0');
Convar.SetString('cl_disable_ragdolls', '0');
Convar.SetString('mat_disable_bloom', '0')
}
}