/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or the license accompanying this file. Do not * remove or modify any license notices. This file is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * */ // Original file Copyright Crytek GMBH or its affiliates, used under license. #include "CryLegacy_precompiled.h" #include "NetworkCVars.h" CNetworkCVars* CNetworkCVars::s_pThis = 0; CNetworkCVars::CNetworkCVars() { CRY_ASSERT(!s_pThis); s_pThis = this; REGISTER_CVAR2("g_breakagelog", &BreakageLog, 0, VF_CHEAT, "Log break events"); REGISTER_CVAR2("cl_voice_volume", &VoiceVolume, 1.0f, 0, "Set VOIP playback volume: 0-1"); REGISTER_CVAR2("net_phys_pingsmooth", &PhysSyncPingSmooth, 0.1f, VF_NULL, ""); REGISTER_CVAR2("net_phys_lagsmooth", &PhysSyncLagSmooth, 0.1f, VF_NULL, ""); REGISTER_CVAR2("net_phys_debug", &PhysDebug, 0, VF_CHEAT, ""); REGISTER_CVAR2("g_breaktimeoutframes", &BreakTimeoutFrames, 140, VF_NULL, ""); REGISTER_CVAR2("br_breakmaxworldsize", &BreakMaxWorldSize, 1e4f, VF_NULL, "The maximum value used for breakage world positions"); REGISTER_CVAR2("br_breakworldoffsetx", &BreakWorldOffsetX, 0.f, VF_NULL, "Break world origin"); REGISTER_CVAR2("br_breakworldoffsety", &BreakWorldOffsetY, 0.f, VF_NULL, "Break world origin"); REGISTER_CVAR(sv_LoadAllLayersForResList, 0, 0, "Bypasses game object layer filtering to load all layers of objects for a multiplayer level"); }