X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fmain.qc;h=39201fd72e6a90501281cd6f46e5041e9b1c41f5;hb=9a04df193299873a8133651e4579dbfc2253b717;hp=72ee803fa40b0331a930607d0b398f464fac11aa;hpb=e824d4612617171b932bba08f1a5a50500d4a603;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/main.qc b/qcsrc/client/main.qc index 72ee803fa..39201fd72 100644 --- a/qcsrc/client/main.qc +++ b/qcsrc/client/main.qc @@ -11,6 +11,7 @@ #include "commands/cl_cmd.qh" #include "mapvoting.qh" #include +#include "hud/panel/centerprint.qh" #include "hud/panel/scoreboard.qh" #include "hud/panel/quickmenu.qh" #include "shownames.qh" @@ -138,6 +139,8 @@ void CSQC_Init() registercvar("cl_multijump", "-1"); + registercvar("cl_dodging", "0"); + registercvar("cl_spawn_near_teammate", "1"); registercvar("cl_weapon_switch_reload", "1"); @@ -918,11 +921,11 @@ void CSQC_Parse_Print(string strMessage) print(ColorTranslateRGB(strMessage)); } -// CSQC_Parse_CenterPrint : Provides the centerprint_hud string in the first parameter that the server provided. +// CSQC_Parse_CenterPrint : Provides the centerprint_AddStandard string in the first parameter that the server provided. void CSQC_Parse_CenterPrint(string strMessage) { if (autocvar_developer_csqcentities) LOG_INFOF("CSQC_Parse_CenterPrint(\"%s\")", strMessage); - centerprint_hud(strMessage); + centerprint_AddStandard(strMessage); } // CSQC_Parse_TempEntity : Handles all temporary entity network data in the CSQC layer. @@ -1226,7 +1229,7 @@ NET_HANDLE(TE_CSQC_PINGPLREPORT, bool isNew) NET_HANDLE(TE_CSQC_WEAPONCOMPLAIN, bool isNew) { int weapon_id = ReadByte(); - complain_weapon = Weapons_from(weapon_id); + complain_weapon = REGISTRY_GET(Weapons, weapon_id); complain_weapon_type = ReadByte(); return = true;