icculus quake2 doxygen
1.0 dev
|
|
Go to the documentation of this file.
27 static char value[512];
35 p = strchr(
value,
'/');
60 if (strcmp(ent1Team, ent2Team) == 0)
74 if (
cl->chase_target) {
88 if (!(it->
flags & itflags))
91 cl->pers.selected_item = index;
95 cl->pers.selected_item = -1;
106 if (
cl->chase_target) {
120 if (!(it->
flags & itflags))
123 cl->pers.selected_item = index;
127 cl->pers.selected_item = -1;
163 gi.
cprintf (ent,
PRINT_HIGH,
"You must run the server with '+set cheats 1' to enable this command.\n");
314 gi.
cprintf (ent,
PRINT_HIGH,
"You must run the server with '+set cheats 1' to enable this command.\n");
320 msg =
"godmode OFF\n";
322 msg =
"godmode ON\n";
343 gi.
cprintf (ent,
PRINT_HIGH,
"You must run the server with '+set cheats 1' to enable this command.\n");
349 msg =
"notarget OFF\n";
351 msg =
"notarget ON\n";
370 gi.
cprintf (ent,
PRINT_HIGH,
"You must run the server with '+set cheats 1' to enable this command.\n");
377 msg =
"noclip OFF\n";
473 cl->showscores =
false;
474 cl->showhelp =
false;
476 if (
cl->showinventory)
478 cl->showinventory =
false;
482 cl->showinventory =
true;
532 if (!
cl->pers.weapon)
549 if (
cl->pers.weapon == it)
568 if (!
cl->pers.weapon)
585 if (
cl->pers.weapon == it)
603 if (!
cl->pers.weapon || !
cl->pers.lastweapon)
721 if (strlen (small) + strlen(large) >
sizeof(large) - 100 )
723 strcat (large,
"...\n");
726 strcat (large, small);
796 if (
gi.
argc () < 2 && !arg0)
809 strcat (text,
gi.
argv(0));
826 if (strlen(text) > 150)
834 if (
level.time <
cl->flood_locktill) {
836 (
int)(
cl->flood_locktill -
level.time));
841 i = (
sizeof(
cl->flood_when)/
sizeof(
cl->flood_when[0])) +
i;
842 if (
cl->flood_when[
i] &&
849 cl->flood_whenhead = (
cl->flood_whenhead + 1) %
850 (
sizeof(
cl->flood_when)/
sizeof(
cl->flood_when[0]));
851 cl->flood_when[
cl->flood_whenhead] =
level.time;
893 if (strlen(text) + strlen(
st) >
sizeof(text) - 50) {
894 sprintf(text+strlen(text),
"And more...\n");
944 if (
level.intermissiontime)
955 else if (
Q_stricmp (cmd,
"notarget") == 0)
961 else if (
Q_stricmp (cmd,
"invnext") == 0)
963 else if (
Q_stricmp (cmd,
"invprev") == 0)
965 else if (
Q_stricmp (cmd,
"invnextw") == 0)
967 else if (
Q_stricmp (cmd,
"invprevw") == 0)
969 else if (
Q_stricmp (cmd,
"invnextp") == 0)
971 else if (
Q_stricmp (cmd,
"invprevp") == 0)
975 else if (
Q_stricmp (cmd,
"invdrop") == 0)
977 else if (
Q_stricmp (cmd,
"weapprev") == 0)
979 else if (
Q_stricmp (cmd,
"weapnext") == 0)
981 else if (
Q_stricmp (cmd,
"weaplast") == 0)
985 else if (
Q_stricmp (cmd,
"putaway") == 0)
989 else if (
Q_stricmp(cmd,
"playerlist") == 0)
gitem_t * FindItem(char *pickup_name)
void Cmd_Inven_f(edict_t *ent)
void ChasePrev(edict_t *ent)
void Cmd_Give_f(edict_t *ent)
qboolean Add_Ammo(edict_t *ent, gitem_t *item, int count)
void Cmd_Use_f(edict_t *ent)
qboolean(* pickup)(struct edict_s *ent, struct edict_s *other)
void player_die(edict_t *self, edict_t *inflictor, edict_t *attacker, int damage, vec3_t point)
void SpawnItem(edict_t *ent, gitem_t *item)
void Cmd_WeapLast_f(edict_t *ent)
struct gclient_s * client
char userinfo[MAX_INFO_STRING]
void SelectPrevItem(edict_t *ent, int itflags)
void(* use)(struct edict_s *ent, struct gitem_s *item)
void Cmd_Noclip_f(edict_t *ent)
void Cmd_God_f(edict_t *ent)
void Cmd_Players_f(edict_t *ent)
void G_FreeEdict(edict_t *e)
void Cmd_PutAway_f(edict_t *ent)
int PlayerSort(void const *a, void const *b)
void Cmd_Wave_f(edict_t *ent)
char * Info_ValueForKey(char *s, char *key)
char * ClientTeam(edict_t *ent)
qboolean OnSameTeam(edict_t *ent1, edict_t *ent2)
void Touch_Item(edict_t *ent, edict_t *other, cplane_t *plane, csurface_t *surf)
void Cmd_WeapPrev_f(edict_t *ent)
void Cmd_InvDrop_f(edict_t *ent)
void Cmd_Score_f(edict_t *ent)
void Cmd_PlayerList_f(edict_t *ent)
int Q_stricmp(char *s1, char *s2)
void Cmd_InvUse_f(edict_t *ent)
void(* WriteShort)(int c)
void Cmd_Kill_f(edict_t *ent)
void Cmd_Help_f(edict_t *ent)
void ValidateSelectedItem(edict_t *ent)
void(* cprintf)(edict_t *ent, int printlevel, char *fmt,...)
void(* unicast)(edict_t *ent, qboolean reliable)
void(* drop)(struct edict_s *ent, struct gitem_s *item)
void ClientCommand(edict_t *ent)
void ChaseNext(edict_t *ent)
void Cmd_WeapNext_f(edict_t *ent)
void SelectNextItem(edict_t *ent, int itflags)
void Cmd_Say_f(edict_t *ent, qboolean team, qboolean arg0)
void Cmd_Notarget_f(edict_t *ent)
void Com_sprintf(char *dest, int size, char *fmt,...)
void Cmd_Drop_f(edict_t *ent)