]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Convert CLVM builtins 315-520 to new argument style
authorMario <zacjardine@y7mail.com>
Tue, 1 Dec 2020 15:34:50 +0000 (01:34 +1000)
committerMario <zacjardine@y7mail.com>
Tue, 1 Dec 2020 15:34:50 +0000 (01:34 +1000)
clvm_cmds.c

index 8010fb5f48f2047aff19b716a7265613ad551be3..b82a365bfda973daf1f39103d752966a88abaad9 100644 (file)
@@ -5254,59 +5254,59 @@ NULL,                                                   // #299
 NULL,                                                  // #312
 NULL,                                                  // #313
 NULL,                                                  // #314
-{VM_drawline},                                 // #315 void(float width, vector pos1, vector pos2, float flag) drawline (EXT_CSQC)
-{VM_iscachedpic},                                      // #316 float(string name) iscachedpic (EXT_CSQC)
-{VM_precache_pic},                             // #317 string(string name, float trywad) precache_pic (EXT_CSQC)
-{VM_getimagesize},                             // #318 vector(string picname) draw_getimagesize (EXT_CSQC)
-{VM_freepic},                                          // #319 void(string name) freepic (EXT_CSQC)
-{VM_drawcharacter},                            // #320 float(vector position, float character, vector scale, vector rgb, float alpha, float flag) drawcharacter (EXT_CSQC)
-{VM_drawstring},                                       // #321 float(vector position, string text, vector scale, vector rgb, float alpha[, float flag]) drawstring (EXT_CSQC, DP_CSQC)
-{VM_drawpic},                                          // #322 float(vector position, string pic, vector size, vector rgb, float alpha[, float flag]) drawpic (EXT_CSQC)
-{VM_drawfill},                                 // #323 float(vector position, vector size, vector rgb, float alpha, float flag) drawfill (EXT_CSQC)
-{VM_drawsetcliparea},                          // #324 void(float x, float y, float width, float height) drawsetcliparea
-{VM_drawresetcliparea},                        // #325 void(void) drawresetcliparea
-{VM_drawcolorcodedstring},             // #326 float drawcolorcodedstring(vector position, string text, vector scale, vector rgb, float alpha, float flag) (EXT_CSQC)
-{VM_stringwidth},                                      // #327 // FIXME is this okay?
-{VM_drawsubpic},                                       // #328 // FIXME is this okay?
-{VM_drawrotpic},                                       // #329 // FIXME is this okay?
-{VM_CL_getstatf},                                      // #330 float(float stnum) getstatf (EXT_CSQC)
-{VM_CL_getstati},                                      // #331 float(float stnum) getstati (EXT_CSQC)
-{VM_CL_getstats},                                      // #332 string(float firststnum) getstats (EXT_CSQC)
-{VM_CL_setmodelindex},                 // #333 void(entity e, float mdlindex) setmodelindex (EXT_CSQC)
-{VM_CL_modelnameforindex},             // #334 string(float mdlindex) modelnameforindex (EXT_CSQC)
-{VM_CL_particleeffectnum},             // #335 float(string effectname) particleeffectnum (EXT_CSQC)
-{VM_CL_trailparticles},                        // #336 void(entity ent, float effectnum, vector start, vector end) trailparticles (EXT_CSQC)
-{VM_CL_pointparticles},                        // #337 void(float effectnum, vector origin [, vector dir, float count]) pointparticles (EXT_CSQC)
-{VM_centerprint},                                      // #338 void(string s, ...) centerprint (EXT_CSQC)
-{VM_print},                                            // #339 void(string s, ...) print (EXT_CSQC, DP_SV_PRINT)
-{VM_keynumtostring},                           // #340 string(float keynum) keynumtostring (EXT_CSQC)
-{VM_stringtokeynum},                           // #341 float(string keyname) stringtokeynum (EXT_CSQC)
-{VM_getkeybind},                                       // #342 string(float keynum[, float bindmap]) getkeybind (EXT_CSQC)
-{VM_CL_setcursormode},                 // #343 void(float usecursor) setcursormode (DP_CSQC)
-{VM_CL_getmousepos},                           // #344 vector() getmousepos (DP_CSQC)
-{VM_CL_getinputstate},                 // #345 float(float framenum) getinputstate (EXT_CSQC)
-{VM_CL_setsensitivityscale},           // #346 void(float sens) setsensitivityscale (EXT_CSQC)
-{VM_CL_runplayerphysics},                      // #347 void() runstandardplayerphysics (EXT_CSQC)
-{VM_CL_getplayerkey},                          // #348 string(float playernum, string keyname) getplayerkeyvalue (EXT_CSQC)
-{VM_CL_isdemo},                                        // #349 float() isdemo (EXT_CSQC)
-{VM_isserver},                                 // #350 float() isserver (EXT_CSQC)
-{VM_CL_setlistener},                           // #351 void(vector origin, vector forward, vector right, vector up) SetListener (EXT_CSQC)
-{VM_CL_registercmd},                           // #352 void(string cmdname) registercommand (EXT_CSQC)
-{VM_wasfreed},                                 // #353 float(entity ent) wasfreed (EXT_CSQC) (should be availabe on server too)
-{VM_CL_serverkey},                             // #354 string(string key) serverkey (EXT_CSQC)
-{VM_CL_videoplaying},                          // #355
-{VM_findfont},                                 // #356 float(string fontname) loadfont (DP_GFX_FONTS)
-{VM_loadfont},                                 // #357 float(string fontname, string fontmaps, string sizes, float slot) loadfont (DP_GFX_FONTS)
-{VM_CL_loadcubemap},                           // #358 void(string cubemapname) loadcubemap (DP_GFX_)
+{VM_drawline, 6, 6},                                   // #315 void(float width, vector pos1, vector pos2, float flag) drawline (EXT_CSQC)
+{VM_iscachedpic, 1, 1},                                        // #316 float(string name) iscachedpic (EXT_CSQC)
+{VM_precache_pic, 1, 2},                               // #317 string(string name, float trywad) precache_pic (EXT_CSQC)
+{VM_getimagesize, 1, 1},                               // #318 vector(string picname) draw_getimagesize (EXT_CSQC)
+{VM_freepic, 1, 1},                                            // #319 void(string name) freepic (EXT_CSQC)
+{VM_drawcharacter, 6, 6},                              // #320 float(vector position, float character, vector scale, vector rgb, float alpha, float flag) drawcharacter (EXT_CSQC)
+{VM_drawstring, 5, 6},                                 // #321 float(vector position, string text, vector scale, vector rgb, float alpha[, float flag]) drawstring (EXT_CSQC, DP_CSQC)
+{VM_drawpic, 5, 6},                                            // #322 float(vector position, string pic, vector size, vector rgb, float alpha[, float flag]) drawpic (EXT_CSQC)
+{VM_drawfill, 5, 5},                                   // #323 float(vector position, vector size, vector rgb, float alpha, float flag) drawfill (EXT_CSQC)
+{VM_drawsetcliparea, 4, 4},                            // #324 void(float x, float y, float width, float height) drawsetcliparea
+{VM_drawresetcliparea, 0, 0},                  // #325 void(void) drawresetcliparea
+{VM_drawcolorcodedstring, 5, 6},               // #326 float drawcolorcodedstring(vector position, string text, vector scale, vector rgb, float alpha, float flag) (EXT_CSQC)
+{VM_stringwidth, 2, 3},                                        // #327 // FIXME is this okay?
+{VM_drawsubpic, 8, 8},                                 // #328 // FIXME is this okay?
+{VM_drawrotpic, 8, 8},                                 // #329 // FIXME is this okay?
+{VM_CL_getstatf, 1, 1},                                        // #330 float(float stnum) getstatf (EXT_CSQC)
+{VM_CL_getstati, 1, 3},                                        // #331 float(float stnum) getstati (EXT_CSQC)
+{VM_CL_getstats, 1, 1},                                        // #332 string(float firststnum) getstats (EXT_CSQC)
+{VM_CL_setmodelindex, 2, 2},                   // #333 void(entity e, float mdlindex) setmodelindex (EXT_CSQC)
+{VM_CL_modelnameforindex, 1, 1},               // #334 string(float mdlindex) modelnameforindex (EXT_CSQC)
+{VM_CL_particleeffectnum, 1, 1},               // #335 float(string effectname) particleeffectnum (EXT_CSQC)
+{VM_CL_trailparticles, 4, 5},                  // #336 void(entity ent, float effectnum, vector start, vector end) trailparticles (EXT_CSQC)
+{VM_CL_pointparticles, 4, 5},                  // #337 void(float effectnum, vector origin [, vector dir, float count]) pointparticles (EXT_CSQC)
+{VM_centerprint, 1, 8},                                        // #338 void(string s, ...) centerprint (EXT_CSQC)
+{VM_print, 1, -1},                                             // #339 void(string s, ...) print (EXT_CSQC, DP_SV_PRINT)
+{VM_keynumtostring, 1, 1},                             // #340 string(float keynum) keynumtostring (EXT_CSQC)
+{VM_stringtokeynum, 1, 1},                             // #341 float(string keyname) stringtokeynum (EXT_CSQC)
+{VM_getkeybind, 1, 2},                                 // #342 string(float keynum[, float bindmap]) getkeybind (EXT_CSQC)
+{VM_CL_setcursormode, 1, 1},                   // #343 void(float usecursor) setcursormode (DP_CSQC)
+{VM_CL_getmousepos, 0, 0},                             // #344 vector() getmousepos (DP_CSQC)
+{VM_CL_getinputstate, 1, 1},                   // #345 float(float framenum) getinputstate (EXT_CSQC)
+{VM_CL_setsensitivityscale, 1, 1},             // #346 void(float sens) setsensitivityscale (EXT_CSQC)
+{VM_CL_runplayerphysics, 0, 1},                        // #347 void() runstandardplayerphysics (EXT_CSQC)
+{VM_CL_getplayerkey, 2, 2},                            // #348 string(float playernum, string keyname) getplayerkeyvalue (EXT_CSQC)
+{VM_CL_isdemo, 0, 0},                                  // #349 float() isdemo (EXT_CSQC)
+{VM_isserver, 0, 0},                                   // #350 float() isserver (EXT_CSQC)
+{VM_CL_setlistener, 4, 4},                             // #351 void(vector origin, vector forward, vector right, vector up) SetListener (EXT_CSQC)
+{VM_CL_registercmd, 1, 1},                             // #352 void(string cmdname) registercommand (EXT_CSQC)
+{VM_wasfreed, 1, 1},                                   // #353 float(entity ent) wasfreed (EXT_CSQC) (should be availabe on server too)
+{VM_CL_serverkey, 1, 1},                               // #354 string(string key) serverkey (EXT_CSQC)
+{VM_CL_videoplaying, 0, 0},                            // #355
+{VM_findfont, 1, 1},                                   // #356 float(string fontname) loadfont (DP_GFX_FONTS)
+{VM_loadfont, 3, 6},                                   // #357 float(string fontname, string fontmaps, string sizes, float slot) loadfont (DP_GFX_FONTS)
+{VM_CL_loadcubemap, 1, 1},                             // #358 void(string cubemapname) loadcubemap (DP_GFX_)
 NULL,                                                  // #359
-{VM_CL_ReadByte},                                      // #360 float() readbyte (EXT_CSQC)
-{VM_CL_ReadChar},                                      // #361 float() readchar (EXT_CSQC)
-{VM_CL_ReadShort},                             // #362 float() readshort (EXT_CSQC)
-{VM_CL_ReadLong},                                      // #363 float() readlong (EXT_CSQC)
-{VM_CL_ReadCoord},                             // #364 float() readcoord (EXT_CSQC)
-{VM_CL_ReadAngle},                             // #365 float() readangle (EXT_CSQC)
-{VM_CL_ReadString},                            // #366 string() readstring (EXT_CSQC)
-{VM_CL_ReadFloat},                             // #367 float() readfloat (EXT_CSQC)
+{VM_CL_ReadByte, 0, 0},                                        // #360 float() readbyte (EXT_CSQC)
+{VM_CL_ReadChar, 0, 0},                                        // #361 float() readchar (EXT_CSQC)
+{VM_CL_ReadShort, 0, 0},                               // #362 float() readshort (EXT_CSQC)
+{VM_CL_ReadLong, 0, 0},                                        // #363 float() readlong (EXT_CSQC)
+{VM_CL_ReadCoord, 0, 0},                               // #364 float() readcoord (EXT_CSQC)
+{VM_CL_ReadAngle, 0, 0},                               // #365 float() readangle (EXT_CSQC)
+{VM_CL_ReadString, 0, 0},                              // #366 string() readstring (EXT_CSQC)
+{VM_CL_ReadFloat, 0, 0},                               // #367 float() readfloat (EXT_CSQC)
 NULL,                                          // #368
 NULL,                                                  // #369
 NULL,                                                  // #370
@@ -5340,127 +5340,127 @@ NULL,                                                 // #397
 NULL,                                                  // #398
 NULL,                                                  // #399
 // LadyHavoc's range #400-#499
-{VM_CL_copyentity},                            // #400 void(entity from, entity to) copyentity (DP_QC_COPYENTITY)
+{VM_CL_copyentity, 2, 2},                              // #400 void(entity from, entity to) copyentity (DP_QC_COPYENTITY)
 NULL,                                                  // #401 void(entity ent, float colors) setcolor (DP_QC_SETCOLOR)
-{VM_findchain},                                        // #402 entity(.string fld, string match) findchain (DP_QC_FINDCHAIN)
-{VM_findchainfloat},                           // #403 entity(.float fld, float match) findchainfloat (DP_QC_FINDCHAINFLOAT)
-{VM_CL_effect},                                        // #404 void(vector org, string modelname, float startframe, float endframe, float framerate) effect (DP_SV_EFFECT)
-{VM_CL_te_blood},                                      // #405 void(vector org, vector velocity, float howmany) te_blood (DP_TE_BLOOD)
-{VM_CL_te_bloodshower},                        // #406 void(vector mincorner, vector maxcorner, float explosionspeed, float howmany) te_bloodshower (DP_TE_BLOODSHOWER)
-{VM_CL_te_explosionrgb},                       // #407 void(vector org, vector color) te_explosionrgb (DP_TE_EXPLOSIONRGB)
-{VM_CL_te_particlecube},                       // #408 void(vector mincorner, vector maxcorner, vector vel, float howmany, float color, float gravityflag, float randomveljitter) te_particlecube (DP_TE_PARTICLECUBE)
-{VM_CL_te_particlerain},                       // #409 void(vector mincorner, vector maxcorner, vector vel, float howmany, float color) te_particlerain (DP_TE_PARTICLERAIN)
-{VM_CL_te_particlesnow},                       // #410 void(vector mincorner, vector maxcorner, vector vel, float howmany, float color) te_particlesnow (DP_TE_PARTICLESNOW)
-{VM_CL_te_spark},                                      // #411 void(vector org, vector vel, float howmany) te_spark (DP_TE_SPARK)
-{VM_CL_te_gunshotquad},                        // #412 void(vector org) te_gunshotquad (DP_QUADEFFECTS1)
-{VM_CL_te_spikequad},                          // #413 void(vector org) te_spikequad (DP_QUADEFFECTS1)
-{VM_CL_te_superspikequad},             // #414 void(vector org) te_superspikequad (DP_QUADEFFECTS1)
-{VM_CL_te_explosionquad},                      // #415 void(vector org) te_explosionquad (DP_QUADEFFECTS1)
-{VM_CL_te_smallflash},                 // #416 void(vector org) te_smallflash (DP_TE_SMALLFLASH)
-{VM_CL_te_customflash},                        // #417 void(vector org, float radius, float lifetime, vector color) te_customflash (DP_TE_CUSTOMFLASH)
-{VM_CL_te_gunshot},                            // #418 void(vector org) te_gunshot (DP_TE_STANDARDEFFECTBUILTINS)
-{VM_CL_te_spike},                                      // #419 void(vector org) te_spike (DP_TE_STANDARDEFFECTBUILTINS)
-{VM_CL_te_superspike},                 // #420 void(vector org) te_superspike (DP_TE_STANDARDEFFECTBUILTINS)
-{VM_CL_te_explosion},                          // #421 void(vector org) te_explosion (DP_TE_STANDARDEFFECTBUILTINS)
-{VM_CL_te_tarexplosion},                       // #422 void(vector org) te_tarexplosion (DP_TE_STANDARDEFFECTBUILTINS)
-{VM_CL_te_wizspike},                           // #423 void(vector org) te_wizspike (DP_TE_STANDARDEFFECTBUILTINS)
-{VM_CL_te_knightspike},                        // #424 void(vector org) te_knightspike (DP_TE_STANDARDEFFECTBUILTINS)
-{VM_CL_te_lavasplash},                 // #425 void(vector org) te_lavasplash (DP_TE_STANDARDEFFECTBUILTINS)
-{VM_CL_te_teleport},                           // #426 void(vector org) te_teleport (DP_TE_STANDARDEFFECTBUILTINS)
-{VM_CL_te_explosion2},                 // #427 void(vector org, float colorstart, float colorlength) te_explosion2 (DP_TE_STANDARDEFFECTBUILTINS)
-{VM_CL_te_lightning1},                 // #428 void(entity own, vector start, vector end) te_lightning1 (DP_TE_STANDARDEFFECTBUILTINS)
-{VM_CL_te_lightning2},                 // #429 void(entity own, vector start, vector end) te_lightning2 (DP_TE_STANDARDEFFECTBUILTINS)
-{VM_CL_te_lightning3},                 // #430 void(entity own, vector start, vector end) te_lightning3 (DP_TE_STANDARDEFFECTBUILTINS)
-{VM_CL_te_beam},                                       // #431 void(entity own, vector start, vector end) te_beam (DP_TE_STANDARDEFFECTBUILTINS)
-{VM_vectorvectors},                            // #432 void(vector dir) vectorvectors (DP_QC_VECTORVECTORS)
-{VM_CL_te_plasmaburn},                 // #433 void(vector org) te_plasmaburn (DP_TE_PLASMABURN)
-{VM_getsurfacenumpoints},              // #434 float(entity e, float s) getsurfacenumpoints (DP_QC_GETSURFACE)
-{VM_getsurfacepoint},                  // #435 vector(entity e, float s, float n) getsurfacepoint (DP_QC_GETSURFACE)
-{VM_getsurfacenormal},                 // #436 vector(entity e, float s) getsurfacenormal (DP_QC_GETSURFACE)
-{VM_getsurfacetexture},                // #437 string(entity e, float s) getsurfacetexture (DP_QC_GETSURFACE)
-{VM_getsurfacenearpoint},              // #438 float(entity e, vector p) getsurfacenearpoint (DP_QC_GETSURFACE)
-{VM_getsurfaceclippedpoint},   // #439 vector(entity e, float s, vector p) getsurfaceclippedpoint (DP_QC_GETSURFACE)
+{VM_findchain, 2, 3},                                  // #402 entity(.string fld, string match) findchain (DP_QC_FINDCHAIN)
+{VM_findchainfloat, 2, 3},                             // #403 entity(.float fld, float match) findchainfloat (DP_QC_FINDCHAINFLOAT)
+{VM_CL_effect, 5, 5},                                  // #404 void(vector org, string modelname, float startframe, float endframe, float framerate) effect (DP_SV_EFFECT)
+{VM_CL_te_blood, 3, 3},                                        // #405 void(vector org, vector velocity, float howmany) te_blood (DP_TE_BLOOD)
+{VM_CL_te_bloodshower, 4, 4},                  // #406 void(vector mincorner, vector maxcorner, float explosionspeed, float howmany) te_bloodshower (DP_TE_BLOODSHOWER)
+{VM_CL_te_explosionrgb, 2, 2},                 // #407 void(vector org, vector color) te_explosionrgb (DP_TE_EXPLOSIONRGB)
+{VM_CL_te_particlecube, 7, 7},                 // #408 void(vector mincorner, vector maxcorner, vector vel, float howmany, float color, float gravityflag, float randomveljitter) te_particlecube (DP_TE_PARTICLECUBE)
+{VM_CL_te_particlerain, 5, 5},                 // #409 void(vector mincorner, vector maxcorner, vector vel, float howmany, float color) te_particlerain (DP_TE_PARTICLERAIN)
+{VM_CL_te_particlesnow, 5, 5},                 // #410 void(vector mincorner, vector maxcorner, vector vel, float howmany, float color) te_particlesnow (DP_TE_PARTICLESNOW)
+{VM_CL_te_spark, 3, 3},                                        // #411 void(vector org, vector vel, float howmany) te_spark (DP_TE_SPARK)
+{VM_CL_te_gunshotquad, 1, 1, 1, 1},                    // #412 void(vector org) te_gunshotquad (DP_QUADEFFECTS1)
+{VM_CL_te_spikequad, 1, 1},                            // #413 void(vector org) te_spikequad (DP_QUADEFFECTS1)
+{VM_CL_te_superspikequad, 1, 1},               // #414 void(vector org) te_superspikequad (DP_QUADEFFECTS1)
+{VM_CL_te_explosionquad, 1, 1},                        // #415 void(vector org) te_explosionquad (DP_QUADEFFECTS1)
+{VM_CL_te_smallflash, 1, 1},                   // #416 void(vector org) te_smallflash (DP_TE_SMALLFLASH)
+{VM_CL_te_customflash, 1, 1},                  // #417 void(vector org, float radius, float lifetime, vector color) te_customflash (DP_TE_CUSTOMFLASH)
+{VM_CL_te_gunshot, 1, 1},                              // #418 void(vector org) te_gunshot (DP_TE_STANDARDEFFECTBUILTINS)
+{VM_CL_te_spike, 1, 1},                                        // #419 void(vector org) te_spike (DP_TE_STANDARDEFFECTBUILTINS)
+{VM_CL_te_superspike, 1, 1},                   // #420 void(vector org) te_superspike (DP_TE_STANDARDEFFECTBUILTINS)
+{VM_CL_te_explosion, 1, 1},                            // #421 void(vector org) te_explosion (DP_TE_STANDARDEFFECTBUILTINS)
+{VM_CL_te_tarexplosion, 1, 1},                 // #422 void(vector org) te_tarexplosion (DP_TE_STANDARDEFFECTBUILTINS)
+{VM_CL_te_wizspike, 1, 1},                             // #423 void(vector org) te_wizspike (DP_TE_STANDARDEFFECTBUILTINS)
+{VM_CL_te_knightspike, 1, 1},                  // #424 void(vector org) te_knightspike (DP_TE_STANDARDEFFECTBUILTINS)
+{VM_CL_te_lavasplash, 1, 1},                   // #425 void(vector org) te_lavasplash (DP_TE_STANDARDEFFECTBUILTINS)
+{VM_CL_te_teleport, 1, 1},                             // #426 void(vector org) te_teleport (DP_TE_STANDARDEFFECTBUILTINS)
+{VM_CL_te_explosion2, 3, 3},                   // #427 void(vector org, float colorstart, float colorlength) te_explosion2 (DP_TE_STANDARDEFFECTBUILTINS)
+{VM_CL_te_lightning1, 3, 3},                   // #428 void(entity own, vector start, vector end) te_lightning1 (DP_TE_STANDARDEFFECTBUILTINS)
+{VM_CL_te_lightning2, 3, 3},                   // #429 void(entity own, vector start, vector end) te_lightning2 (DP_TE_STANDARDEFFECTBUILTINS)
+{VM_CL_te_lightning3, 3, 3},                   // #430 void(entity own, vector start, vector end) te_lightning3 (DP_TE_STANDARDEFFECTBUILTINS)
+{VM_CL_te_beam, 3, 3},                                 // #431 void(entity own, vector start, vector end) te_beam (DP_TE_STANDARDEFFECTBUILTINS)
+{VM_vectorvectors, 1, 1},                              // #432 void(vector dir) vectorvectors (DP_QC_VECTORVECTORS)
+{VM_CL_te_plasmaburn, 1, 1},                   // #433 void(vector org) te_plasmaburn (DP_TE_PLASMABURN)
+{VM_getsurfacenumpoints, 2, 2},                // #434 float(entity e, float s) getsurfacenumpoints (DP_QC_GETSURFACE)
+{VM_getsurfacepoint, 3, 3},                    // #435 vector(entity e, float s, float n) getsurfacepoint (DP_QC_GETSURFACE)
+{VM_getsurfacenormal, 2, 2},                   // #436 vector(entity e, float s) getsurfacenormal (DP_QC_GETSURFACE)
+{VM_getsurfacetexture, 2, 2},          // #437 string(entity e, float s) getsurfacetexture (DP_QC_GETSURFACE)
+{VM_getsurfacenearpoint, 2, 2},                // #438 float(entity e, vector p) getsurfacenearpoint (DP_QC_GETSURFACE)
+{VM_getsurfaceclippedpoint, 3, 3},     // #439 vector(entity e, float s, vector p) getsurfaceclippedpoint (DP_QC_GETSURFACE)
 NULL,                                                  // #440 void(entity e, string s) clientcommand (KRIMZON_SV_PARSECLIENTCOMMAND)
-{VM_tokenize},                                 // #441 float(string s) tokenize (KRIMZON_SV_PARSECLIENTCOMMAND)
-{VM_argv},                                             // #442 string(float n) argv (KRIMZON_SV_PARSECLIENTCOMMAND)
-{VM_CL_setattachment},                 // #443 void(entity e, entity tagentity, string tagname) setattachment (DP_GFX_QUAKE3MODELTAGS)
-{VM_search_begin},                             // #444 float(string pattern, float caseinsensitive, float quiet) search_begin (DP_QC_FS_SEARCH)
-{VM_search_end},                                       // #445 void(float handle) search_end (DP_QC_FS_SEARCH)
-{VM_search_getsize},                           // #446 float(float handle) search_getsize (DP_QC_FS_SEARCH)
-{VM_search_getfilename},                       // #447 string(float handle, float num) search_getfilename (DP_QC_FS_SEARCH)
-{VM_cvar_string},                                      // #448 string(string s) cvar_string (DP_QC_CVAR_STRING)
-{VM_findflags},                                        // #449 entity(entity start, .float fld, float match) findflags (DP_QC_FINDFLAGS)
-{VM_findchainflags},                           // #450 entity(.float fld, float match) findchainflags (DP_QC_FINDCHAINFLAGS)
-{VM_CL_gettagindex},                           // #451 float(entity ent, string tagname) gettagindex (DP_QC_GETTAGINFO)
-{VM_CL_gettaginfo},                            // #452 vector(entity ent, float tagindex) gettaginfo (DP_QC_GETTAGINFO)
+{VM_tokenize, 1, 1},                                   // #441 float(string s) tokenize (KRIMZON_SV_PARSECLIENTCOMMAND)
+{VM_argv, 1, 1},                                               // #442 string(float n) argv (KRIMZON_SV_PARSECLIENTCOMMAND)
+{VM_CL_setattachment, 3, 3},                   // #443 void(entity e, entity tagentity, string tagname) setattachment (DP_GFX_QUAKE3MODELTAGS)
+{VM_search_begin, 3, 4},                               // #444 float(string pattern, float caseinsensitive, float quiet) search_begin (DP_QC_FS_SEARCH)
+{VM_search_end, 1, 1},                                 // #445 void(float handle) search_end (DP_QC_FS_SEARCH)
+{VM_search_getsize, 1, 1},                             // #446 float(float handle) search_getsize (DP_QC_FS_SEARCH)
+{VM_search_getfilename, 2, 2},                 // #447 string(float handle, float num) search_getfilename (DP_QC_FS_SEARCH)
+{VM_cvar_string, 1, 8},                                        // #448 string(string s) cvar_string (DP_QC_CVAR_STRING)
+{VM_findflags, 3, 3},                                  // #449 entity(entity start, .float fld, float match) findflags (DP_QC_FINDFLAGS)
+{VM_findchainflags, 2, 3},                             // #450 entity(.float fld, float match) findchainflags (DP_QC_FINDCHAINFLAGS)
+{VM_CL_gettagindex, 2, 2},                             // #451 float(entity ent, string tagname) gettagindex (DP_QC_GETTAGINFO)
+{VM_CL_gettaginfo, 2, 2},                              // #452 vector(entity ent, float tagindex) gettaginfo (DP_QC_GETTAGINFO)
 NULL,                                                  // #453 void(entity clent) dropclient (DP_SV_DROPCLIENT)
 NULL,                                                  // #454 entity() spawnclient (DP_SV_BOTCLIENT)
 NULL,                                                  // #455 float(entity clent) clienttype (DP_SV_BOTCLIENT)
 NULL,                                                  // #456 void(float to, string s) WriteUnterminatedString (DP_SV_WRITEUNTERMINATEDSTRING)
-{VM_CL_te_flamejet},                           // #457 void(vector org, vector vel, float howmany) te_flamejet (DP_TE_FLAMEJET)
+{VM_CL_te_flamejet, 3, 3},                             // #457 void(vector org, vector vel, float howmany) te_flamejet (DP_TE_FLAMEJET)
 NULL,                                                  // #458
-{VM_ftoe},                                             // #459 entity(float num) entitybyindex (DP_QC_EDICT_NUM)
-{VM_buf_create},                                       // #460 float() buf_create (DP_QC_STRINGBUFFERS)
-{VM_buf_del},                                          // #461 void(float bufhandle) buf_del (DP_QC_STRINGBUFFERS)
-{VM_buf_getsize},                                      // #462 float(float bufhandle) buf_getsize (DP_QC_STRINGBUFFERS)
-{VM_buf_copy},                                 // #463 void(float bufhandle_from, float bufhandle_to) buf_copy (DP_QC_STRINGBUFFERS)
-{VM_buf_sort},                                 // #464 void(float bufhandle, float sortpower, float backward) buf_sort (DP_QC_STRINGBUFFERS)
-{VM_buf_implode},                                      // #465 string(float bufhandle, string glue) buf_implode (DP_QC_STRINGBUFFERS)
-{VM_bufstr_get},                                       // #466 string(float bufhandle, float string_index) bufstr_get (DP_QC_STRINGBUFFERS)
-{VM_bufstr_set},                                       // #467 void(float bufhandle, float string_index, string str) bufstr_set (DP_QC_STRINGBUFFERS)
-{VM_bufstr_add},                                       // #468 float(float bufhandle, string str, float order) bufstr_add (DP_QC_STRINGBUFFERS)
-{VM_bufstr_free},                                      // #469 void(float bufhandle, float string_index) bufstr_free (DP_QC_STRINGBUFFERS)
+{VM_ftoe, 1, 1},                                               // #459 entity(float num) entitybyindex (DP_QC_EDICT_NUM)
+{VM_buf_create, 0, 2},                                 // #460 float() buf_create (DP_QC_STRINGBUFFERS)
+{VM_buf_del, 1, 1},                                            // #461 void(float bufhandle) buf_del (DP_QC_STRINGBUFFERS)
+{VM_buf_getsize, 1, 1},                                        // #462 float(float bufhandle) buf_getsize (DP_QC_STRINGBUFFERS)
+{VM_buf_copy, 2, 2},                                   // #463 void(float bufhandle_from, float bufhandle_to) buf_copy (DP_QC_STRINGBUFFERS)
+{VM_buf_sort, 3, 3},                                   // #464 void(float bufhandle, float sortpower, float backward) buf_sort (DP_QC_STRINGBUFFERS)
+{VM_buf_implode, 2, 2},                                        // #465 string(float bufhandle, string glue) buf_implode (DP_QC_STRINGBUFFERS)
+{VM_bufstr_get, 2, 2},                                 // #466 string(float bufhandle, float string_index) bufstr_get (DP_QC_STRINGBUFFERS)
+{VM_bufstr_set, 3, 3},                                 // #467 void(float bufhandle, float string_index, string str) bufstr_set (DP_QC_STRINGBUFFERS)
+{VM_bufstr_add, 3, 3},                                 // #468 float(float bufhandle, string str, float order) bufstr_add (DP_QC_STRINGBUFFERS)
+{VM_bufstr_free, 2, 2},                                        // #469 void(float bufhandle, float string_index) bufstr_free (DP_QC_STRINGBUFFERS)
 NULL,                                                  // #470 void(float index, float type, .void field) SV_AddStat (EXT_CSQC)
-{VM_asin},                                             // #471 float(float s) VM_asin (DP_QC_ASINACOSATANATAN2TAN)
-{VM_acos},                                             // #472 float(float c) VM_acos (DP_QC_ASINACOSATANATAN2TAN)
-{VM_atan},                                             // #473 float(float t) VM_atan (DP_QC_ASINACOSATANATAN2TAN)
-{VM_atan2},                                            // #474 float(float c, float s) VM_atan2 (DP_QC_ASINACOSATANATAN2TAN)
-{VM_tan},                                                      // #475 float(float a) VM_tan (DP_QC_ASINACOSATANATAN2TAN)
-{VM_strlennocol},                                      // #476 float(string s) : DRESK - String Length (not counting color codes) (DP_QC_STRINGCOLORFUNCTIONS)
-{VM_strdecolorize},                            // #477 string(string s) : DRESK - Decolorized String (DP_QC_STRINGCOLORFUNCTIONS)
-{VM_strftime},                                 // #478 string(float uselocaltime, string format, ...) (DP_QC_STRFTIME)
-{VM_tokenizebyseparator},                      // #479 float(string s) tokenizebyseparator (DP_QC_TOKENIZEBYSEPARATOR)
-{VM_strtolower},                                       // #480 string(string s) VM_strtolower (DP_QC_STRING_CASE_FUNCTIONS)
-{VM_strtoupper},                                       // #481 string(string s) VM_strtoupper (DP_QC_STRING_CASE_FUNCTIONS)
-{VM_cvar_defstring},                           // #482 string(string s) cvar_defstring (DP_QC_CVAR_DEFSTRING)
-{VM_CL_pointsound},                            // #483 void(vector origin, string sample, float volume, float attenuation) pointsound (DP_SV_POINTSOUND)
-{VM_strreplace},                                       // #484 string(string search, string replace, string subject) strreplace (DP_QC_STRREPLACE)
-{VM_strireplace},                                      // #485 string(string search, string replace, string subject) strireplace (DP_QC_STRREPLACE)
-{VM_getsurfacepointattribute},// #486 vector(entity e, float s, float n, float a) getsurfacepointattribute
-{VM_gecko_create},                                     // #487 float gecko_create( string name )
-{VM_gecko_destroy},                                    // #488 void gecko_destroy( string name )
-{VM_gecko_navigate},                           // #489 void gecko_navigate( string name, string URI )
-{VM_gecko_keyevent},                           // #490 float gecko_keyevent( string name, float key, float eventtype )
-{VM_gecko_movemouse},                          // #491 void gecko_mousemove( string name, float x, float y )
-{VM_gecko_resize},                                     // #492 void gecko_resize( string name, float w, float h )
-{VM_gecko_get_texture_extent}, // #493 vector gecko_get_texture_extent( string name )
-{VM_crc16},                                            // #494 float(float caseinsensitive, string s, ...) crc16 = #494 (DP_QC_CRC16)
-{VM_cvar_type},                                        // #495 float(string name) cvar_type = #495; (DP_QC_CVAR_TYPE)
-{VM_numentityfields},                          // #496 float() numentityfields = #496; (QP_QC_ENTITYDATA)
-{VM_entityfieldname},                          // #497 string(float fieldnum) entityfieldname = #497; (DP_QC_ENTITYDATA)
-{VM_entityfieldtype},                          // #498 float(float fieldnum) entityfieldtype = #498; (DP_QC_ENTITYDATA)
-{VM_getentityfieldstring},             // #499 string(float fieldnum, entity ent) getentityfieldstring = #499; (DP_QC_ENTITYDATA)
-{VM_putentityfieldstring},             // #500 float(float fieldnum, entity ent, string s) putentityfieldstring = #500; (DP_QC_ENTITYDATA)
-{VM_CL_ReadPicture},                           // #501 string() ReadPicture = #501;
-{VM_CL_boxparticles},                          // #502 void(float effectnum, entity own, vector origin_from, vector origin_to, vector dir_from, vector dir_to, float count) boxparticles (DP_CSQC_BOXPARTICLES)
-{VM_whichpack},                                        // #503 string(string) whichpack = #503;
-{VM_CL_GetEntity},                             // #504 float(float entitynum, float fldnum) getentity = #504; vector(float entitynum, float fldnum) getentityvec = #504;
+{VM_asin, 1, 1},                                               // #471 float(float s) VM_asin (DP_QC_ASINACOSATANATAN2TAN)
+{VM_acos, 1, 1},                                               // #472 float(float c) VM_acos (DP_QC_ASINACOSATANATAN2TAN)
+{VM_atan, 1, 1},                                               // #473 float(float t) VM_atan (DP_QC_ASINACOSATANATAN2TAN)
+{VM_atan2, 2, 2},                                              // #474 float(float c, float s) VM_atan2 (DP_QC_ASINACOSATANATAN2TAN)
+{VM_tan, 1, 1},                                                        // #475 float(float a) VM_tan (DP_QC_ASINACOSATANATAN2TAN)
+{VM_strlennocol, 1, 1},                                        // #476 float(string s) : DRESK - String Length (not counting color codes) (DP_QC_STRINGCOLORFUNCTIONS)
+{VM_strdecolorize, 1, 1},                              // #477 string(string s) : DRESK - Decolorized String (DP_QC_STRINGCOLORFUNCTIONS)
+{VM_strftime, 2, 8},                                   // #478 string(float uselocaltime, string format, ...) (DP_QC_STRFTIME)
+{VM_tokenizebyseparator, 2, 8},                        // #479 float(string s) tokenizebyseparator (DP_QC_TOKENIZEBYSEPARATOR)
+{VM_strtolower, 1, 1},                                 // #480 string(string s) VM_strtolower (DP_QC_STRING_CASE_FUNCTIONS)
+{VM_strtoupper, 1, 1},                                 // #481 string(string s) VM_strtoupper (DP_QC_STRING_CASE_FUNCTIONS)
+{VM_cvar_defstring, 1, 8},                             // #482 string(string s) cvar_defstring (DP_QC_CVAR_DEFSTRING)
+{VM_CL_pointsound, 4, 4},                              // #483 void(vector origin, string sample, float volume, float attenuation) pointsound (DP_SV_POINTSOUND)
+{VM_strreplace, 3, 3},                                 // #484 string(string search, string replace, string subject) strreplace (DP_QC_STRREPLACE)
+{VM_strireplace, 3, 3},                                        // #485 string(string search, string replace, string subject) strireplace (DP_QC_STRREPLACE)
+{VM_getsurfacepointattribute, 4, 4},// #486 vector(entity e, float s, float n, float a) getsurfacepointattribute
+{VM_gecko_create, 0, 0},                                       // #487 float gecko_create( string name )
+{VM_gecko_destroy, 0, 0},                                      // #488 void gecko_destroy( string name )
+{VM_gecko_navigate, 0, 0},                             // #489 void gecko_navigate( string name, string URI )
+{VM_gecko_keyevent, 0, 0},                             // #490 float gecko_keyevent( string name, float key, float eventtype )
+{VM_gecko_movemouse, 0, 0},                            // #491 void gecko_mousemove( string name, float x, float y )
+{VM_gecko_resize, 0, 0},                                       // #492 void gecko_resize( string name, float w, float h )
+{VM_gecko_get_texture_extent, 0, 0},   // #493 vector gecko_get_texture_extent( string name )
+{VM_crc16, 2, 8},                                              // #494 float(float caseinsensitive, string s, ...) crc16 = #494 (DP_QC_CRC16)
+{VM_cvar_type, 1, 8},                                  // #495 float(string name) cvar_type = #495; (DP_QC_CVAR_TYPE)
+{VM_numentityfields, 0, 0},                            // #496 float() numentityfields = #496; (QP_QC_ENTITYDATA)
+{VM_entityfieldname, 1, 1},                            // #497 string(float fieldnum) entityfieldname = #497; (DP_QC_ENTITYDATA)
+{VM_entityfieldtype, 1, 1},                            // #498 float(float fieldnum) entityfieldtype = #498; (DP_QC_ENTITYDATA)
+{VM_getentityfieldstring, 2, 2},               // #499 string(float fieldnum, entity ent) getentityfieldstring = #499; (DP_QC_ENTITYDATA)
+{VM_putentityfieldstring, 3, 3},               // #500 float(float fieldnum, entity ent, string s) putentityfieldstring = #500; (DP_QC_ENTITYDATA)
+{VM_CL_ReadPicture, 0, 0},                             // #501 string() ReadPicture = #501;
+{VM_CL_boxparticles, 7, 8},                            // #502 void(float effectnum, entity own, vector origin_from, vector origin_to, vector dir_from, vector dir_to, float count) boxparticles (DP_CSQC_BOXPARTICLES)
+{VM_whichpack, 1, 1},                                  // #503 string(string) whichpack = #503;
+{VM_CL_GetEntity, 2, 2},                               // #504 float(float entitynum, float fldnum) getentity = #504; vector(float entitynum, float fldnum) getentityvec = #504;
 NULL,                                                  // #505
 NULL,                                                  // #506
 NULL,                                                  // #507
 NULL,                                                  // #508
 NULL,                                                  // #509
-{VM_uri_escape},                                       // #510 string(string in) uri_escape = #510;
-{VM_uri_unescape},                             // #511 string(string in) uri_unescape = #511;
-{VM_etof},                                     // #512 float(entity ent) num_for_edict = #512 (DP_QC_NUM_FOR_EDICT)
-{VM_uri_get},                                          // #513 float(string uri, float id, [string post_contenttype, string post_delim, [float buf]]) uri_get = #513; (DP_QC_URI_GET, DP_QC_URI_POST)
-{VM_tokenize_console},                                 // #514 float(string str) tokenize_console = #514; (DP_QC_TOKENIZE_CONSOLE)
-{VM_argv_start_index},                                 // #515 float(float idx) argv_start_index = #515; (DP_QC_TOKENIZE_CONSOLE)
-{VM_argv_end_index},                                           // #516 float(float idx) argv_end_index = #516; (DP_QC_TOKENIZE_CONSOLE)
-{VM_buf_cvarlist},                                             // #517 void(float buf, string prefix, string antiprefix) buf_cvarlist = #517; (DP_QC_STRINGBUFFERS_CVARLIST)
-{VM_cvar_description},                                 // #518 float(string name) cvar_description = #518; (DP_QC_CVAR_DESCRIPTION)
-{VM_gettime},                                          // #519 float(float timer) gettime = #519; (DP_QC_GETTIME)
-{VM_keynumtostring},                           // #520 string keynumtostring(float keynum)
+{VM_uri_escape, 1, 8},                                 // #510 string(string in) uri_escape = #510;
+{VM_uri_unescape, 1, 8},                               // #511 string(string in) uri_unescape = #511;
+{VM_etof, 1, 1},                                       // #512 float(entity ent) num_for_edict = #512 (DP_QC_NUM_FOR_EDICT)
+{VM_uri_get, 2, 6},                                            // #513 float(string uri, float id, [string post_contenttype, string post_delim, [float buf]]) uri_get = #513; (DP_QC_URI_GET, DP_QC_URI_POST)
+{VM_tokenize_console, 1, 1},                                   // #514 float(string str) tokenize_console = #514; (DP_QC_TOKENIZE_CONSOLE)
+{VM_argv_start_index, 1, 1},                                   // #515 float(float idx) argv_start_index = #515; (DP_QC_TOKENIZE_CONSOLE)
+{VM_argv_end_index, 1, 1},                                             // #516 float(float idx) argv_end_index = #516; (DP_QC_TOKENIZE_CONSOLE)
+{VM_buf_cvarlist, 2, 3},                                               // #517 void(float buf, string prefix, string antiprefix) buf_cvarlist = #517; (DP_QC_STRINGBUFFERS_CVARLIST)
+{VM_cvar_description, 1, 8},                                   // #518 float(string name) cvar_description = #518; (DP_QC_CVAR_DESCRIPTION)
+{VM_gettime, 0, 1},                                            // #519 float(float timer) gettime = #519; (DP_QC_GETTIME)
+{VM_keynumtostring, 1, 1},                             // #520 string keynumtostring(float keynum)
 {VM_findkeysforcommand},                       // #521 string findkeysforcommand(string command[, float bindmap])
 {VM_CL_InitParticleSpawner},           // #522 void(float max_themes) initparticlespawner (DP_CSQC_SPAWNPARTICLE)
 {VM_CL_ResetParticle},                 // #523 void() resetparticle (DP_CSQC_SPAWNPARTICLE)