X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fcheats.qc;h=c1a637514275849c26b573a565e8fb499d9db86b;hb=7f6f6ddf5a60125f13cbc906c5e29faf61310d80;hp=5bd3b49a3ab8021b2d305912f8f662ae78adb990;hpb=bf20397b0c62c9de0335ef9d70d60842fde9d0b2;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/cheats.qc b/qcsrc/server/cheats.qc index 5bd3b49a3..c1a637514 100644 --- a/qcsrc/server/cheats.qc +++ b/qcsrc/server/cheats.qc @@ -66,13 +66,13 @@ float CheatsAllowed(float i, float argc, float fr) // the cheat gets passed as a // if we get here, player is not allowed to cheat. Log it. if(i) - bprint(sprintf("Player %s^7 tried to use cheat 'impulse %d'\n", self.netname, i)); + bprintf("Player %s^7 tried to use cheat 'impulse %d'\n", self.netname, i); else if(argc) - bprint(sprintf("Player %s^7 tried to use cheat '%s'\n", self.netname, argv(0))); + bprintf("Player %s^7 tried to use cheat '%s'\n", self.netname, argv(0)); else if(fr) - bprint(sprintf("Player %s^7 tried to use cheat frame %d\n", self.netname, fr)); + bprintf("Player %s^7 tried to use cheat frame %d\n", self.netname, fr); else - bprint(sprintf("Player %s^7 tried to use an unknown cheat\n", self.netname)); + bprintf("Player %s^7 tried to use an unknown cheat\n", self.netname); return 0; } @@ -140,6 +140,7 @@ float CheatImpulse(float i) self.personal.ammo_rockets = self.ammo_rockets; self.personal.ammo_nails = self.ammo_nails; self.personal.ammo_cells = self.ammo_cells; + self.personal.ammo_plasma = self.ammo_plasma; self.personal.ammo_shells = self.ammo_shells; self.personal.ammo_fuel = self.ammo_fuel; self.personal.health = self.health; @@ -197,6 +198,7 @@ float CheatImpulse(float i) self.ammo_rockets = self.personal.ammo_rockets; self.ammo_nails = self.personal.ammo_nails; self.ammo_cells = self.personal.ammo_cells; + self.ammo_plasma = self.personal.ammo_plasma; self.ammo_shells = self.personal.ammo_shells; self.ammo_fuel = self.personal.ammo_fuel; self.health = self.personal.health; @@ -264,7 +266,7 @@ float CheatImpulse(float i) e2 = spawn(); setorigin(e2, e.origin); - RadiusDamage(e2, self, 1000, 0, 128, world, 500, DEATH_CHEAT, e); + RadiusDamage(e2, self, 1000, 0, 128, world, world, 500, DEATH_CHEAT, e); remove(e2); print("404 Sportsmanship not found.\n"); @@ -1073,7 +1075,7 @@ void DragBox_Think() } else { - setmodel(self.killindicator, strcat("models/sprites/", ftos(mod(self.cnt, 10)), ".spr32")); + setmodel(self.killindicator, strcat("models/sprites/", ftos(self.cnt % 10), ".spr32")); setmodel(self.killindicator.killindicator, strcat("models/sprites/", ftos(floor(self.cnt / 10)), ".spr32")); }