X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fcheats.qc;h=3506aa7b799b9dc254cac14ac7ad09c71c4eaec6;hb=7d7394695b35387453a0c5546567c0421dacb925;hp=eb0b95e078ec6d2a1ca47cc411291fc6615cc3fb;hpb=d9d13627b0c82a96dab08c2f3cd2d966d5425ea8;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/cheats.qc b/qcsrc/server/cheats.qc index eb0b95e07..3506aa7b7 100644 --- a/qcsrc/server/cheats.qc +++ b/qcsrc/server/cheats.qc @@ -1,43 +1,32 @@ #include "cheats.qh" -#include -#include -#include -#include -#include -#include - -#include "damage.qh" -#include "clientkill.qh" -#include "player.qh" -#include "race.qh" -#include "../common/mapobjects/teleporters.qh" - -#include - #include "weapons/tracing.qh" - -#include "../common/constants.qh" -#include "../common/deathtypes/all.qh" -#include "../common/util.qh" - -#include - -#include "../common/monsters/_mod.qh" - +#include +#include +#include #include - -#include - -#include "../common/mapobjects/subs.qh" +#include +#include +#include #include - -#include "../common/mapobjects/func/breakable.qh" - -#include "../lib/csqcmodel/sv_model.qh" - -#include "../lib/warpzone/anglestransform.qh" -#include "../lib/warpzone/util_server.qh" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #ifdef NOCHEATS @@ -84,13 +73,13 @@ float CheatsAllowed(entity this, float i, int argc, float fr) // the cheat gets // if we get here, player is not allowed to cheat. Log it. if(i) - bprintf("Player %s^7 tried to use cheat 'impulse %d'\n", playername(this, false), i); + bprintf("Player %s^7 tried to use cheat 'impulse %d'\n", playername(this.netname, this.team, false), i); else if(argc) - bprintf("Player %s^7 tried to use cheat '%s'\n", playername(this, false), argv(0)); + bprintf("Player %s^7 tried to use cheat '%s'\n", playername(this.netname, this.team, false), argv(0)); else if(fr) - bprintf("Player %s^7 tried to use cheat frame %d\n", playername(this, false), fr); + bprintf("Player %s^7 tried to use cheat frame %d\n", playername(this.netname, this.team, false), fr); else - bprintf("Player %s^7 tried to use an unknown cheat\n", playername(this, false)); + bprintf("Player %s^7 tried to use an unknown cheat\n", playername(this.netname, this.team, false)); return 0; }