Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.IO;
- using System.Runtime.InteropServices;
- using System.Windows.Forms;
- using Newtonsoft.Json;
- namespace BO2_Console
- {
- public class Commands
- {
- public string night = "r_lightTweakSunColor 0.8 0.8 0.8 \n" +
- "r_lightTweakSunLight 7 \n " +
- "r_lightTweakSunDirection \n" +
- "sm_enable 1 \n" +
- "sm_maxLights 1 \n" +
- "sm_polygonoffsetscale 5 \n" +
- "sm_polygonoffsetbias 0.2 \n" +
- "sm_polygonoffsetbias 0.8 \n" +
- "sm_sunSampleSizeNear 0.8 \n" +
- "sm_sunShadowScale 1 \n" +
- "r_skyColorTemp \n" +
- "r_sky_intensity_factor0 0 \n" +
- "r_sky_intensity_factor 0 \n";
- public string threefps = "com_maxfps 30 \n" + "timescale 0.1";
- public string sixfps = "com_maxfps 30 \n" + "timescale 0.05";
- public string maxfps = "com_maxfps 30 \n" + "timescale 0.01";
- public string quality = " r_lodbiasSkinned -1000\n" +
- "r_lodbiasRigid -1000";
- public string hud = "hud_health_pulserate_critical 0\n " +
- "hud_health_pulserate_injured 0\n" +
- "hud_health_startpulse_critical 0\n" +
- "hud_health_startpulse_injured 0\n" +
- "hud_healthOverlay_phaseEnd_pulseDuration 0\n" +
- "hud_healthOverlay_phaseEnd_toAlpha 0\n" +
- "hud_healthOverlay_phaseOne_pulseDuration 0\n" +
- "hud_healthOverlay_phaseThree_pulseDuration 0\n" +
- "hud_healthOverlay_phaseThree_toAlphaMultiplier 0\n" +
- "hud_healthOverlay_phaseTwo_pulseDuration 0\n" +
- "hud_healthOverlay_phaseTwo_toAlphaMultiplier 0\n" +
- "hud_healthOverlay_pulseStart 0\n" +
- "hud_healthOverlay_regenPauseTime 0\n" +
- "r_blur 0\n" +
- "r_detail 1\n" +
- "r_distortion 1\n" +
- "r_drawWater 1\n" +
- "r_forceLod 0\n" +
- "r_lodBiasRigid - 1000\n" +
- "r_lodBiasSkinned - 1000\n" +
- "r_lodScaleRigid 1\n" +
- "r_lodScaleSkinned 1\n" +
- "r_normalMap 1\n" +
- "r_rendererinuse shader model 3.0\n" +
- "r_rendererPreference shader model 3.0";
- public string greenscreen = "r_modellimit 0 \n" + "r_skipPvs 1\n" + "r_lockPvs .875\n" + "r_bloomTweaks 1\n" +
- "r_bloomHiQuality 0\n" +
- "r_clearColor 0 1 0 0\n" +
- "r_clearColor2 0 1 0 0\n" +
- "r_znear 10000\n" +
- "r_zfar 0.000001\n" +
- "r_glow_allowed 0\n" +
- "r_glowtweakbloomintensity 0\n" +
- "r_glowtweakradius 0\n" +
- "r_glowTweakEnable 0\n" +
- "r_glowUseTweaks 0\n" +
- "r_glow 0\n" +
- "r_glow_allowed 0\n" +
- "r_seethru_decal_enable 0\n" +
- "r_drawdecals 0\n" + "cg_drawgun 1";
- public string regular = "r_modellimit 1000\n" +
- "r_skipPvs 0\n" +
- "r_lockPvs 0\n" +
- "r_clearColor 0 0 0 0\n" +
- "r_clearColor2 0 0 0 0\n" +
- "r_bloomTweaks 0\n" +
- "r_bloomHiQuality 1\n" +
- "r_znear 10000\n" +
- "r_zfar 0\n" +
- "r_glow_allowed 1\n" +
- "r_glowtweakbloomintensity 1\n" +
- "r_glowtweakradius 1\n" +
- "r_glowTweakEnable 1\n" +
- "r_glowUseTweaks 1\n" +
- "r_glow 1\n" +
- "r_glow_allowed 1\n" +
- "r_seethru_decal_enable 1\n" +
- "r_drawdecals 1\n";
- public string regular2 = "r_modellimit 1000\n" +
- "r_skipPvs 0\n" +
- "r_lockPvs 0\n" +
- "r_clearColor 0 0 0 0\n" +
- "r_clearColor2 0 0 0 0\n" +
- "r_bloomTweaks 0\n" +
- "r_bloomHiQuality 1\n" +
- "r_znear 10000\n" +
- "r_zfar 0\n" +
- "r_glow_allowed 1\n" +
- "r_glowtweakbloomintensity 1\n" +
- "r_glowtweakradius 1\n" +
- "r_glowTweakEnable 1\n" +
- "r_glowUseTweaks 1\n" +
- "r_glow 1\n" +
- "r_glow_allowed 1\n" +
- "r_seethru_decal_enable 1\n" +
- "r_drawdecals 1\n" + "cg_drawgun 0";
- public string greensky = "r_modellimit 0\n" + "r_clearcolor 0 1 0\n" + "r_clearcolor2 0 1 0\n" +
- "r_bloomtweaks 1\n";
- public string depth = "r_Dof_Enable 0\n" +
- "r_dof_bias 0\n" +
- "r_dof_farBlur 0\n" +
- "r_dof_farEnd 5\n" +
- "r_dof_farStart 0\n" +
- "r_dof_nearBlur 0\n" +
- "r_dof_nearEnd 0\n" +
- "r_dof_nearStart 0\n" +
- "r_dof_tweak 1\n" +
- "r_dof_tweak_enable 1\n" +
- "r_enablePlayerShadow 0\n" +
- "r_exposureTweak 1\n" +
- "r_exposureValue 16\n" +
- "r_sky_intensity_factor 0\n" +
- "r_modellimit 40\n" +
- "r_clearcolor 1 1 1 0\n" +
- "r_clearcolor2 1 1 1 0\n" +
- "r_bloomtweaks 1";
- public string depthoff = "cg_draw2d 1\n " +
- "r_enablePlayerShadow 0\n " +
- "r_exposureTweak 0\n " +
- "r_exposureValue 12.5\n " +
- "r_sky_intensity_factor 1\n " +
- "r_modellimit 1024\n " +
- "r_clearcolor 1 1 1 0\n " +
- "r_clearcolor2 1 1 1 0\n " +
- "r_bloomtweaks 0";
- public string greenplayers = "r_zfar 1\n" + "r_lockPvs 0\n" + "r_modelLimit 0\n" + "r_clearColor 0 1 0 1\n" +
- "r_clearColor2 0 1 0 1\n" + "r_bloomTweaks 1";
- internal Dictionary<string, string> cmd = new Dictionary<string, string>();
- Commands()
- {
- var json = File.ReadAllText("dvar.json");
- cmd = JsonConvert.DeserializeObject<Dictionary<string, string>>(json);
- }
- internal List<string> FindCmd(string token)
- {
- List<string> list = new List<string>(cmd.Keys);
- var result = list.Where(x => x.StartsWith(token));
- return result.ToList();
- }
- internal string GetHelp(string token)
- {
- return cmd.TryGetValue(token, out string res)
- ? res
- : "Command not found";
- }
- internal void TypeString(string str)
- {
- SendKeys.Send(str);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement