diff --git a/CMakeLists.txt b/CMakeLists.txt index b249966fa20..6f538ac49b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2129,6 +2129,7 @@ set_src(ENGINE_SHARED GLOB_RECURSE src/engine/shared storage.cpp stun.cpp stun.h + tater_variables.h teehistorian_ex.cpp teehistorian_ex.h teehistorian_ex_chunks.h @@ -2171,7 +2172,6 @@ set_src(GAME_SHARED GLOB src/game mapitems_ex_types.h prng.cpp prng.h - tater_variables.h teamscore.cpp teamscore.h tuning.h diff --git a/src/engine/client.h b/src/engine/client.h index 8b9192fdb64..e65c5a03fcf 100644 --- a/src/engine/client.h +++ b/src/engine/client.h @@ -57,9 +57,9 @@ class IClient : public IInterface }; /** - * More precise state for @see STATE_LOADING - * Sets what is actually happening in the client right now - */ + * More precise state for @see STATE_LOADING + * Sets what is actually happening in the client right now + */ enum ELoadingStateDetail { LOADING_STATE_DETAIL_INITIAL, @@ -268,7 +268,7 @@ class IClient : public IInterface virtual IGraphics::CTextureHandle GetDebugFont() const = 0; // TODO: remove this function - //DDRace + // DDRace virtual const char *GetCurrentMap() const = 0; virtual const char *GetCurrentMapPath() const = 0; diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index 0c59e93a562..e24f5f3d558 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -3371,8 +3371,7 @@ bool CClient::InitNetworkClient(char *pError, size_t ErrorSize) BindAddr.type = NETTYPE_ALL; for(unsigned int i = 0; i < std::size(m_aNetClient); i++) { - int &PortRef = i == CONN_MAIN ? g_Config.m_ClPort : i == CONN_DUMMY ? g_Config.m_ClDummyPort : - g_Config.m_ClContactPort; + int &PortRef = i == CONN_MAIN ? g_Config.m_ClPort : i == CONN_DUMMY ? g_Config.m_ClDummyPort : g_Config.m_ClContactPort; if(PortRef < 1024) // Reject users setting ports that we don't want to use { PortRef = 0; diff --git a/src/engine/client/client.h b/src/engine/client/client.h index 247e35a3fb9..ea95d99ddcf 100644 --- a/src/engine/client/client.h +++ b/src/engine/client/client.h @@ -507,7 +507,7 @@ class CClient : public IClient, public CDemoPlayer::IListener IFriends *Foes() override { return &m_Foes; } - void GetSmoothFreezeTick(int *pSmoothTick, float *pSmoothIntraTick, float MixAmount) override; + void GetSmoothFreezeTick(int *pSmoothTick, float *pSmoothIntraTick, float MixAmount) override; void GetSmoothTick(int *pSmoothTick, float *pSmoothIntraTick, float MixAmount) override; void AddWarning(const SWarning &Warning) override; diff --git a/src/engine/shared/config.cpp b/src/engine/shared/config.cpp index 22ddaa534bf..f16d3f0abd3 100644 --- a/src/engine/shared/config.cpp +++ b/src/engine/shared/config.cpp @@ -474,7 +474,7 @@ bool CConfigManager::TSave() WriteLine(aLineBuf); \ } -#include "././game/tater_variables.h" +#include "tater_variables.h" #undef MACRO_CONFIG_INT #undef MACRO_CONFIG_COL @@ -485,7 +485,6 @@ bool CConfigManager::TSave() Callback.m_pfnFunc(this, Callback.m_pUserData); } - if(io_sync(m_ConfigFile) != 0) { m_Failed = true; @@ -522,7 +521,6 @@ void CConfigManager::RegisterTCallback(SAVECALLBACKFUNC pfnFunc, void *pUserData m_vTCallbacks.emplace_back(pfnFunc, pUserData); } - void CConfigManager::WriteLine(const char *pLine) { if(!m_ConfigFile || diff --git a/src/engine/shared/config.h b/src/engine/shared/config.h index 1815a2ad5d4..b15c2ea2d57 100644 --- a/src/engine/shared/config.h +++ b/src/engine/shared/config.h @@ -225,7 +225,6 @@ class CConfigManager : public IConfigManager static void Con_Toggle(IConsole::IResult *pResult, void *pUserData); static void Con_ToggleStroke(IConsole::IResult *pResult, void *pUserData); - public: CConfigManager(); diff --git a/src/engine/shared/config_variables.h b/src/engine/shared/config_variables.h index ed46cbba5c7..66e3f1c9331 100644 --- a/src/engine/shared/config_variables.h +++ b/src/engine/shared/config_variables.h @@ -10,7 +10,7 @@ #define MACRO_CONFIG_STR(Name, ScriptName, Len, Def, Save, Desc) ; #endif -#include "././game/tater_variables.h" +#include "tater_variables.h" // client MACRO_CONFIG_INT(ClPredict, cl_predict, 1, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Predict client movements") diff --git a/src/game/client/components/binds.cpp b/src/game/client/components/binds.cpp index 088ae9f134c..cb7a979ce51 100644 --- a/src/game/client/components/binds.cpp +++ b/src/game/client/components/binds.cpp @@ -274,7 +274,7 @@ void CBinds::SetDefaults() Bind(KEY_MOUSE_1, "+fire"); Bind(KEY_MOUSE_2, "+hook"); Bind(KEY_LSHIFT, "+emote"); - Bind(KEY_Q, "+bindwheel"); + Bind(KEY_Q, "+bindwheel"); Bind(KEY_RETURN, "+show_chat; chat all"); Bind(KEY_RIGHT, "spectate_next"); Bind(KEY_LEFT, "spectate_previous"); diff --git a/src/game/client/components/bindwheel.h b/src/game/client/components/bindwheel.h index 2bf78ce0aa9..b9f7e43b1ae 100644 --- a/src/game/client/components/bindwheel.h +++ b/src/game/client/components/bindwheel.h @@ -1,6 +1,6 @@ -#ifndef GAME_CLIENT_COMPONENTS_BIND_WHEEL_H -#define GAME_CLIENT_COMPONENTS_BIND_WHEEL_H +#ifndef GAME_CLIENT_COMPONENTS_BINDWHEEL_H +#define GAME_CLIENT_COMPONENTS_BINDWHEEL_H #include class IConfigManager; @@ -10,7 +10,7 @@ class IConfigManager; class CBindWheel : public CComponent { - void DrawCircle(float x, float y, float r, int Segments); + void DrawCircle(float x, float y, float r, int Segments); bool m_WasActive; bool m_Active; @@ -30,7 +30,6 @@ class CBindWheel : public CComponent }; SClientBindWheel m_BindWheelList[NUM_BINDWHEEL]; - CBindWheel(); virtual int Sizeof() const override { return sizeof(*this); } @@ -40,10 +39,9 @@ class CBindWheel : public CComponent virtual void OnRelease() override; virtual bool OnCursorMove(float x, float y, IInput::ECursorType CursorType) override; static void ConchainBindwheel(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData); - + void updateBinds(int Bindpos, char *Description, char *Command); void Binwheel(int Bind); - }; #endif diff --git a/src/game/client/components/chat.cpp b/src/game/client/components/chat.cpp index 4d5fb8f6c11..e3f2dff83ed 100644 --- a/src/game/client/components/chat.cpp +++ b/src/game/client/components/chat.cpp @@ -2,6 +2,7 @@ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #include +#include #include #include #include @@ -19,7 +20,6 @@ #include #include "chat.h" -#include "engine/external/remimu.h" char CChat::ms_aDisplayText[MAX_LINE_LENGTH] = {'\0'}; diff --git a/src/game/client/components/controls.cpp b/src/game/client/components/controls.cpp index 6be1bbf9226..a60dc10a19d 100644 --- a/src/game/client/components/controls.cpp +++ b/src/game/client/components/controls.cpp @@ -497,9 +497,5 @@ bool CControls::CheckNewInput() m_FastInput = TestInput; - if (NewInput) - { - return true; - } - return false; + return NewInput; } diff --git a/src/game/client/components/hud.cpp b/src/game/client/components/hud.cpp index ff7618d0ee5..27c7e1fc846 100644 --- a/src/game/client/components/hud.cpp +++ b/src/game/client/components/hud.cpp @@ -265,10 +265,7 @@ void CHud::RenderScoreHud() if(GameFlags & GAMEFLAG_FLAGS) { - int BlinkTimer = (m_pClient->m_aFlagDropTick[t] != 0 && - (Client()->GameTick(g_Config.m_ClDummy) - m_pClient->m_aFlagDropTick[t]) / Client()->GameTickSpeed() >= 25) ? - 10 : - 20; + int BlinkTimer = (m_pClient->m_aFlagDropTick[t] != 0 && (Client()->GameTick(g_Config.m_ClDummy) - m_pClient->m_aFlagDropTick[t]) / Client()->GameTickSpeed() >= 25) ? 10 : 20; if(aFlagCarrier[t] == FLAG_ATSTAND || (aFlagCarrier[t] == FLAG_TAKEN && ((Client()->GameTick(g_Config.m_ClDummy) / BlinkTimer) & 1))) { // draw flag @@ -304,7 +301,6 @@ void CHud::RenderScoreHud() CTeeRenderInfo TeeInfo = m_pClient->m_aClients[Id].m_RenderInfo; TeeInfo.m_Size = ScoreSingleBoxHeight; - const CAnimState *pIdleState = CAnimState::GetIdle(); vec2 OffsetToMid; CRenderTools::GetRenderTeeOffsetToRenderedTee(pIdleState, &TeeInfo, OffsetToMid); @@ -618,7 +614,7 @@ void CHud::RenderTextInfo() } } - //render team in freeze text and last notify + // render team in freeze text and last notify if((g_Config.m_ClShowFrozenText > 0 || g_Config.m_ClShowFrozenHud > 0 || g_Config.m_ClNotifyWhenLast) && GameClient()->m_GameInfo.m_EntitiesDDRace) { int NumInTeam = 0; @@ -644,7 +640,7 @@ void CHud::RenderTextInfo() } } - //Notify when last + // Notify when last if(g_Config.m_ClNotifyWhenLast) { if(NumInTeam > 1 && NumInTeam - NumFrozen == 1) @@ -656,7 +652,7 @@ void CHud::RenderTextInfo() TextRender()->TextColor(TextRender()->DefaultTextColor()); } } - //Show freeze text + // Show freeze text char aBuf[64]; if(g_Config.m_ClShowFrozenText == 1) str_format(aBuf, sizeof(aBuf), "%d / %d", NumInTeam - NumFrozen, NumInTeam); @@ -665,9 +661,9 @@ void CHud::RenderTextInfo() if(g_Config.m_ClShowFrozenText > 0) TextRender()->Text(m_Width / 2.0f - TextRender()->TextWidth(10.f, aBuf) / 2.0f, 12.0f, 10.0f, aBuf); - //str_format(aBuf, sizeof(aBuf), "%d", m_pClient->m_aClients[m_pClient->m_Snap.m_LocalClientId].m_PrevPredicted.m_FreezeEnd); - //str_format(aBuf, sizeof(aBuf), "%d", g_Config.m_ClWhatsMyPing); - //TextRender()->Text(0, m_Width / 2 - TextRender()->TextWidth(0, 10, aBuf, -1, -1.0f) / 2, 20, 10, aBuf, -1.0f); + // str_format(aBuf, sizeof(aBuf), "%d", m_pClient->m_aClients[m_pClient->m_Snap.m_LocalClientId].m_PrevPredicted.m_FreezeEnd); + // str_format(aBuf, sizeof(aBuf), "%d", g_Config.m_ClWhatsMyPing); + // TextRender()->Text(0, m_Width / 2 - TextRender()->TextWidth(0, 10, aBuf, -1, -1.0f) / 2, 20, 10, aBuf, -1.0f); if(g_Config.m_ClShowFrozenHud > 0 && !m_pClient->m_Scoreboard.Active() && !(LocalTeamID == 0 && g_Config.m_ClFrozenHudTeamOnly)) { @@ -680,7 +676,6 @@ void CHud::RenderTextInfo() FreezeInfo.m_ColorBody = ColorRGBA(1, 1, 1); FreezeInfo.m_ColorFeet = ColorRGBA(1, 1, 1); FreezeInfo.m_CustomColoredSkin = false; - float progressiveOffset = 0.0f; float TeeSize = g_Config.m_ClFrozenHudTeeSize; diff --git a/src/game/client/components/maplayers.h b/src/game/client/components/maplayers.h index 6aa408df1f9..f1bce1e280e 100644 --- a/src/game/client/components/maplayers.h +++ b/src/game/client/components/maplayers.h @@ -135,7 +135,6 @@ class CMapLayers : public CComponent public: bool m_OnlineOnly; - enum { TYPE_BACKGROUND = 0, diff --git a/src/game/client/components/menus_settings.cpp b/src/game/client/components/menus_settings.cpp index 07b951c5f97..47680b5a23a 100644 --- a/src/game/client/components/menus_settings.cpp +++ b/src/game/client/components/menus_settings.cpp @@ -641,7 +641,7 @@ void CMenus::RenderSettingsTee(CUIRect MainView) static CButtonContainer s_RandomizeColors; if(*pUseCustomColor) { - //RandomColorsButton.VSplitLeft(120.0f, &RandomColorsButton, 0); + // RandomColorsButton.VSplitLeft(120.0f, &RandomColorsButton, 0); if(DoButton_Menu(&s_RandomizeColors, "Random Colors", 0, &RandomColorsButton, 0, IGraphics::CORNER_ALL, 5.0f, 0.0f, vec4(0, 0, 0, 0.5f))) { if(m_Dummy) @@ -1749,7 +1749,7 @@ void CMenus::RenderSettingsGraphics(CUIRect MainView) char aCurDeviceName[256 + 4]; - int OldSelectedGpu = -1; + int RainbowSelectedOldGpu = -1; for(size_t i = 0; i < GpuCount; ++i) { if(i == 0) @@ -1758,7 +1758,7 @@ void CMenus::RenderSettingsGraphics(CUIRect MainView) s_vpGpuIdNames[i] = aCurDeviceName; if(str_comp("auto", g_Config.m_GfxGpuName) == 0) { - OldSelectedGpu = 0; + RainbowSelectedOldGpu = 0; } } else @@ -1766,27 +1766,27 @@ void CMenus::RenderSettingsGraphics(CUIRect MainView) s_vpGpuIdNames[i] = GpuList.m_vGpus[i - 1].m_aName; if(str_comp(GpuList.m_vGpus[i - 1].m_aName, g_Config.m_GfxGpuName) == 0) { - OldSelectedGpu = i; + RainbowSelectedOldGpu = i; } } } - static int s_OldSelectedGpu = -1; - if(s_OldSelectedGpu == -1) - s_OldSelectedGpu = OldSelectedGpu; + static int s_RainbowSelectedOldGpu = -1; + if(s_RainbowSelectedOldGpu == -1) + s_RainbowSelectedOldGpu = RainbowSelectedOldGpu; static CUi::SDropDownState s_GpuDropDownState; static CScrollRegion s_GpuDropDownScrollRegion; s_GpuDropDownState.m_SelectionPopupContext.m_pScrollRegion = &s_GpuDropDownScrollRegion; - const int NewGpu = Ui()->DoDropDown(&GpuDropDown, OldSelectedGpu, s_vpGpuIdNames.data(), GpuCount, s_GpuDropDownState); - if(OldSelectedGpu != NewGpu) + const int NewGpu = Ui()->DoDropDown(&GpuDropDown, RainbowSelectedOldGpu, s_vpGpuIdNames.data(), GpuCount, s_GpuDropDownState); + if(RainbowSelectedOldGpu != NewGpu) { if(NewGpu == 0) str_copy(g_Config.m_GfxGpuName, "auto"); else str_copy(g_Config.m_GfxGpuName, GpuList.m_vGpus[NewGpu - 1].m_aName); CheckSettings = true; - s_GfxGpuChanged = NewGpu != s_OldSelectedGpu; + s_GfxGpuChanged = NewGpu != s_RainbowSelectedOldGpu; } } @@ -3400,7 +3400,7 @@ void CMenus::RenderSettingsTClient(CUIRect MainView) DoLine_ColorPicker(&OutlineColorSolidID, ColorPickerLineSize, ColorPickerLabelSize, ColorPickerLineSpacing, &RightView, Localize("Walls Outline Color"), &g_Config.m_ClOutlineColorSolid, ColorRGBA(0.0f, 0.0f, 0.0f), false); DoLine_ColorPicker(&OutlineColorTeleID, ColorPickerLineSize, ColorPickerLabelSize, ColorPickerLineSpacing, &RightView, Localize("Teleporter Outline Color"), &g_Config.m_ClOutlineColorTele, ColorRGBA(0.0f, 0.0f, 0.0f), false); DoLine_ColorPicker(&OutlineColorUnfreezeID, ColorPickerLineSize, ColorPickerLabelSize, ColorPickerLineSpacing, &RightView, Localize("Unfreeze Outline Color"), &g_Config.m_ClOutlineColorUnfreeze, ColorRGBA(0.0f, 0.0f, 0.0f), false); - + RightView.HSplitTop(MarginSmall, nullptr, &RightView); RightView.HSplitTop(HeadlineHeight, &Label, &RightView); Ui()->DoLabel(&Label, Localize("Input"), HeadlineFontSize, TEXTALIGN_ML); @@ -3490,11 +3490,11 @@ void CMenus::RenderSettingsTClient(CUIRect MainView) // A bit jank, but it works MainView.y = maximum(LeftView.y, RightView.y) + MarginSmall; - + MainView.HSplitTop(HeadlineHeight, &Label, &MainView); Ui()->DoLabel(&Label, Localize("Miscellaneous"), HeadlineFontSize, TEXTALIGN_MIDDLE); MainView.HSplitTop(MarginSmall, nullptr, &MainView); - + MainView.VSplitMid(&LeftView, &RightView, MarginBetweenViews); // ***** Miscellaneous Left ***** // @@ -3542,7 +3542,6 @@ void CMenus::RenderSettingsTClient(CUIRect MainView) dbg_msg("menus", "couldn't open link"); } - DoButton_CheckBoxAutoVMarginAndSet(&g_Config.m_ClHammerRotatesWithCursor, Localize("Make hammer rotate with cursor"), &g_Config.m_ClHammerRotatesWithCursor, &RightView, LineSize); DoButton_CheckBoxAutoVMarginAndSet(&g_Config.m_ClRenderNameplateSpec, Localize("Hide nameplates in spec"), &g_Config.m_ClRenderNameplateSpec, &RightView, LineSize); DoButton_CheckBoxAutoVMarginAndSet(&g_Config.m_ClRenderCursorSpec, Localize("Show your cursor when in free spectate"), &g_Config.m_ClRenderCursorSpec, &RightView, LineSize); DoButton_CheckBoxAutoVMarginAndSet(&g_Config.m_ClShowSkinName, Localize("Show skin names in nameplate"), &g_Config.m_ClShowSkinName, &RightView, LineSize); @@ -3568,7 +3567,6 @@ void CMenus::RenderSettingsTClient(CUIRect MainView) ScrollRegion.h = 0.0f; s_ScrollRegion.AddRect(ScrollRegion); s_ScrollRegion.End(); - } if(s_CurCustomTab == TCLIENT_TAB_BINDWHEEL) @@ -4043,7 +4041,7 @@ void CMenus::RenderSettingsProfiles(CUIRect MainView) Item.m_Rect.VSplitLeft(60.0f, nullptr, &Item.m_Rect); CUIRect PlayerRect, ClanRect, FeetColorSquare, BodyColorSquare; - Item.m_Rect.VSplitLeft(60.0f, nullptr, &BodyColorSquare); //Delete this maybe + Item.m_Rect.VSplitLeft(60.0f, nullptr, &BodyColorSquare); // Delete this maybe Item.m_Rect.VSplitRight(60.0f, &BodyColorSquare, &FlagRect); BodyColorSquare.x -= 11.0f; diff --git a/src/game/client/components/players.cpp b/src/game/client/components/players.cpp index 2d465981944..e34309e05c1 100644 --- a/src/game/client/components/players.cpp +++ b/src/game/client/components/players.cpp @@ -439,7 +439,7 @@ void CPlayers::RenderPlayer( bool Local = m_pClient->m_Snap.m_LocalClientId == ClientId; bool OtherTeam = m_pClient->IsOtherTeam(ClientId); - //float Alpha = (OtherTeam || ClientId < 0) ? g_Config.m_ClShowOthersAlpha / 100.0f : 1.0f; + // float Alpha = (OtherTeam || ClientId < 0) ? g_Config.m_ClShowOthersAlpha / 100.0f : 1.0f; bool Spec = m_pClient->m_Snap.m_SpecInfo.m_Active; float Alpha = 1.0f; @@ -614,7 +614,7 @@ void CPlayers::RenderPlayer( if(g_Config.m_ClHammerRotatesWithCursor) { QuadsRotation += Angle; - if (Direction.x < 0) + if(Direction.x < 0) QuadsRotation += pi; } else if(Inactive && LastAttackTime > m_pClient->m_aTuning[g_Config.m_ClDummy].GetWeaponFireDelay(Player.m_Weapon)) @@ -884,7 +884,6 @@ void CPlayers::RenderPlayerGhost( if(!OtherTeam && FrozenSwappingHide) Alpha = 1.0f; - // set size RenderInfo.m_Size = 64.0f; @@ -1413,7 +1412,7 @@ void CPlayers::OnRender() bool Spec = m_pClient->m_Snap.m_SpecInfo.m_Active; - //If we are frozen and hiding frozen ghosts and not swapping render only the regular player + // If we are frozen and hiding frozen ghosts and not swapping render only the regular player if(RenderGhost && g_Config.m_ClShowOthersGhosts && !Spec && Client()->State() != IClient::STATE_DEMOPLAYBACK) RenderPlayerGhost(&m_pClient->m_aClients[ClientId].m_RenderPrev, &m_pClient->m_aClients[ClientId].m_RenderCur, &aRenderInfo[ClientId], ClientId); diff --git a/src/game/client/components/skinprofiles.h b/src/game/client/components/skinprofiles.h index a03b25aea26..05abf6fa3a5 100644 --- a/src/game/client/components/skinprofiles.h +++ b/src/game/client/components/skinprofiles.h @@ -45,4 +45,4 @@ class CSkinProfiles : public CComponent virtual int Sizeof() const override { return sizeof(*this); } virtual void OnInit() override; }; -#endif \ No newline at end of file +#endif diff --git a/src/game/client/components/tater.cpp b/src/game/client/components/tater.cpp index f865beeb9a2..94af6e15c57 100644 --- a/src/game/client/components/tater.cpp +++ b/src/game/client/components/tater.cpp @@ -152,4 +152,4 @@ void CTater::RandomFlag(void *pUserData) // set the flag code as number g_Config.m_PlayerCountry = pFlag->m_CountryCode; -} \ No newline at end of file +} diff --git a/src/game/client/components/verify.cpp b/src/game/client/components/verify.cpp index 571c6181278..78a49b9633d 100644 --- a/src/game/client/components/verify.cpp +++ b/src/game/client/components/verify.cpp @@ -49,4 +49,4 @@ void CVerify::OnRender() } return; } -} \ No newline at end of file +} diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index 349dceb47e5..0b0524773a4 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -2267,7 +2267,7 @@ void CGameClient::OnPredict() { m_PredictedChar = pLocalChar->GetCore(); } - if(Tick == FinalTick - std::max(g_Config.m_ClFastInput - g_Config.m_ClFastInputOthers, 0)) + if(Tick == FinalTick - std::max(g_Config.m_ClFastInput - g_Config.m_ClFastInputOthers, 0)) { for(int i = 0; i < MAX_CLIENTS; i++) if(CCharacter *pChar = m_PredictedWorld.GetCharacterById(i)) @@ -2325,10 +2325,8 @@ void CGameClient::OnPredict() // Remove other tees to reduce lag and because they aren't really important in this case for(int i = 0; i < MAX_CLIENTS; i++) if(i != m_Snap.m_LocalClientId) - if (CCharacter* pDelChar = m_ExtraPredictedWorld.GetCharacterById(i)) + if(CCharacter *pDelChar = m_ExtraPredictedWorld.GetCharacterById(i)) pDelChar->Destroy(); - - CCharacter *pExtraChar = m_ExtraPredictedWorld.GetCharacterById(m_Snap.m_LocalClientId); if(pExtraChar) @@ -2351,7 +2349,7 @@ void CGameClient::OnPredict() m_ExtraPredictedWorld.m_GameTick++; m_ExtraPredictedWorld.Tick(); } - else + else { pExtraChar->m_AliveAccumulation = std::max(pExtraChar->m_AliveAccumulation, 1); pExtraChar->m_AliveAccumulation = std::min(pExtraChar->m_AliveAccumulation + 1, g_Config.m_ClUnfreezeLagDelayTicks); @@ -3288,7 +3286,7 @@ vec2 CGameClient::GetSmoothPos(int ClientId) Client()->GetSmoothTick(&SmoothTick, &SmoothIntra, MixAmount); if(ClientId != m_Snap.m_LocalClientId && !g_Config.m_ClFastInputOthers && g_Config.m_ClFastInput) - SmoothTick -= 1; + SmoothTick -= 1; if(SmoothTick > 0 && m_aClients[ClientId].m_aPredTick[(SmoothTick - 1) % 200] >= Client()->PrevGameTick(g_Config.m_ClDummy) && m_aClients[ClientId].m_aPredTick[SmoothTick % 200] <= Client()->PredGameTick(g_Config.m_ClDummy)) Pos[i] = mix(m_aClients[ClientId].m_aPredPos[(SmoothTick - 1) % 200][i], m_aClients[ClientId].m_aPredPos[SmoothTick % 200][i], SmoothIntra); @@ -3306,8 +3304,8 @@ vec2 CGameClient::GetFreezePos(int ClientId) for(int i = 0; i < 2; i++) { - //int64_t Len = clamp(m_aClients[ClientId].m_aSmoothLen[i], (int64_t)1, time_freq()); - //int64_t TimePassed = Now - m_aClients[ClientId].m_aSmoothStart[i]; + // int64_t Len = clamp(m_aClients[ClientId].m_aSmoothLen[i], (int64_t)1, time_freq()); + // int64_t TimePassed = Now - m_aClients[ClientId].m_aSmoothStart[i]; float MixAmount = 0.0f; int SmoothTick; float SmoothIntra; @@ -3327,17 +3325,11 @@ vec2 CGameClient::GetFreezePos(int ClientId) AdjustTicks = std::min(FreezeTime, AdjustTicks); } if(g_Config.m_ClRemoveAnti && pChar && AdjustTicks > 0 && FreezeTime > 0) - { MixAmount = mix(0.0f, 1.0f, 1.0f - AdjustTicks / (float)DelayTicks); - } - //else if(AdjustTicks == 0 && ClientId != m_Snap.m_LocalClientId) - //{ + // else if(AdjustTicks == 0 && ClientId != m_Snap.m_LocalClientId) // MixAmount = 1.f - std::pow(1.f - TimePassed / (float)Len, 1.2f); - //} else // our tee when not frozen - { MixAmount = 1.f; - } Client()->GetSmoothFreezeTick(&SmoothTick, &SmoothIntra, MixAmount); diff --git a/src/game/client/gameclient.h b/src/game/client/gameclient.h index fcff3078c2d..a6f42a439db 100644 --- a/src/game/client/gameclient.h +++ b/src/game/client/gameclient.h @@ -25,6 +25,7 @@ // components #include "components/background.h" #include "components/binds.h" +#include "components/bindwheel.h" #include "components/broadcast.h" #include "components/camera.h" #include "components/chat.h" @@ -48,25 +49,23 @@ #include "components/menus.h" #include "components/motd.h" #include "components/nameplates.h" +#include "components/outlines.h" #include "components/particles.h" #include "components/player_indicator.h" -#include "components/verify.h" -#include "components/bindwheel.h" -#include "components/tater.h" -#include "components/outlines.h" #include "components/players.h" #include "components/race_demo.h" #include "components/rainbow.h" #include "components/scoreboard.h" +#include "components/skinprofiles.h" #include "components/skins.h" #include "components/skins7.h" #include "components/sounds.h" #include "components/spectator.h" #include "components/statboard.h" +#include "components/tater.h" #include "components/tooltips.h" +#include "components/verify.h" #include "components/voting.h" -#include "components/skinprofiles.h" - class CGameInfo { @@ -154,11 +153,11 @@ class CGameClient : public IGameClient CStatboard m_Statboard; CSounds m_Sounds; CEmoticon m_Emoticon; - CBindWheel m_Bindwheel; - CTater m_Tater; + CBindWheel m_Bindwheel; + CTater m_Tater; CDamageInd m_DamageInd; CVoting m_Voting; - CVerify m_Verify; + CVerify m_Verify; CSpectator m_Spectator; CPlayers m_Players; @@ -177,7 +176,7 @@ class CGameClient : public IGameClient CMapSounds m_MapSounds; CRaceDemo m_RaceDemo; - CRainbow m_Rainbow; + CRainbow m_Rainbow; CGhost m_Ghost; CTooltips m_Tooltips; diff --git a/src/game/client/prediction/entities/character.cpp b/src/game/client/prediction/entities/character.cpp index d4f7c8eb11d..bc0d415537f 100644 --- a/src/game/client/prediction/entities/character.cpp +++ b/src/game/client/prediction/entities/character.cpp @@ -980,11 +980,10 @@ void CCharacter::DDRaceTick() m_AliveAccumulation = std::min(m_AliveAccumulation - 1, 0); m_AliveAccumulation = std::max(m_AliveAccumulation, -g_Config.m_ClUnfreezeLagDelayTicks); } - else + else { m_AliveAccumulation = std::max(m_AliveAccumulation, 1); m_AliveAccumulation = std::min(m_AliveAccumulation + 1, g_Config.m_ClUnfreezeLagDelayTicks); - } HandleTuneLayer(); @@ -1004,7 +1003,8 @@ void CCharacter::DDRaceTick() break; } } - if (m_Core.m_IsInFreeze && IsGrounded()) { + if(m_Core.m_IsInFreeze && IsGrounded()) + { m_FreezeAccumulation = std::min(m_FreezeAccumulation + 1, g_Config.m_ClUnfreezeLagDelayTicks); } else diff --git a/src/game/client/render_map.cpp b/src/game/client/render_map.cpp index dbcef3100fe..a162613666a 100644 --- a/src/game/client/render_map.cpp +++ b/src/game/client/render_map.cpp @@ -667,7 +667,7 @@ void CRenderTools::RenderTilemap(CTile *pTiles, int w, int h, float Scale, Color Graphics()->MapScreen(ScreenX0, ScreenY0, ScreenX1, ScreenY1); } -int ClampedIndex(int x, int y, int w, int h) +int ClampedIndex(int x, int y, int w, int h) { x = std::clamp(x, 0, w - 1); y = std::clamp(y, 0, h - 1); @@ -686,7 +686,7 @@ void CRenderTools::RenderGameTileOutlines(CTile *pTiles, int w, int h, float Sca int MaxScale = 12; if(EndX - StartX > Graphics()->ScreenWidth() / MaxScale || EndY - StartY > Graphics()->ScreenHeight() / MaxScale) { - int EdgeX = (EndX - StartX)-(Graphics()->ScreenWidth() / MaxScale); + int EdgeX = (EndX - StartX) - (Graphics()->ScreenWidth() / MaxScale); StartX += EdgeX / 2; EndX -= EdgeX / 2; int EdgeY = (EndY - StartY) - (Graphics()->ScreenHeight() / MaxScale); @@ -696,7 +696,8 @@ void CRenderTools::RenderGameTileOutlines(CTile *pTiles, int w, int h, float Sca Graphics()->TextureClear(); Graphics()->QuadsBegin(); ColorRGBA col = ColorRGBA(0.0f, 0.0f, 0.0f, 1.0f); - if (TileType == TILE_FREEZE) { + if(TileType == TILE_FREEZE) + { col = color_cast(ColorHSLA(g_Config.m_ClOutlineColorFreeze)); } else if(TileType == TILE_SOLID) @@ -722,7 +723,7 @@ void CRenderTools::RenderGameTileOutlines(CTile *pTiles, int w, int h, float Sca bool IsUnFreeze = Index == TILE_UNFREEZE || Index == TILE_DUNFREEZE; bool IsSolid = Index == TILE_SOLID || Index == TILE_NOHOOK; - if(!(IsSolid || IsFreeze || IsUnFreeze)) //Not an tile we care about + if(!(IsSolid || IsFreeze || IsUnFreeze)) // Not an tile we care about continue; if(IsSolid && !(TileType == TILE_SOLID)) continue; @@ -736,7 +737,7 @@ void CRenderTools::RenderGameTileOutlines(CTile *pTiles, int w, int h, float Sca if(IsFreeze && TileType == TILE_FREEZE) { int IndexN; - + IndexN = pTiles[ClampedIndex(mx - 1, my - 1, w, h)].m_Index; Neighbors[0] = IndexN == TILE_AIR || IndexN == TILE_UNFREEZE || IndexN == TILE_DUNFREEZE; IndexN = pTiles[ClampedIndex(mx - 0, my - 1, w, h)].m_Index; @@ -795,11 +796,10 @@ void CRenderTools::RenderGameTileOutlines(CTile *pTiles, int w, int h, float Sca Neighbors[7] = IndexN != TILE_UNFREEZE && IndexN != TILE_DUNFREEZE; } - float Size = (float)g_Config.m_ClOutlineWidth; int NumQuads = 0; - //Do lonely corners first + // Do lonely corners first if(Neighbors[0] && !Neighbors[1] && !Neighbors[3]) { Array[NumQuads] = IGraphics::CQuadItem(mx * Scale, my * Scale, Size, Size); @@ -820,19 +820,19 @@ void CRenderTools::RenderGameTileOutlines(CTile *pTiles, int w, int h, float Sca Array[NumQuads] = IGraphics::CQuadItem(mx * Scale + Scale - Size, my * Scale + Scale - Size, Size, Size); NumQuads++; } - //Top + // Top if(Neighbors[1]) { Array[NumQuads] = IGraphics::CQuadItem(mx * Scale, my * Scale, Scale, Size); NumQuads++; } - //Bottom + // Bottom if(Neighbors[6]) { Array[NumQuads] = IGraphics::CQuadItem(mx * Scale, my * Scale + Scale - Size, Scale, Size); NumQuads++; } - //Left + // Left if(Neighbors[3]) { if(!Neighbors[1] && !Neighbors[6]) @@ -845,7 +845,7 @@ void CRenderTools::RenderGameTileOutlines(CTile *pTiles, int w, int h, float Sca Array[NumQuads] = IGraphics::CQuadItem(mx * Scale, my * Scale + Size, Size, Scale - Size * 2.0f); NumQuads++; } - //Right + // Right if(Neighbors[4]) { if(!Neighbors[1] && !Neighbors[6]) @@ -859,7 +859,6 @@ void CRenderTools::RenderGameTileOutlines(CTile *pTiles, int w, int h, float Sca NumQuads++; } - Graphics()->QuadsDrawTL(Array, NumQuads); } Graphics()->QuadsEnd(); diff --git a/src/game/server/entities/character.cpp b/src/game/server/entities/character.cpp index 00ccfadc6df..6cf0e3d488a 100644 --- a/src/game/server/entities/character.cpp +++ b/src/game/server/entities/character.cpp @@ -503,7 +503,7 @@ void CCharacter::FireWeapon() { auto *pTarget = static_cast(apEnts[i]); - //if ((pTarget == this) || Collision()->IntersectLine(ProjStartPos, pTarget->m_Pos, NULL, NULL)) + // if ((pTarget == this) || Collision()->IntersectLine(ProjStartPos, pTarget->m_Pos, NULL, NULL)) if((pTarget == this || (pTarget->IsAlive() && !CanCollide(pTarget->GetPlayer()->GetCid())))) continue; @@ -553,15 +553,15 @@ void CCharacter::FireWeapon() new CProjectile( GameWorld(), - WEAPON_GUN, //Type - m_pPlayer->GetCid(), //Owner - ProjStartPos, //Pos - Direction, //Dir - Lifetime, //Span - false, //Freeze - false, //Explosive - -1, //SoundImpact - MouseTarget //InitDir + WEAPON_GUN, // Type + m_pPlayer->GetCid(), // Owner + ProjStartPos, // Pos + Direction, // Dir + Lifetime, // Span + false, // Freeze + false, // Explosive + -1, // SoundImpact + MouseTarget // InitDir ); GameServer()->CreateSound(m_Pos, SOUND_GUN_FIRE, TeamMask()); // NOLINT(clang-analyzer-unix.Malloc) @@ -584,14 +584,14 @@ void CCharacter::FireWeapon() new CProjectile( GameWorld(), - WEAPON_GRENADE, //Type - m_pPlayer->GetCid(), //Owner - ProjStartPos, //Pos - Direction, //Dir - Lifetime, //Span - false, //Freeze - true, //Explosive - SOUND_GRENADE_EXPLODE, //SoundImpact + WEAPON_GRENADE, // Type + m_pPlayer->GetCid(), // Owner + ProjStartPos, // Pos + Direction, // Dir + Lifetime, // Span + false, // Freeze + true, // Explosive + SOUND_GRENADE_EXPLODE, // SoundImpact MouseTarget // MouseTarget ); @@ -634,7 +634,7 @@ void CCharacter::FireWeapon() void CCharacter::HandleWeapons() { - //ninja + // ninja HandleNinja(); HandleJetpack(); @@ -825,7 +825,7 @@ void CCharacter::TickDeferred() m_ReckoningCore.Quantize(); } - //lastsentcore + // lastsentcore vec2 StartPos = m_Core.m_Pos; vec2 StartVel = m_Core.m_Vel; bool StuckBefore = Collision()->TestBox(m_Core.m_Pos, CCharacterCore::PhysicalSizeVec2()); @@ -1019,7 +1019,7 @@ bool CCharacter::TakeDamage(vec2 Force, int Dmg, int From, int Weapon) return true; } -//TODO: Move the emote stuff to a function +// TODO: Move the emote stuff to a function void CCharacter::SnapCharacter(int SnappingClient, int Id) { int SnappingClientVersion = GameServer()->GetClientVersion(SnappingClient); @@ -1492,7 +1492,7 @@ void CCharacter::SetTimeCheckpoint(int TimeCheckpoint) void CCharacter::HandleTiles(int Index) { int MapIndex = Index; - //int PureMapIndex = Collision()->GetPureMapIndex(m_Pos); + // int PureMapIndex = Collision()->GetPureMapIndex(m_Pos); m_TileIndex = Collision()->GetTileIndex(MapIndex); m_TileFIndex = Collision()->GetFTileIndex(MapIndex); m_MoveRestrictions = Collision()->GetMoveRestrictions(IsSwitchActiveCb, this, m_Pos, 18.0f, MapIndex); diff --git a/src/game/tater_variables.h b/src/game/tater_variables.h deleted file mode 100644 index e299559aab5..00000000000 --- a/src/game/tater_variables.h +++ /dev/null @@ -1,132 +0,0 @@ - -#ifndef MACRO_CONFIG_INT -#error "The config macros must be defined" -#define MACRO_CONFIG_INT(Name, ScriptName, Def, Min, Max, Save, Desc) ; -#define MACRO_CONFIG_COL(Name, ScriptName, Def, Save, Desc) ; -#define MACRO_CONFIG_STR(Name, ScriptName, Len, Def, Save, Desc) ; -#endif - -// Tater Client Variables -MACRO_CONFIG_INT(ClRunOnJoinConsole, tc_run_on_join_console, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Whether to use run on join in chat or console") -MACRO_CONFIG_INT(ClRunOnJoinDelay, tc_run_on_join_delay, 2, 7, 50000, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Tick Delay before using run on join") - -MACRO_CONFIG_INT(ClShowFrozenText, tc_frozen_tees_text, 0, 0, 2, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Show how many tees in your team are currently frozen. (0 - off, 1 - show alive, 2 - show frozen)") -MACRO_CONFIG_INT(ClShowFrozenHud, tc_frozen_tees_hud, 1, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Show frozen tee HUD") -MACRO_CONFIG_INT(ClShowFrozenHudSkins, tc_frozen_tees_hud_skins, 1, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Use ninja skin, or darkened skin for frozen tees on hud") - -MACRO_CONFIG_INT(ClFrozenHudTeeSize, tc_frozen_tees_size, 15, 8, 20, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Size of tees in frozen tee hud. (Default : 15)") -MACRO_CONFIG_INT(ClFrozenMaxRows, tc_frozen_tees_max_rows, 1, 1, 6, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Maximum number of rows in frozen tee HUD display") -MACRO_CONFIG_INT(ClFrozenHudTeamOnly, tc_frozen_tees_only_inteam, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Only render frozen tee HUD display while in team") - -MACRO_CONFIG_INT(ClPingNameCircle, tc_nameplate_ping_circle, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Shows a circle next to nameplate to indicate ping") - -MACRO_CONFIG_INT(ClSpecmenuID, tc_spec_menu_ID, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Shows player IDs in spectate menu") - -MACRO_CONFIG_INT(ClLimitMouseToScreen, tc_limit_mouse_to_screen, 0, 0, 2, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Limit mouse to screen boundries") - -MACRO_CONFIG_INT(ClHammerRotatesWithCursor, tc_hammer_rotates_with_cursor, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Allow your hammer to rotate like other weapons") - -// Anti Latency Tools -MACRO_CONFIG_INT(ClFreezeUpdateFix, tc_freeze_update_fix, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Will change your skin faster when you enter freeze. ") -MACRO_CONFIG_INT(ClRemoveAnti, tc_remove_anti, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Removes some amount of antiping & player prediction in freeze") -MACRO_CONFIG_INT(ClUnfreezeLagTicks, tc_remove_anti_ticks, 5, 0, 20, CFGFLAG_CLIENT | CFGFLAG_SAVE, "The biggest amount of prediction ticks that are removed") -MACRO_CONFIG_INT(ClUnfreezeLagDelayTicks, tc_remove_anti_delay_ticks, 25, 0, 150, CFGFLAG_CLIENT | CFGFLAG_SAVE, "How many ticks it takes to remove the maximum prediction after being frozen") - -MACRO_CONFIG_INT(ClUnpredOthersInFreeze, tc_unpred_others_in_freeze, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Dont predict other players if you are frozen") -MACRO_CONFIG_INT(ClPredMarginInFreeze, tc_pred_margin_in_freeze, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "enable changing prediction margin while frozen") -MACRO_CONFIG_INT(ClPredMarginInFreezeAmount, tc_pred_margin_in_freeze_amount, 15, 0, 2000, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Set what your prediction margin while frozen should be") - -MACRO_CONFIG_INT(ClShowOthersGhosts, tc_show_others_ghosts, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Show ghosts for other players in their unpredicted position") -MACRO_CONFIG_INT(ClSwapGhosts, tc_swap_ghosts, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Show predicted players as ghost and normal players as unpredicted") -MACRO_CONFIG_INT(ClHideFrozenGhosts, tc_hide_frozen_ghosts, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Hide Ghosts of other players if they are frozen") - -MACRO_CONFIG_INT(ClPredGhostsAlpha, tc_pred_ghosts_alpha, 100, 0, 100, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Alpha of predicted ghosts (0-100)") -MACRO_CONFIG_INT(ClUnpredGhostsAlpha, tc_unpred_ghosts_alpha, 50, 0, 100, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Alpha of unpredicted ghosts (0-100)") -MACRO_CONFIG_INT(ClRenderGhostAsCircle, tc_render_ghost_as_circle, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Render Ghosts as circles instead of tee") - -// MACRO_CONFIG_INT(ClHookLineSize, tc_hook_line_width, 0, 0, 20, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Adjustable hookline width, set to 0 for old default rendering") - -MACRO_CONFIG_INT(ClShowCenterLines, tc_show_center, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Draws lines to show the center of your screen/hitbox") - -MACRO_CONFIG_INT(ClShowSkinName, tc_skin_name, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Shows skin names in nameplates, good for finding missing skins") - -// MACRO_CONFIG_INT(ClFreeGhost, tc_freeghost, 0, 0, 1, CFGFLAG_CLIENT , "") - -MACRO_CONFIG_INT(ClFastInput, tc_fast_input, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Uses input for prediction up to 20ms faster") -MACRO_CONFIG_INT(ClFastInputOthers, tc_fast_input_others, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Do an extra 1 tick (20ms) for other tees with your fast inputs. (increases visual latency, makes dragging easier)") - -MACRO_CONFIG_INT(ClColorFreeze, tc_color_freeze, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Use skin colors for frozen tees") -MACRO_CONFIG_INT(ClColorFreezeDarken, tc_color_freeze_darken, 90, 0, 100, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Makes color of tees darker when in freeze (0-100)") -MACRO_CONFIG_INT(ClColorFreezeFeet, tc_color_freeze_feet, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Also use color for frozen tee feet") - -// Revert Variables -MACRO_CONFIG_INT(ClSmoothPredictionMargin, tc_prediction_margin_smooth, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Makes prediction margin transition smooth, causes worse ping jitter adjustment (reverts a ddnet change)") -// MACRO_CONFIG_INT(ClFreezeStars, tc_freeze_stars, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Show old freeze stars") -MACRO_CONFIG_INT(ClOldMouseZoom, tc_old_mouse_zoom, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Does not zoom mouse based on camera to prevent precision loss at low zoom levels") - -// Outline Variables -MACRO_CONFIG_INT(ClOutline, tc_outline, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Draws outlines") -MACRO_CONFIG_INT(ClOutlineEntities, tc_outline_in_entities, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Only show outlines in entities") -MACRO_CONFIG_INT(ClOutlineFreeze, tc_outline_freeze, 1, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Draws outline around freeze and deep") -MACRO_CONFIG_INT(ClOutlineUnFreeze, tc_outline_unfreeze, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Draws outline around unfreeze and undeep") -MACRO_CONFIG_INT(ClOutlineTele, tc_outline_tele, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Draws outline around teleporters") -MACRO_CONFIG_INT(ClOutlineSolid, tc_outline_solid, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Draws outline around hook and unhook") -MACRO_CONFIG_INT(ClOutlineWidth, tc_outline_width, 5, 1, 16, CFGFLAG_CLIENT | CFGFLAG_SAVE, "(1-16) Width of freeze outline") -MACRO_CONFIG_INT(ClOutlineAlpha, tc_outline_alpha, 50, 0, 100, CFGFLAG_CLIENT | CFGFLAG_SAVE, "(0-100) Outline alpha") -MACRO_CONFIG_INT(ClOutlineAlphaSolid, tc_outline_alpha_solid, 100, 0, 100, CFGFLAG_CLIENT | CFGFLAG_SAVE, "(0-100) Outline solids alpha") -MACRO_CONFIG_COL(ClOutlineColorSolid, tc_outline_color_solid, 0, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Solid outline color") // 0 0 0 -MACRO_CONFIG_COL(ClOutlineColorFreeze, tc_outline_color_freeze, 0, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Freeze outline color") // 0 0 0 -MACRO_CONFIG_COL(ClOutlineColorTele, tc_outline_color_tele, 0, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Tele outline color") // 0 0 0 -MACRO_CONFIG_COL(ClOutlineColorUnfreeze, tc_outline_color_unfreeze, 0, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Unfreeze outline color") // 0 0 0 - -// Indicator Variables -MACRO_CONFIG_COL(ClIndicatorAlive, tc_indicator_alive, 255, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Color of alive tees in player indicator") -MACRO_CONFIG_COL(ClIndicatorFreeze, tc_indicator_freeze, 65407, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Color of frozen tees in player indicator") -MACRO_CONFIG_COL(ClIndicatorSaved, tc_indicator_dead, 0, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Color of tees who is getting saved in player indicator") -MACRO_CONFIG_INT(ClIndicatorOffset, tc_indicator_offset, 42, 16, 200, CFGFLAG_CLIENT | CFGFLAG_SAVE, "(16-128) Offset of indicator position") -MACRO_CONFIG_INT(ClIndicatorOffsetMax, tc_indicator_offset_max, 100, 16, 200, CFGFLAG_CLIENT | CFGFLAG_SAVE, "(16-128) Max indicator offset for variable offset setting") -MACRO_CONFIG_INT(ClIndicatorVariableDistance, tc_indicator_variable_distance, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Indicator circles will be further away the further the tee is") -MACRO_CONFIG_INT(ClIndicatorMaxDistance, tc_indicator_variable_max_distance, 1000, 500, 7000, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Maximum tee distance for variable offset") -MACRO_CONFIG_INT(ClIndicatorRadius, tc_indicator_radius, 4, 1, 16, CFGFLAG_CLIENT | CFGFLAG_SAVE, "(1-16) indicator circle size") -MACRO_CONFIG_INT(ClIndicatorOpacity, tc_indicator_opacity, 50, 0, 100, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Opacity of indicator circles") -MACRO_CONFIG_INT(ClPlayerIndicator, tc_player_indicator, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Show radial indicator of other tees") -MACRO_CONFIG_INT(ClPlayerIndicatorFreeze, tc_player_indicator_freeze, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Only show frozen tees in indicator") -MACRO_CONFIG_INT(ClIndicatorTeamOnly, tc_indicator_inteam, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Only show indicator while in team") -MACRO_CONFIG_INT(ClIndicatorTees, tc_indicator_tees, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Show tees instead of circles") - -// Bind Wheel -MACRO_CONFIG_INT(ClResetBindWheelMouse, tc_reset_bindwheel_mouse, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Reset position of mouse when opening bindwheel") - -// Regex chat matching -MACRO_CONFIG_STR(ClRegexChatIgnore, tc_regex_chat_ignore, 512, "", CFGFLAG_CLIENT | CFGFLAG_SAVE, "Filters out chat messages based on a regular expression.") - -MACRO_CONFIG_INT(ClWhiteFeet, tc_white_feet, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Render all feet as perfectly white base color") -MACRO_CONFIG_STR(ClWhiteFeetSkin, tc_white_feet_skin, 255, "x_ninja", CFGFLAG_CLIENT | CFGFLAG_SAVE, "Base skin for white feet") - -MACRO_CONFIG_INT(ClMiniDebug, tc_mini_debug, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Show position and angle") - -MACRO_CONFIG_INT(ClNotifyWhenLast, tc_last_notify, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Notify when you are last") -MACRO_CONFIG_STR(ClNotifyWhenLastText, tc_last_notify_text, 64, "Last!", CFGFLAG_CLIENT | CFGFLAG_SAVE, "Text for last notify") -MACRO_CONFIG_COL(ClNotifyWhenLastColor, tc_last_notify_color, 256, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Color for last notify") - -MACRO_CONFIG_INT(ClRenderCursorSpec, tc_cursor_in_spec, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Render your gun cursor when spectating in freeview") - -MACRO_CONFIG_INT(ClRenderNameplateSpec, tc_render_nameplate_spec, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Render nameplates when spectating") - -MACRO_CONFIG_INT(ClApplyProfileSkin, tc_profile_skin, 1, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Apply skin in profiles") -MACRO_CONFIG_INT(ClApplyProfileName, tc_profile_name, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Apply name in profiles") -MACRO_CONFIG_INT(ClApplyProfileClan, tc_profile_clan, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Apply clan in profiles") -MACRO_CONFIG_INT(ClApplyProfileFlag, tc_profile_flag, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Apply flag in profiles") -MACRO_CONFIG_INT(ClApplyProfileColors, tc_profile_colors, 1, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Apply colors in profiles") -MACRO_CONFIG_INT(ClApplyProfileEmote, tc_profile_emote, 1, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Apply emote in profiles") - -// Auto Verify -MACRO_CONFIG_INT(ClAutoVerify, tc_auto_verify, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Auto verify") - -// Rainbow -MACRO_CONFIG_INT(ClRainbow, tc_rainbow, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Turn on rainbow client side") -MACRO_CONFIG_INT(ClRainbowOthers, tc_rainbow_others, 0, 0, 1, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Turn on rainbow client side for others") -MACRO_CONFIG_INT(ClRainbowMode, tc_rainbow_mode, 1, 1, 4, CFGFLAG_CLIENT | CFGFLAG_SAVE, "Rainbow mode (1: rainbow, 2: pulse, 3: darkness)") - -// AAAAAAA -MACRO_CONFIG_INT(ClAmIFrozen, EEEfrz, 0, 0, 1, CFGFLAG_CLIENT, "") \ No newline at end of file