public scoreboard_t[] scores; // [cl.maxclients] public client_state_t() { for (int kk = 0; kk < NUM_CSHIFTS; kk++) { cshifts[kk] = new cshift_t(); prev_cshifts[kk] = new cshift_t(); } }
public View(Host host) { this.Host = host; this._GammaTable = new byte[256]; this._CShift_empty = new(new[] { 130, 80, 50 }, 0); this._CShift_water = new(new[] { 130, 80, 50 }, 128); this._CShift_slime = new(new[] { 0, 25, 5 }, 150); this._CShift_lava = new(new[] { 255, 80, 0 }, 150); }
public static float _OldGammaValue; // static float oldgammavalue from CheckGamma public static void V_Init() { _GammaTable = new byte[256]; _CShift_empty = new cshift_t(new[] { 130, 80, 50 }, 0); _CShift_water = new cshift_t(new[] { 130, 80, 50 }, 128); _CShift_slime = new cshift_t(new[] { 0, 25, 5 }, 150); _CShift_lava = new cshift_t(new[] { 255, 80, 0 }, 150); Cmd_AddCommand("v_cshift", V_cshift_f); Cmd_AddCommand("bf", V_BonusFlash_f); Cmd_AddCommand("centerview", V_StartPitchDrift); lcd_x = new cvar_t("lcd_x", "0"); lcd_yaw = new cvar_t("lcd_yaw", "0"); scr_ofsx = new cvar_t("scr_ofsx", "0", false); scr_ofsy = new cvar_t("scr_ofsy", "0", false); scr_ofsz = new cvar_t("scr_ofsz", "0", false); cl_rollspeed = new cvar_t("cl_rollspeed", "200"); cl_rollangle = new cvar_t("cl_rollangle", "2.0"); cl_bob = new cvar_t("cl_bob", "0.02", false); cl_bobcycle = new cvar_t("cl_bobcycle", "0.6", false); cl_bobup = new cvar_t("cl_bobup", "0.5", false); v_kicktime = new cvar_t("v_kicktime", "0.5", false); v_kickroll = new cvar_t("v_kickroll", "0.6", false); v_kickpitch = new cvar_t("v_kickpitch", "0.6", false); v_iyaw_cycle = new cvar_t("v_iyaw_cycle", "2", false); v_iroll_cycle = new cvar_t("v_iroll_cycle", "0.5", false); v_ipitch_cycle = new cvar_t("v_ipitch_cycle", "1", false); v_iyaw_level = new cvar_t("v_iyaw_level", "0.3", false); v_iroll_level = new cvar_t("v_iroll_level", "0.1", false); v_ipitch_level = new cvar_t("v_ipitch_level", "0.3", false); v_idlescale = new cvar_t("v_idlescale", "0", false); crosshair = new cvar_t("crosshair", "0", true); cl_crossx = new cvar_t("cl_crossx", "0", false); cl_crossy = new cvar_t("cl_crossy", "0", false); gl_cshiftpercent = new cvar_t("gl_cshiftpercent", "100", false); v_centermove = new cvar_t("v_centermove", "0.15", false); v_centerspeed = new cvar_t("v_centerspeed", "500"); BuildGammaTable(1.0f); // no gamma yet gamma = new cvar_t("gamma", "1", true); }
double crouch; // local amount for smoothing stepups #endregion Fields #region Constructors public client_state_t() { for (int kk = 0; kk < NUM_CSHIFTS; kk++) { cshifts[kk] = new cshift_t(); prev_cshifts[kk] = new cshift_t(); } }