void(entity e, vector min, vector max) setsize = #4;
void() break_to_debugger = #6;
-float() random = #7;
+float() random = #7; // Returns a random number > 0 and < 1
void(entity e, float chan, string samp, float volume, float atten, ...) sound = #8;
vector(vector v) normalize = #9;
void(string e) error = #10;
//description:
//Adds a new console command which will take priority over a previous command of the same name (including engine commands) and in CSQC is removed when the VM shuts down. This will call CSQC_ConsoleCommand(string command) or ConsoleCmd(string command) in SVQC. Return value should be true if QC handled the command, otherwise return false to have the engine handle it.
-
//DP_QC_FINDBOX
//idea: Mario
//darkplaces implementation: bones_was_here
//description:
//Returns a chain of entities that are touching a box (a simpler findradius); supports DP_QC_FINDCHAIN_TOFIELD
+//DP_QC_NUDGEOUTOFSOLID
+//idea: LadyHavoc, bones_was_here
+//darkplaces implementation: LadyHavoc, bones_was_here
+//builtin definitions:
+float(entity ent) nudgeoutofsolid = #567;
+//cvar definitions:
+//sv_gameplayfix_nudgeoutofsolid_separation
+//description:
+//Attempts to move a stuck entity out of solid brushes, returning 1 if successful, 0 if it remains stuck, -1 if it wasn't stuck.
+//Note: makes only one tracebox call if the entity isn't stuck, so don't call tracebox just to see if you should call nudgeoutofsolid.
+
+
// bones_was_here: commented as QC wants to use this but we still need to support div0-stable:
//float(float dividend, float divisor) mod = #245;
float vectoyaw(vector v) = #10;
vector vectoangles(vector v) = #11;
-float random(void) = #12;
+float random(void) = #12; // Returns a random number > 0 and < 1
void cmd(string command, ...) = #13;
void(entity e, vector min, vector max) setsize = #4;
// #5 was removed
void() break_to_debugger = #6;
-float() random = #7; // returns 0 - 1
+float() random = #7; // Returns a random number > 0 and < 1
void(entity e, float chan, string samp, float volume, ...) sound = #8;
vector(vector v) normalize = #9;
void(string e, ...) error = #10;