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);
}
else
{
- entity e = spawn();
+ entity e = new(func_breakable);
e.model = strzone(argv(1));
e.mdl = "rocket_explode";
SetResourceExplicit(e, RES_HEALTH, 1000);
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)
{
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":