mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
Add cl_old_gun_position
This commit is contained in:
parent
26cb3030c3
commit
a79b6079fa
|
@ -247,5 +247,6 @@ MACRO_CONFIG_INT(ClShowOtherHookColl, cl_show_other_hook_coll, 1, 0, 1, CFGFLAG_
|
||||||
MACRO_CONFIG_INT(ClChatTeamColors, cl_chat_teamcolors, 0, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Show names in chat in team colors")
|
MACRO_CONFIG_INT(ClChatTeamColors, cl_chat_teamcolors, 0, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Show names in chat in team colors")
|
||||||
MACRO_CONFIG_INT(ClShowDirection, cl_show_direction, 1, 0, 1, CFGFLAG_SAVE|CFGFLAG_CLIENT, "Show tee direction")
|
MACRO_CONFIG_INT(ClShowDirection, cl_show_direction, 1, 0, 1, CFGFLAG_SAVE|CFGFLAG_CLIENT, "Show tee direction")
|
||||||
MACRO_CONFIG_INT(ClAutoUpdate, cl_auto_update, 1, 0, 1, CFGFLAG_SAVE|CFGFLAG_CLIENT, "Auto-Update")
|
MACRO_CONFIG_INT(ClAutoUpdate, cl_auto_update, 1, 0, 1, CFGFLAG_SAVE|CFGFLAG_CLIENT, "Auto-Update")
|
||||||
|
MACRO_CONFIG_INT(ClOldGunPosition, cl_old_gun_position, 0, 0, 1, CFGFLAG_SAVE|CFGFLAG_CLIENT, "Tees hold gun a bit higher like in TW 0.6.1 and older")
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1268,6 +1268,12 @@ void CMenus::RenderSettingsDDRace(CUIRect MainView)
|
||||||
g_Config.m_ClShowNinja ^= 1;
|
g_Config.m_ClShowNinja ^= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Right.HSplitTop(20.0f, &Button, &Right);
|
||||||
|
if(DoButton_CheckBox(&g_Config.m_ClOldGunPosition, Localize("Old gun position"), g_Config.m_ClOldGunPosition, &Button))
|
||||||
|
{
|
||||||
|
g_Config.m_ClOldGunPosition ^= 1;
|
||||||
|
}
|
||||||
|
|
||||||
Left.HSplitTop(20.0f, &Button, &Left);
|
Left.HSplitTop(20.0f, &Button, &Left);
|
||||||
if(DoButton_CheckBox(&g_Config.m_ClShowOtherHookColl, Localize("Show other players' hook collision lines"), g_Config.m_ClShowOtherHookColl, &Button))
|
if(DoButton_CheckBox(&g_Config.m_ClShowOtherHookColl, Localize("Show other players' hook collision lines"), g_Config.m_ClShowOtherHookColl, &Button))
|
||||||
{
|
{
|
||||||
|
@ -1280,8 +1286,6 @@ void CMenus::RenderSettingsDDRace(CUIRect MainView)
|
||||||
g_Config.m_ClShowDirection ^= 1;
|
g_Config.m_ClShowDirection ^= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
Right.HSplitTop(20.0f, &Button, &Right);
|
|
||||||
|
|
||||||
CUIRect aRects[2];
|
CUIRect aRects[2];
|
||||||
Left.HSplitTop(5.0f, &Button, &Left);
|
Left.HSplitTop(5.0f, &Button, &Left);
|
||||||
Right.HSplitTop(5.0f, &Button, &Right);
|
Right.HSplitTop(5.0f, &Button, &Right);
|
||||||
|
|
|
@ -707,6 +707,8 @@ void CPlayers::RenderPlayer(
|
||||||
Recoil = sinf(a*pi);
|
Recoil = sinf(a*pi);
|
||||||
p = Position + Dir * g_pData->m_Weapons.m_aId[iw].m_Offsetx - Dir*Recoil*10.0f;
|
p = Position + Dir * g_pData->m_Weapons.m_aId[iw].m_Offsetx - Dir*Recoil*10.0f;
|
||||||
p.y += g_pData->m_Weapons.m_aId[iw].m_Offsety;
|
p.y += g_pData->m_Weapons.m_aId[iw].m_Offsety;
|
||||||
|
if (Player.m_Weapon == WEAPON_GUN && g_Config.m_ClOldGunPosition)
|
||||||
|
p.y -= 8;
|
||||||
RenderTools()->DrawSprite(p.x, p.y, g_pData->m_Weapons.m_aId[iw].m_VisualSize);
|
RenderTools()->DrawSprite(p.x, p.y, g_pData->m_Weapons.m_aId[iw].m_VisualSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue