Menu-FN: Set platform defaults upon init, in case the engine does not exec

platform_defaults.cfg - however only crucial ones that should not be
touched anyway.
This commit is contained in:
Marco Cawthorne 2021-05-22 15:21:28 +02:00
parent 09528c2944
commit 4e20200f46
1 changed files with 35 additions and 0 deletions

View File

@ -79,6 +79,41 @@ m_init(void)
{
vector g_btnsize;
/* things that should really be default. platform_default.cfg is supposed to set
* them the first time - however FTE doesn't do that when switching manifests
* for unknown reasons. It'll be fixed */
cvar_set("r_ignoreentpvs", "0");
cvar_set("sv_stepheight", "18");
cvar_set("sv_airstepheight", "18");
cvar_set("sv_friction", "4");
cvar_set("sv_edgefriction", "1");
cvar_set("sv_stopspeed", "75");
cvar_set("sv_gravity", "800");
cvar_set("sv_airaccelerate", "10");
cvar_set("sv_wateraccelerate", "8");
cvar_set("sv_accelerate", "8");
cvar_set("sv_maxspeed", "270");
cvar_set("_pext_infoblobs", "1");
cvar_set("_q3bsp_bihtraces", "1");
cvar_set("sv_gameplayfix_setmodelsize_qw", "1");
cvar_set("sv_gameplayfix_setmodelrealbox", "1");
cvar_set("cl_bob", "0");
cvar_set("maxpitch", "89");
cvar_set("minpitch", "-89");
cvar_set("r_meshpitch", "1");
cvar_set("v_bob", "0.01");
cvar_set("v_bobcycle", "0.8");
cvar_set("v_bobup", "0.5");
cvar_set("v_contentblend", "0");
cvar_set("gl_mindist", "4");
cvar_set("con_textsize", "-12");
cvar_set("scr_conalpha", "1");
cvar_set("scr_sshot_type", "tga");
cvar_set("con_notifylines", "0");
cvar_set("cfg_save_auto", "1");
cvar_set("r_imageextensions", "tga bmp pcx png jpg");
cvar_set("cl_cursor_scale", "1");
print(LICENSE_TEXT);
print("\n\n");