#include "g_local.h"
#include "m_player.h"
Go to the source code of this file.
◆ ClientCommand()
Definition at line 908 of file g_cmds.c.
943 if (
level.intermissiontime)
954 else if (
Q_stricmp (cmd,
"notarget") == 0)
960 else if (
Q_stricmp (cmd,
"invnext") == 0)
962 else if (
Q_stricmp (cmd,
"invprev") == 0)
964 else if (
Q_stricmp (cmd,
"invnextw") == 0)
966 else if (
Q_stricmp (cmd,
"invprevw") == 0)
968 else if (
Q_stricmp (cmd,
"invnextp") == 0)
970 else if (
Q_stricmp (cmd,
"invprevp") == 0)
974 else if (
Q_stricmp (cmd,
"invdrop") == 0)
976 else if (
Q_stricmp (cmd,
"weapprev") == 0)
978 else if (
Q_stricmp (cmd,
"weapnext") == 0)
980 else if (
Q_stricmp (cmd,
"weaplast") == 0)
984 else if (
Q_stricmp (cmd,
"putaway") == 0)
988 else if (
Q_stricmp(cmd,
"playerlist") == 0)
Referenced by GetGameAPI().
◆ ClientTeam()
◆ Cmd_Drop_f()
◆ Cmd_Give_f()
◆ Cmd_God_f()
◆ Cmd_InvDrop_f()
◆ Cmd_Inven_f()
Definition at line 466 of file g_cmds.c.
473 cl->showscores =
false;
474 cl->showhelp =
false;
476 if (
cl->showinventory)
478 cl->showinventory =
false;
482 cl->showinventory =
true;
Referenced by ClientCommand().
◆ Cmd_InvUse_f()
◆ Cmd_Kill_f()
◆ Cmd_Noclip_f()
◆ Cmd_Notarget_f()
◆ Cmd_PlayerList_f()
Definition at line 872 of file g_cmds.c.
892 if (strlen(text) + strlen(
st) >
sizeof(text) - 50) {
893 sprintf(text+strlen(text),
"And more...\n");
Referenced by ClientCommand().
◆ Cmd_Players_f()
Definition at line 693 of file g_cmds.c.
720 if (strlen (small) + strlen(large) >
sizeof(large) - 100 )
722 strcat (large,
"...\n");
725 strcat (large, small);
Referenced by ClientCommand().
◆ Cmd_PutAway_f()
◆ Cmd_Say_f()
Definition at line 787 of file g_cmds.c.
795 if (
gi.
argc () < 2 && !arg0)
808 strcat (text,
gi.
argv(0));
825 if (strlen(text) > 150)
833 if (
level.time <
cl->flood_locktill) {
835 (
int)(
cl->flood_locktill -
level.time));
840 i = (
sizeof(
cl->flood_when)/
sizeof(
cl->flood_when[0])) +
i;
841 if (
cl->flood_when[
i] &&
848 cl->flood_whenhead = (
cl->flood_whenhead + 1) %
849 (
sizeof(
cl->flood_when)/
sizeof(
cl->flood_when[0]));
850 cl->flood_when[
cl->flood_whenhead] =
level.time;
Referenced by ClientCommand().
◆ Cmd_Use_f()
◆ Cmd_Wave_f()
◆ Cmd_WeapLast_f()
◆ Cmd_WeapNext_f()
◆ Cmd_WeapPrev_f()
◆ OnSameTeam()
◆ PlayerSort()
◆ SelectNextItem()
◆ SelectPrevItem()
Definition at line 98 of file g_cmds.c.
106 if (
cl->chase_target) {
120 if (!(it->
flags & itflags))
123 cl->pers.selected_item = index;
127 cl->pers.selected_item = -1;
Referenced by ClientCommand().
◆ ValidateSelectedItem()
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 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)