File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1462,6 +1462,25 @@ void CHLClient::PostInit()
14621462 }
14631463 }
14641464
1465+ if (iCfgVerMajor < 25 )
1466+ {
1467+ const ButtonCode_t bcTAim = gameuifuncs->GetButtonCodeForBind (" toggle_aim" );
1468+ if (bcTAim > BUTTON_CODE_NONE)
1469+ {
1470+ const char *bindBtnName = g_pInputSystem->ButtonCodeToString (bcTAim);
1471+ if (bindBtnName && bindBtnName[0 ])
1472+ {
1473+ char szCmd[128 ];
1474+
1475+ V_sprintf_safe (szCmd, " unbind \" %s\"\n " , bindBtnName);
1476+ engine->ClientCmd_Unrestricted (szCmd);
1477+
1478+ V_sprintf_safe (szCmd, " bind \" %s\" \" +toggle_aim\"\n " , bindBtnName);
1479+ engine->ClientCmd_Unrestricted (szCmd);
1480+ }
1481+ }
1482+ }
1483+
14651484 cvr_cl_neo_cfg_version_major.SetValue (NEO_VERSION_MAJOR);
14661485 cvr_cl_neo_cfg_version_minor.SetValue (NEO_VERSION_MINOR);
14671486 }
You can’t perform that action at this time.
0 commit comments