Difference between revisions of "Sprint"

From QuakeQEWiki
Jump to navigation Jump to search
(Created page with "Sprint is a quake-c engine function that prints text to an entity. Most often it is used by the default game code to print text to the player or to players connected to a multiplayer game. Defs.qc Declaration void(entity client, string s) sprint = #24; Related functions [centerprint] [bprint] [cprint]")
 
Line 1: Line 1:
Sprint is a quake-c engine function that prints text to an entity.  Most often it is used by the default game code to print text to the player or to players connected to a multiplayer game.
Sprint is a quake-c engine function that prints text to an entity.  Most often it is used by the default game code to print text to the player or to players connected to a multiplayer game.


Defs.qc Declaration
In the 2021 release the output of sprint is mirrored in the console log file
 
=== Defs.qc Declaration ===
void(entity client, string s) sprint = #24;
void(entity client, string s) sprint = #24;


=== Notes ===
On a locally hosted game sprint seems to be able to react to 4 calls per 'frame' per entity(?) - meaning that if you call sprint more than 4 times in a row some of the text will probably disappear or otherwise not make it to the screen.  Note that this has nothing to do how much text is shown, only the number of function calls.
=== Related functions ===
[[centerprint]]
[[bprint]]


Related functions
[[dprint]]
[centerprint]
[bprint]
[cprint]

Revision as of 07:56, 16 February 2022

Sprint is a quake-c engine function that prints text to an entity. Most often it is used by the default game code to print text to the player or to players connected to a multiplayer game.

In the 2021 release the output of sprint is mirrored in the console log file

Defs.qc Declaration

void(entity client, string s) sprint = #24;

Notes

On a locally hosted game sprint seems to be able to react to 4 calls per 'frame' per entity(?) - meaning that if you call sprint more than 4 times in a row some of the text will probably disappear or otherwise not make it to the screen. Note that this has nothing to do how much text is shown, only the number of function calls.

Related functions

centerprint

bprint

dprint