Example #1
0
 public void Clear()
 {
     if (CVars.Count > 0)
     {
         CVars.Clear();
     }
 }
Example #2
0
        public void GenerateDefault()
        {
            if (CVars.Count > 0)
            {
                CVars.Clear();
            }

            CVars = new()
            {
                new("viewmodel_fov", 68),
                new("viewmodel_offset_x", 2.5),
                new("viewmodel_offset_y", 0),
                new("viewmodel_offset_z", -1.5),
                new("viewmodel_recoil", 0),
                new("viewmodel_presetpos", 3),
                new("cl_viewmodel_shift_left_amt", 1.5),
                new("cl_viewmodel_shift_right_amt", 0.75),
                new("cl_bob_lower_amt", 21),
                new("cl_bobamt_lat", 0.33),
                new("cl_bobamt_vert", 0.14),
                new("cl_bobcycle", 0.98),
                new("cl_autowepswitch", 0),
                new("cl_crosshair_outlinethickness", 1),
                new("cl_autohelp", 0),
                new("cl_showhelp", 0),
                new("cl_cmdrate", 128),
                new("cl_updaterate", 128),
                new("cl_interp_ratio", 1),
                new("cl_interp", 0),
                new("cl_lagcompensation", 1),
                new("cl_predict", 1),
                new("cl_predictweapons", 1),
                new("cl_forcepreload", 1),
                new("tickrate", 128),
                new("m_rawinput", 1),
                new("m_mouseaccel1", 0),
                new("m_mouseaccel2", 0),
                new("fps_max", 0),
                new("r_dynamic", 1),
                new("r_drawtracers_firstperson", 0),
                new("r_eyegloss", 0),
                new("r_eyemove", 0),
                new("r_eyeshift_x", 0),
                new("r_eyeshift_y", 0),
                new("r_eyeshift_z", 0),
                new("r_eyesize", 0),
                new("snd_mix_async", 1),
                new("snd_mixahead", 1),
                new("snd_stream", 1),
                new("joystick", 1),
                new("joystick_force_disabled", 1),
                new("joystick_force_disabled_set_from_options", 1),
                new("host_writeconfig", null),
            };
        }
Example #3
0
        /// <summary>
        ///     Reset the local data.
        /// </summary>
        public void Reset()
        {
            CVars.Clear();
            CVars.Add("tv_nochat", "0");
            CVars.Add("joy_autoaimdampen", "0");
            CVars.Add("name", _details.Name);
            CVars.Add("cl_interp_ratio", "2");
            CVars.Add("tv_listen_voice_indices", "0");
            CVars.Add("cl_predict", "0");
            CVars.Add("cl_updaterate", "30");
            CVars.Add("cl_showhelp", "1");
            CVars.Add("steamworks_sessionid_lifetime_client", "0");
            CVars.Add("cl_mouselook", "1");
            CVars.Add("steamworks_sessionid_client", "0");
            CVars.Add("dota_mute_cobroadcasters", "0");
            CVars.Add("voice_loopback", "0");
            CVars.Add("dota_player_initial_skill", "0");
            CVars.Add("cl_lagcompensation", "1");
            CVars.Add("closecaption", "0");
            CVars.Add("cl_language", "english");
            CVars.Add("english", "1");
            CVars.Add("cl_class", "default");
            CVars.Add("snd_voipvolume", "1");
            CVars.Add("snd_musicvolume", "1");
            CVars.Add("cl_cmdrate", "30");
            CVars.Add("net_maxroutable", "1200");
            CVars.Add("cl_team", "default");
            CVars.Add("rate", "80000");
            CVars.Add("cl_predictweapons", "1");
            CVars.Add("cl_interpolate", "1");
            CVars.Add("cl_interp", "0.05");
            CVars.Add("dota_camera_edgemove", "1");
            CVars.Add("snd_gamevolume", "1");
            CVars.Add("cl_spec_mode", "1");

            Classes.Clear();
            ClassesByName.Clear();
            SendTables.Clear();
            FlatTables.Clear();
            Properties.Clear();
            Slots.Clear();
            Strings.Clear();
            StringsIndex.Clear();

            Created.Clear();
            Deleted.Clear();
        }