Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
Editing EXT CSQC System Globals Fields and Builtins List
From Quake Wiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 36: | Line 36: | ||
void() CSQC_Init; | void() CSQC_Init; | ||
void() CSQC_Shutdown; | void() CSQC_Shutdown; | ||
− | float(float f, float t | + | float(float f, float t) CSQC_InputEvent; |
void() CSQC_UpdateView; | void() CSQC_UpdateView; | ||
float(string s) CSQC_ConsoleCommand; | float(string s) CSQC_ConsoleCommand; | ||
Line 104: | Line 104: | ||
</pre> | </pre> | ||
==Builtins== | ==Builtins== | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<pre> | <pre> | ||
// core functions from standard quake | // core functions from standard quake | ||
Line 147: | Line 126: | ||
void(string s) precache_sound = #19; | void(string s) precache_sound = #19; | ||
void(string s) precache_model = #20; | void(string s) precache_model = #20; | ||
+ | void(entity client, string s, ...) stuffcmd = #21; | ||
entity(vector org, float rad) findradius = #22; | entity(vector org, float rad) findradius = #22; | ||
Line 184: | Line 164: | ||
string(string s) precache_sound2 = #76; | string(string s) precache_sound2 = #76; | ||
string(string s) precache_file2 = #77; | string(string s) precache_file2 = #77; | ||
− | |||
− | |||
// core ext_csqc functions | // core ext_csqc functions | ||
Line 203: | Line 181: | ||
void(float width, vector pos1, vector pos2, float flag) drawline = #315; | void(float width, vector pos1, vector pos2, float flag) drawline = #315; | ||
float(string name) iscachedpic = #316; | float(string name) iscachedpic = #316; | ||
− | string(string name) precache_pic = #317; | + | string(string name, float trywad) precache_pic = #317; |
vector(string picname) draw_getimagesize = #318; | vector(string picname) draw_getimagesize = #318; | ||
void(string name) freepic = #319; | void(string name) freepic = #319; | ||
Line 250: | Line 228: | ||
float() ReadFloat = #367; | float() ReadFloat = #367; | ||
</pre> | </pre> | ||
− | |||
==Constants== | ==Constants== | ||
<pre> | <pre> | ||
Line 276: | Line 253: | ||
float VF_MIN_Y = 3; //(float) | float VF_MIN_Y = 3; //(float) | ||
float VF_SIZE = 4; //(vector) (viewport size) | float VF_SIZE = 4; //(vector) (viewport size) | ||
− | float | + | float VF_SIZE_Y = 5; //(float) |
− | float | + | float VF_SIZE_X = 6; //(float) |
float VF_VIEWPORT = 7; //(vector, vector) | float VF_VIEWPORT = 7; //(vector, vector) | ||
float VF_FOV = 8; //(vector) | float VF_FOV = 8; //(vector) | ||
Line 319: | Line 296: | ||
float STAT_MONSTERS = 14; // bumped by svc_killedmonster | float STAT_MONSTERS = 14; // bumped by svc_killedmonster | ||
float STAT_ITEMS = 15; // self.items bitmask from server | float STAT_ITEMS = 15; // self.items bitmask from server | ||
− | |||
// buttons for input_buttons | // buttons for input_buttons | ||
Line 330: | Line 306: | ||
float BUTTON_7 = 64; | float BUTTON_7 = 64; | ||
float BUTTON_8 = 128; | float BUTTON_8 = 128; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
− |