vkQuake2 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 236 of file g_local.h.

Member Data Documentation

◆ ammo

char* gitem_s::ammo

Definition at line 254 of file g_local.h.

Referenced by ChangeWeapon(), Pickup_Weapon(), PrecacheItem(), and Use_Weapon().

◆ classname

char* gitem_s::classname

◆ count_width

int gitem_s::count_width

Definition at line 251 of file g_local.h.

◆ drop

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

Definition at line 241 of file g_local.h.

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

◆ flags

◆ icon

char* gitem_s::icon

Definition at line 249 of file g_local.h.

Referenced by G_SetStats(), PrecacheItem(), and Touch_Item().

◆ info

void* gitem_s::info

Definition at line 259 of file g_local.h.

Referenced by CheckArmor(), Cmd_Give_f(), and Pickup_Armor().

◆ pickup

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

Definition at line 239 of file g_local.h.

Referenced by Cmd_Give_f(), SpawnItem(), and Touch_Item().

◆ pickup_name

char* gitem_s::pickup_name

Definition at line 250 of file g_local.h.

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

◆ pickup_sound

char* gitem_s::pickup_sound

Definition at line 243 of file g_local.h.

Referenced by PrecacheItem(), and Touch_Item().

◆ precaches

char* gitem_s::precaches

Definition at line 262 of file g_local.h.

Referenced by PrecacheItem().

◆ quantity

◆ tag

int gitem_s::tag

Definition at line 260 of file g_local.h.

Referenced by Add_Ammo(), Drop_Ammo(), and Pickup_Armor().

◆ use

◆ view_model

char* gitem_s::view_model

Definition at line 246 of file g_local.h.

Referenced by ChangeWeapon(), PrecacheItem(), and PutClientInServer().

◆ weapmodel

int gitem_s::weapmodel

Definition at line 257 of file g_local.h.

Referenced by ChangeWeapon().

◆ weaponthink

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

Definition at line 242 of file g_local.h.

Referenced by Think_Weapon().

◆ world_model

char* gitem_s::world_model

Definition at line 244 of file g_local.h.

Referenced by Drop_Item(), droptofloor(), and PrecacheItem().

◆ world_model_flags

int gitem_s::world_model_flags

Definition at line 245 of file g_local.h.

Referenced by Drop_Item(), and SpawnItem().