mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 00:24:12 +00:00
More cleaning up after slobs.
This commit is contained in:
parent
5fb8aa07f3
commit
41bfde9cfa
8 changed files with 151 additions and 99 deletions
|
@ -727,7 +727,9 @@ CL_ParseStaticSound (void)
|
|||
S_StaticSound (cl.sound_precache[sound_num], org, vol, atten);
|
||||
}
|
||||
|
||||
#define SHOWNET(x) if(cl_shownet->int_val==2)Con_Printf ("%3i:%s\n", net_message->readcount-1, x);
|
||||
#define SHOWNET(x) \
|
||||
if (cl_shownet->int_val == 2) \
|
||||
Con_Printf ("%3i:%s\n", net_message->readcount - 1, x);
|
||||
|
||||
int viewentity;
|
||||
|
||||
|
|
|
@ -211,10 +211,8 @@ locs_save (const char *filename, qboolean gz)
|
|||
return;
|
||||
}
|
||||
for (i=0; i < locations_count; i++)
|
||||
Qprintf(locfd,"%.0f %.0f %.0f %s\n",
|
||||
locations[i]->loc[0] * 8,
|
||||
locations[i]->loc[1] * 8,
|
||||
locations[i]->loc[2] * 8,
|
||||
Qprintf (locfd, "%.0f %.0f %.0f %s\n", locations[i]->loc[0] * 8,
|
||||
locations[i]->loc[1] * 8, locations[i]->loc[2] * 8,
|
||||
locations[i]->name);
|
||||
Qclose (locfd);
|
||||
}
|
||||
|
|
|
@ -1311,7 +1311,7 @@ PF_Fixme (progs_t *pr)
|
|||
static void
|
||||
PF_checkextension (progs_t *pr)
|
||||
{
|
||||
G_FLOAT(pr, OFS_RETURN) = 0; //FIXME make this function actually useful :P
|
||||
G_FLOAT (pr, OFS_RETURN) = 0; // FIXME: make this function actually useful
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1320,69 +1320,121 @@ SV_PR_Cmds_Init ()
|
|||
PR_Cmds_Init (&sv_pr_state);
|
||||
PR_Obj_Progs_Init (&sv_pr_state);
|
||||
|
||||
PR_AddBuiltin (&sv_pr_state, "makevectors", PF_makevectors, 1); // void(entity e) makevectors
|
||||
PR_AddBuiltin (&sv_pr_state, "setorigin", PF_setorigin, 2); // void(entity e, vector o) setorigin
|
||||
PR_AddBuiltin (&sv_pr_state, "setmodel", PF_setmodel, 3); // void(entity e, string m) setmodel
|
||||
PR_AddBuiltin (&sv_pr_state, "setsize", PF_setsize, 4); // void(entity e, vector min, vector max) setsize
|
||||
PR_AddBuiltin (&sv_pr_state, "fixme", PF_Fixme, 5); // void(entity e, vector min, vector max) setabssize
|
||||
PR_AddBuiltin (&sv_pr_state, "sound", PF_sound, 8); // void(entity e, float chan, string samp) sound
|
||||
PR_AddBuiltin (&sv_pr_state, "error", PF_error, 10); // void(string e) error
|
||||
PR_AddBuiltin (&sv_pr_state, "objerror", PF_objerror, 11); // void(string e) objerror
|
||||
PR_AddBuiltin (&sv_pr_state, "spawn", PF_Spawn, 14); // entity() spawn
|
||||
PR_AddBuiltin (&sv_pr_state, "remove", PF_Remove, 15); // void(entity e) remove
|
||||
PR_AddBuiltin (&sv_pr_state, "traceline", PF_traceline, 16); // float(vector v1, vector v2, float tryents) traceline
|
||||
PR_AddBuiltin (&sv_pr_state, "checkclient", PF_checkclient, 17); // entity() clientlist
|
||||
PR_AddBuiltin (&sv_pr_state, "precache_sound", PF_precache_sound, 19); // void(string s) precache_sound
|
||||
PR_AddBuiltin (&sv_pr_state, "precache_model", PF_precache_model, 20); // void(string s) precache_model
|
||||
PR_AddBuiltin (&sv_pr_state, "stuffcmd", PF_stuffcmd, 21); // void(entity client, string s) stuffcmd
|
||||
PR_AddBuiltin (&sv_pr_state, "findradius", PF_findradius, 22); // entity(vector org, float rad) findradius
|
||||
PR_AddBuiltin (&sv_pr_state, "bprint", PF_bprint, 23); // void(string s) bprint
|
||||
PR_AddBuiltin (&sv_pr_state, "sprint", PF_sprint, 24); // void(entity client, string s) sprint
|
||||
PR_AddBuiltin (&sv_pr_state, "walkmove", PF_walkmove, 32); // float(float yaw, float dist) walkmove
|
||||
// 33
|
||||
PR_AddBuiltin (&sv_pr_state, "droptofloor", PF_droptofloor, 34); // float() droptofloor
|
||||
PR_AddBuiltin (&sv_pr_state, "lightstyle", PF_lightstyle, 35); // void(float style, string value) lightstyle
|
||||
// 39
|
||||
PR_AddBuiltin (&sv_pr_state, "checkbottom", PF_checkbottom, 40); // float(entity e) checkbottom
|
||||
PR_AddBuiltin (&sv_pr_state, "pointcontents", PF_pointcontents, 41); // float(vector v) pointcontents
|
||||
// 42
|
||||
PR_AddBuiltin (&sv_pr_state, "aim", PF_aim, 44); // vector(entity e, float speed) aim
|
||||
PR_AddBuiltin (&sv_pr_state, "localcmd", PF_localcmd, 46); // void(string s) localcmd
|
||||
PR_AddBuiltin (&sv_pr_state, "particle", PF_particle, 48); // void(vector o, vector d, float color, float count) particle
|
||||
PR_AddBuiltin (&sv_pr_state, "changeyaw", PF_changeyaw, 49); // void() ChangeYaw
|
||||
// 50
|
||||
// void (entity e) makevectors
|
||||
PR_AddBuiltin (&sv_pr_state, "makevectors", PF_makevectors, 1);
|
||||
// void (entity e, vector o) setorigin
|
||||
PR_AddBuiltin (&sv_pr_state, "setorigin", PF_setorigin, 2);
|
||||
// void (entity e, string m) setmodel
|
||||
PR_AddBuiltin (&sv_pr_state, "setmodel", PF_setmodel, 3);
|
||||
// void (entity e, vector min, vector max) setsize
|
||||
PR_AddBuiltin (&sv_pr_state, "setsize", PF_setsize, 4);
|
||||
// void (entity e, vector min, vector max) setabssize
|
||||
PR_AddBuiltin (&sv_pr_state, "fixme", PF_Fixme, 5);
|
||||
|
||||
PR_AddBuiltin (&sv_pr_state, "writebyte", PF_WriteByte, 52); // void(float to, float f) WriteByte
|
||||
PR_AddBuiltin (&sv_pr_state, "writechar", PF_WriteChar, 53); // void(float to, float f) WriteChar
|
||||
PR_AddBuiltin (&sv_pr_state, "writeshort", PF_WriteShort, 54); // void(float to, float f) WriteShort
|
||||
PR_AddBuiltin (&sv_pr_state, "writelong", PF_WriteLong, 55); // void(float to, float f) WriteLong
|
||||
PR_AddBuiltin (&sv_pr_state, "writecoord", PF_WriteCoord, 56); // void(float to, float f) WriteCoord
|
||||
PR_AddBuiltin (&sv_pr_state, "writeangle", PF_WriteAngle, 57); // void(float to, float f) WriteAngle
|
||||
PR_AddBuiltin (&sv_pr_state, "writestring", PF_WriteString, 58); // void(float to, string s) WriteString
|
||||
PR_AddBuiltin (&sv_pr_state, "writeentity", PF_WriteEntity, 59); // void(float to, entity s) WriteEntity
|
||||
// void (entity e, float chan, string samp) sound
|
||||
PR_AddBuiltin (&sv_pr_state, "sound", PF_sound, 8);
|
||||
|
||||
PR_AddBuiltin (&sv_pr_state, "movetogoal", SV_MoveToGoal, 67); // void(float step) movetogoal
|
||||
PR_AddBuiltin (&sv_pr_state, "precache_file", PF_precache_file, 68); // string(string s) precache_file
|
||||
PR_AddBuiltin (&sv_pr_state, "makestatic", PF_makestatic, 69); // void(entity e) makestatic
|
||||
// void (string e) error
|
||||
PR_AddBuiltin (&sv_pr_state, "error", PF_error, 10);
|
||||
// void (string e) objerror
|
||||
PR_AddBuiltin (&sv_pr_state, "objerror", PF_objerror, 11);
|
||||
// entity () spawn
|
||||
PR_AddBuiltin (&sv_pr_state, "spawn", PF_Spawn, 14);
|
||||
// void (entity e) remove
|
||||
PR_AddBuiltin (&sv_pr_state, "remove", PF_Remove, 15);
|
||||
// float (vector v1, vector v2, float tryents) traceline
|
||||
PR_AddBuiltin (&sv_pr_state, "traceline", PF_traceline, 16);
|
||||
// entity () clientlist
|
||||
PR_AddBuiltin (&sv_pr_state, "checkclient", PF_checkclient, 17);
|
||||
|
||||
PR_AddBuiltin (&sv_pr_state, "changelevel", PF_changelevel, 70); // void(string s) changelevel
|
||||
// 71
|
||||
// void (string s) precache_sound
|
||||
PR_AddBuiltin (&sv_pr_state, "precache_sound", PF_precache_sound, 19);
|
||||
// void (string s) precache_model
|
||||
PR_AddBuiltin (&sv_pr_state, "precache_model", PF_precache_model, 20);
|
||||
// void (entity client, string s) stuffcmd
|
||||
PR_AddBuiltin (&sv_pr_state, "stuffcmd", PF_stuffcmd, 21);
|
||||
// entity (vector org, float rad) findradius
|
||||
PR_AddBuiltin (&sv_pr_state, "findradius", PF_findradius, 22);
|
||||
// void (string s) bprint
|
||||
PR_AddBuiltin (&sv_pr_state, "bprint", PF_bprint, 23);
|
||||
// void (entity client, string s) sprint
|
||||
PR_AddBuiltin (&sv_pr_state, "sprint", PF_sprint, 24);
|
||||
|
||||
PR_AddBuiltin (&sv_pr_state, "centerprint", PF_centerprint, 73); // void(...) centerprint
|
||||
// float (float yaw, float dist) walkmove
|
||||
PR_AddBuiltin (&sv_pr_state, "walkmove", PF_walkmove, 32);
|
||||
|
||||
PR_AddBuiltin (&sv_pr_state, "ambientsound", PF_ambientsound, 74); // void(vector pos, string samp, float vol, float atten) ambientsound
|
||||
// float () droptofloor
|
||||
PR_AddBuiltin (&sv_pr_state, "droptofloor", PF_droptofloor, 34);
|
||||
// void (float style, string value) lightstyle
|
||||
PR_AddBuiltin (&sv_pr_state, "lightstyle", PF_lightstyle, 35);
|
||||
|
||||
PR_AddBuiltin (&sv_pr_state, "precache_model2", PF_precache_model, 75); // string(string s) precache_model2
|
||||
PR_AddBuiltin (&sv_pr_state, "precache_sound2", PF_precache_sound, 76); // string(string s) precache_sound2
|
||||
PR_AddBuiltin (&sv_pr_state, "precache_file2", PF_precache_file, 77); // string(string s) precache_file2
|
||||
// float (entity e) checkbottom
|
||||
PR_AddBuiltin (&sv_pr_state, "checkbottom", PF_checkbottom, 40);
|
||||
// float (vector v) pointcontents
|
||||
PR_AddBuiltin (&sv_pr_state, "pointcontents", PF_pointcontents, 41);
|
||||
|
||||
PR_AddBuiltin (&sv_pr_state, "setspawnparms", PF_setspawnparms, 78); // void(entity e) setspawnparms
|
||||
// vector (entity e, float speed) aim
|
||||
PR_AddBuiltin (&sv_pr_state, "aim", PF_aim, 44);
|
||||
|
||||
PR_AddBuiltin (&sv_pr_state, "hullpointcontents", PF_hullpointcontents, 93); // integer (entity ent, vector point) hullpointcontents
|
||||
PR_AddBuiltin (&sv_pr_state, "getboxbounds", PF_getboxbounds, 94); // vector (integer hull, integer max) getboxbounds
|
||||
PR_AddBuiltin (&sv_pr_state, "getboxhull", PF_getboxhull, 95); // integer () getboxhull
|
||||
PR_AddBuiltin (&sv_pr_state, "freeboxhull", PF_freeboxhull, 96); // void (integer hull) freeboxhull
|
||||
PR_AddBuiltin (&sv_pr_state, "rotate_bbox", PF_rotate_bbox, 97); // void (integer hull, vector right, vector forward, vector up, vector mins, vector maxs) rotate_bbox
|
||||
// void (string s) localcmd
|
||||
PR_AddBuiltin (&sv_pr_state, "localcmd", PF_localcmd, 46);
|
||||
|
||||
PR_AddBuiltin (&sv_pr_state, "checkextension", PF_checkextension, 99); // float () checkextension
|
||||
// void (vector o, vector d, float color, float count) particle
|
||||
PR_AddBuiltin (&sv_pr_state, "particle", PF_particle, 48);
|
||||
// void () ChangeYaw
|
||||
PR_AddBuiltin (&sv_pr_state, "changeyaw", PF_changeyaw, 49);
|
||||
|
||||
// void (float to, float f) WriteByte
|
||||
PR_AddBuiltin (&sv_pr_state, "writebyte", PF_WriteByte, 52);
|
||||
// void (float to, float f) WriteChar
|
||||
PR_AddBuiltin (&sv_pr_state, "writechar", PF_WriteChar, 53);
|
||||
// void (float to, float f) WriteShort
|
||||
PR_AddBuiltin (&sv_pr_state, "writeshort", PF_WriteShort, 54);
|
||||
// void (float to, float f) WriteLong
|
||||
PR_AddBuiltin (&sv_pr_state, "writelong", PF_WriteLong, 55);
|
||||
// void (float to, float f) WriteCoord
|
||||
PR_AddBuiltin (&sv_pr_state, "writecoord", PF_WriteCoord, 56);
|
||||
// void (float to, float f) WriteAngle
|
||||
PR_AddBuiltin (&sv_pr_state, "writeangle", PF_WriteAngle, 57);
|
||||
// void (float to, string s) WriteString
|
||||
PR_AddBuiltin (&sv_pr_state, "writestring", PF_WriteString, 58);
|
||||
// void (float to, entity s) WriteEntity
|
||||
PR_AddBuiltin (&sv_pr_state, "writeentity", PF_WriteEntity, 59);
|
||||
|
||||
// void (float step) movetogoal
|
||||
PR_AddBuiltin (&sv_pr_state, "movetogoal", SV_MoveToGoal, 67);
|
||||
// string (string s) precache_file
|
||||
PR_AddBuiltin (&sv_pr_state, "precache_file", PF_precache_file, 68);
|
||||
// void (entity e) makestatic
|
||||
PR_AddBuiltin (&sv_pr_state, "makestatic", PF_makestatic, 69);
|
||||
// void (string s) changelevel
|
||||
PR_AddBuiltin (&sv_pr_state, "changelevel", PF_changelevel, 70);
|
||||
|
||||
// void (...) centerprint
|
||||
PR_AddBuiltin (&sv_pr_state, "centerprint", PF_centerprint, 73);
|
||||
// void (vector pos, string samp, float vol, float atten) ambientsound
|
||||
PR_AddBuiltin (&sv_pr_state, "ambientsound", PF_ambientsound, 74);
|
||||
// string (string s) precache_model2
|
||||
PR_AddBuiltin (&sv_pr_state, "precache_model2", PF_precache_model, 75);
|
||||
// string (string s) precache_sound2
|
||||
PR_AddBuiltin (&sv_pr_state, "precache_sound2", PF_precache_sound, 76);
|
||||
// string (string s) precache_file2
|
||||
PR_AddBuiltin (&sv_pr_state, "precache_file2", PF_precache_file, 77);
|
||||
// void (entity e) setspawnparms
|
||||
PR_AddBuiltin (&sv_pr_state, "setspawnparms", PF_setspawnparms, 78);
|
||||
|
||||
// integer (entity ent, vector point) hullpointcontents
|
||||
PR_AddBuiltin (&sv_pr_state, "hullpointcontents", PF_hullpointcontents,
|
||||
93);
|
||||
// vector (integer hull, integer max) getboxbounds
|
||||
PR_AddBuiltin (&sv_pr_state, "getboxbounds", PF_getboxbounds, 94);
|
||||
// integer () getboxhull
|
||||
PR_AddBuiltin (&sv_pr_state, "getboxhull", PF_getboxhull, 95);
|
||||
// void (integer hull) freeboxhull
|
||||
PR_AddBuiltin (&sv_pr_state, "freeboxhull", PF_freeboxhull, 96);
|
||||
// void (integer hull, vector right, vector forward, vector up, vector mins, vector maxs) rotate_bbox
|
||||
PR_AddBuiltin (&sv_pr_state, "rotate_bbox", PF_rotate_bbox, 97);
|
||||
|
||||
// float () checkextension
|
||||
PR_AddBuiltin (&sv_pr_state, "checkextension", PF_checkextension, 99);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue