QuakeServer.Requests (quake_server v0.1.0)

Copy Markdown View Source

A client program's sendevent arriving at the server, as FTE handles one (its qcrequest): the program's function CSEv_<name>_<types> runs with self the player and the values in its parameters, types being one letter a value — f float, v vector, i integer, s string, e entity. Without values the function is CSEv_<name>_ when the name holds an underscore and CSEv_<name> otherwise. A name the program has no function for prints that the request is not supported.

server = QuakeServer.Requests.run(server, 1, "PlayerSwitchWeapon", [{"i", 3}])

An entity is given by its number on the server; one past the last entity is the world.

Summary

Functions

Run the request name with values ({type, value} pairs) for player entity.

Functions

run(server, entity, name, values)

Run the request name with values ({type, value} pairs) for player entity.