QuakeServer.Cheats (quake_server v0.1.0)

Copy Markdown View Source

FTE's player cheat commands, for the host's player (entity 1), allowed as FTE's SV_MayCheat allows them: with sv_cheats set, or always on a single-player server.

  • setpos/2 (Cmd_SetPos_f) — with no position, prints the player's place as a setpos x y z pitch yaw roll line (origin and view angles); with x y z, moves the player there, stopped and in noclip (printing noclip on when it was off), and with x y z pitch yaw roll also turns the player (fixangle set)
  • noclip/1 (Cmd_Noclip_f) — noclip on (MOVETYPE_NOCLIP, SOLID_TRIGGER) or off (MOVETYPE_WALK, SOLID_SLIDEBOX, or SOLID_NOT when dead), printing noclip ON or noclip OFF

Prints reach the player as svc_print at level 2 (QuakeServer.Outbox) and the server's events.

server = QuakeServer.Cheats.setpos(server, ["-1250", "-718", "40"])

Summary

Functions

Run FTE's noclip for the player.

Run FTE's setpos with the command's arguments (the words after setpos).

Functions

noclip(server)

Run FTE's noclip for the player.

setpos(server, args)

Run FTE's setpos with the command's arguments (the words after setpos).