IS_CHEAT(this, 0, argc, 0);
if(argc == 5)
{
- // arguments:
- // effectname
- // origin (0..1, on crosshair line)
- // velocity
- // howmany
f = stof(argv(2));
crosshair_trace(this);
start = (1-f) * this.origin + f * trace_endpos;
DID_CHEAT();
break;
}
- sprint(this, "Usage: sv_cheats 1; restart; cmd pointparticles effectname position(0..1) velocityvector multiplier\n");
+ 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");
break;
case "trailparticles":
IS_CHEAT(this, 0, argc, 0);
DID_CHEAT();
break;
}
- sprint(this, "Usage: sv_cheats 1; restart; cmd trailparticles effectname\n");
+ sprint(this, "Usage: sv_cheats 1; restart; cmd trailparticles <effectname>\n");
break;
case "make":
IS_CHEAT(this, 0, argc, 0);
if(argc == 3)
{
- // arguments:
- // modelname mode
f = stof(argv(2));
W_SetupShot(this, weaponentities[0], false, false, SND_Null, CH_WEAPON_A, 0, 0);
traceline(w_shotorg, w_shotorg + w_shotdir * 2048, MOVE_NORMAL, this);
}
}
else
- sprint(this, "Usage: sv_cheats 1; restart; cmd make models/... 0/1/2\n");
+ {
+ sprint(this, "Usage:^3 sv_cheats 1; restart; cmd make <modelname> <mode>\n");
+ sprint(this, " where 'mode' can be 0, 1 or 2\n");
+ }
break;
case "penalty":
IS_CHEAT(this, 0, argc, 0);
DID_CHEAT();
break;
}
- sprint(this, "Usage: sv_cheats 1; restart; cmd penalty 5.0 AHAHAHAHAHAHAH))\n");
+ sprint(this, "Usage:^3 sv_cheats 1; restart; cmd penalty <duration> <reason>))\n");
break;
case "dragbox_spawn": {
IS_CHEAT(this, 0, argc, 0);
DID_CHEAT();
break;
}
- sprint(this, "Usage: sv_cheats 1; restart; cmd dragbox_setcnt cnt\n");
+ sprint(this, "Usage:^3 sv_cheats 1; restart; cmd dragbox_setcnt <cnt>\n");
break;
case "drag_save":
IS_CHEAT(this, 0, argc, 0);
DID_CHEAT();
break;
}
- sprint(this, "Usage: sv_cheats 1; restart; cmd dragbox_save filename\n");
+ sprint(this, "Usage:^3 sv_cheats 1; restart; cmd dragbox_save <filename>\n");
break;
case "drag_saveraceent":
IS_CHEAT(this, 0, argc, 0);
DID_CHEAT();
break;
}
- sprint(this, "Usage: sv_cheats 1; restart; cmd dragbox_save filename\n");
+ sprint(this, "Usage:^3 sv_cheats 1; restart; cmd dragbox_save <filename>\n");
break;
case "drag_clear":
IS_CHEAT(this, 0, argc, 0);