Quake II RTX doxygen  1.0 dev
gitem_s Struct Reference

#include <g_local.h>

Public Attributes

char * classname
 
qboolean(* pickup )(struct edict_s *ent, struct edict_s *other)
 
void(* use )(struct edict_s *ent, struct gitem_s *item)
 
void(* drop )(struct edict_s *ent, struct gitem_s *item)
 
void(* weaponthink )(struct edict_s *ent)
 
char * pickup_sound
 
char * world_model
 
int world_model_flags
 
char * view_model
 
char * icon
 
char * pickup_name
 
int count_width
 
int quantity
 
char * ammo
 
int flags
 
int weapmodel
 
voidinfo
 
int tag
 
char * precaches
 

Detailed Description

Definition at line 232 of file g_local.h.

Member Data Documentation

◆ ammo

char* gitem_s::ammo

Definition at line 249 of file g_local.h.

Referenced by PrecacheItem(), and Use_Weapon().

◆ classname

char* gitem_s::classname

Definition at line 233 of file g_local.h.

Referenced by Cmd_Give_f(), Drop_Item(), ED_CallSpawn(), FindItemByClassname(), and PrecacheItem().

◆ count_width

int gitem_s::count_width

Definition at line 246 of file g_local.h.

◆ drop

void(* gitem_s::drop) (struct edict_s *ent, struct gitem_s *item)

Definition at line 236 of file g_local.h.

Referenced by Cmd_Drop_f(), Cmd_InvDrop_f(), and SpawnItem().

◆ flags

◆ icon

char* gitem_s::icon

Definition at line 244 of file g_local.h.

Referenced by G_SetStats(), and PrecacheItem().

◆ info

void* gitem_s::info

Definition at line 254 of file g_local.h.

Referenced by CheckArmor(), and Cmd_Give_f().

◆ pickup

qboolean(* gitem_s::pickup) (struct edict_s *ent, struct edict_s *other)

Definition at line 234 of file g_local.h.

Referenced by Cmd_Give_f(), and SpawnItem().

◆ pickup_name

char* gitem_s::pickup_name

Definition at line 245 of file g_local.h.

Referenced by FindItem(), SetItemNames(), TossClientWeapon(), and Use_Weapon().

◆ pickup_sound

char* gitem_s::pickup_sound

Definition at line 238 of file g_local.h.

Referenced by PrecacheItem().

◆ precaches

char* gitem_s::precaches

Definition at line 257 of file g_local.h.

Referenced by PrecacheItem().

◆ quantity

int gitem_s::quantity

◆ tag

int gitem_s::tag

Definition at line 255 of file g_local.h.

Referenced by Add_Ammo(), and Drop_Ammo().

◆ use

void(* gitem_s::use) (struct edict_s *ent, struct gitem_s *item)

◆ view_model

char* gitem_s::view_model

Definition at line 241 of file g_local.h.

Referenced by PrecacheItem().

◆ weapmodel

int gitem_s::weapmodel

Definition at line 252 of file g_local.h.

◆ weaponthink

void(* gitem_s::weaponthink) (struct edict_s *ent)

Definition at line 237 of file g_local.h.

◆ world_model

char* gitem_s::world_model

Definition at line 239 of file g_local.h.

Referenced by PrecacheItem().

◆ world_model_flags

int gitem_s::world_model_flags

Definition at line 240 of file g_local.h.

Referenced by Drop_Item(), and SpawnItem().