From: LegendaryGuard Date: Sat, 19 Jun 2021 17:41:34 +0000 (+0200) Subject: Remove country code due to Merge Request discussion X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e1c88c2789cb841e91a786f93e62ebdfb5a397cf;p=xonotic%2Fxonotic-data.pk3dir.git Remove country code due to Merge Request discussion --- diff --git a/qcsrc/client/main.qh b/qcsrc/client/main.qh index 622bf3e04..a66fa0966 100644 --- a/qcsrc/client/main.qh +++ b/qcsrc/client/main.qh @@ -162,7 +162,6 @@ string GetSpeedUnit(int speed_unit); .int team; .int team_size; -.int countrycode; int binddb; diff --git a/qcsrc/common/ent_cs.qc b/qcsrc/common/ent_cs.qc index c4d24ed1f..a3691386b 100644 --- a/qcsrc/common/ent_cs.qc +++ b/qcsrc/common/ent_cs.qc @@ -152,10 +152,6 @@ ENTCS_PROP(FRAGS, true, frags, frags, ENTCS_SET_NORMAL, { WriteShort(chan, ent.frags); }, { ent.frags = ReadShort(); }) -ENTCS_PROP(COUNTRYCODE, true, countrycode, countrycode, ENTCS_SET_NORMAL, - { WriteByte(chan, ent.countrycode); }, - { ent.countrycode = ReadByte(); }) - // use sv_solid to avoid changing solidity state of entcs entities ENTCS_PROP(SOLID, true, sv_solid, solid, ENTCS_SET_NORMAL, { WriteByte(chan, ent.sv_solid); }, diff --git a/qcsrc/server/command/sv_cmd.qc b/qcsrc/server/command/sv_cmd.qc index e20b42d85..6ada10451 100644 --- a/qcsrc/server/command/sv_cmd.qc +++ b/qcsrc/server/command/sv_cmd.qc @@ -972,39 +972,6 @@ void GameCommand_make_mapinfo(int request) } } -void GameCommand_setflag(int request, int argc) -{ - switch (request) - { - case CMD_REQUEST_COMMAND: - { - entity client; - float accepted; - - client = GetFilteredEntity(argv(1)); - accepted = VerifyClientEntity(client, false, false); - - if (accepted <= 0) - { - LOG_INFO("^1ERROR^7: Couldn't set country flag"); - LOG_HELP("Usage:^3 sv_cmd setflag #client_id countrycode[0-249]"); - return; - } - - client.countrycode = stof(argv(2)); - LOG_INFO("^2SUCCESS^7: Country flag set!"); - return; - } - default: - LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0)); - case CMD_REQUEST_USAGE: - { - LOG_HELP("Usage:^3 sv_cmd setflag #client_id countrycode[0-249]"); - return; - } - } -} - void GameCommand_moveplayer(int request, int argc) { switch (request) @@ -1655,8 +1622,6 @@ void GameCommand_(int request) // ================================== // Do not hard code aliases for these, instead create them in commands.cfg... also: keep in alphabetical order, please ;) -SERVER_COMMAND(setflag, "Set client flag") { GameCommand_setflag(request, arguments); } - SERVER_COMMAND(adminmsg, "Send an admin message to a client directly") { GameCommand_adminmsg(request, arguments); } SERVER_COMMAND(allready, "Restart the server and reset the players") { GameCommand_allready(request); } SERVER_COMMAND(allspec, "Force all players to spectate") { GameCommand_allspec(request, arguments); }