]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/cheats.qc
Merge branch 'post-0.8.2' into 'develop'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / cheats.qc
index edf15e473d97b040f35ad7c6671939a8e7875412..20a13f83e6cef5121b0c220a416fd8b756aab470 100644 (file)
@@ -310,8 +310,8 @@ float CheatCommand(entity this, int argc)
                                break;
                        }
                        sprint(this, "Usage:^3 sv_cheats 1; restart; cmd pointparticles <effectname> <position> <velocity> <countmultiplier>\n");
-                       sprint(this, "  Where 'position' is a number from 0 to 1 representing distance on the crosshair line,\n");
-                       sprint(this, "  and 'velocity' is a vector \"x y z\"\n");
+                       sprint(this, "  Where <position> is a number from 0 to 1 representing distance on the crosshair line,\n");
+                       sprint(this, "  and <velocity> is a vector \"x y z\"\n");
                        break;
                case "trailparticles":
                        IS_CHEAT(this, 0, argc, 0);
@@ -341,7 +341,7 @@ float CheatCommand(entity this, int argc)
                                }
                                else
                                {
-                                       entity e = spawn();
+                                       entity e = new(func_breakable);
                                        e.model = strzone(argv(1));
                                        e.mdl = "rocket_explode";
                                        SetResourceExplicit(e, RES_HEALTH, 1000);
@@ -352,7 +352,7 @@ float CheatCommand(entity this, int argc)
                                                e.angles = fixedvectoangles2(trace_plane_normal, v_forward);
                                                e.angles = AnglesTransform_ApplyToAngles(e.angles, '-90 0 0'); // so unrotated models work
                                        }
-                                       spawnfunc_func_breakable(e);
+                                       func_breakable_setup(e);
                                        // now, is it valid?
                                        if(f == 0)
                                        {
@@ -372,7 +372,7 @@ float CheatCommand(entity this, int argc)
                        else
                        {
                                sprint(this, "Usage:^3 sv_cheats 1; restart; cmd make <modelname> <mode>\n");
-                               sprint(this, "  where 'mode' can be 0, 1 or 2\n");
+                               sprint(this, "  where <mode> can be 0, 1 or 2\n");
                        }
                        break;
                case "penalty":