25 #include "../../../../client.h"
26 #include "../../../cl_localentity.h"
99 Com_Error(
ERR_DROP,
"InvAdd for ET_ITEM but target container is not the floor but %i", container);
100 }
else if (
INVDEF(container)->temp) {
105 Com_Error(
ERR_DROP,
"InvAdd failed - could not add %i item(s) of %s to container %i",
static void CL_NetReceiveItem(dbuffer *buf, Item *item, containerIndex_t *container, int *x, int *y)
void setAmmoLeft(int value)
int CL_InvAddTime(const struct eventRegister_s *self, dbuffer *msg, eventTiming_t *eventTiming)
Decides if following events should be delayed.
const objDef_t * def(void) const
void NET_ReadFormat(dbuffer *buf, const char *format,...)
The user-friendly version of NET_ReadFormat that reads variable arguments from a buffer according to ...
void setDef(const objDef_t *objDef)
void CL_InvAdd(const eventRegister_t *self, dbuffer *msg)
void LE_PlaceItem(le_t *le)
CL_ParseEvent timers and vars.
void Com_Error(int code, const char *fmt,...)
void Cmd_ExecuteString(const char *text,...)
A complete command line has been parsed, so try to execute it.
item instance data, with linked list capability
le_t * LE_Get(int entnum)
Searches all local entities for the one with the searched entnum.
#define LE_IsSelected(le)
const eventRegister_t * CL_GetEvent(const event_t eType)
int NET_ReadShort(dbuffer *buf)
#define LE_REMOVE_NEXT_FRAME
#define INVDEF(containerID)
const char * formatString
The format string that is used to write and parse this event.
Struct that defines one particular event with all its callbacks and data.
Item * addToInventory(Inventory *const inv, const Item *const item, const invDef_t *container, int x, int y, int amount) __attribute__((warn_unused_result))
Add an item to a specified container in a given inventory.
void setAmmoDef(const objDef_t *od)
void setAmount(int value)
const objDef_t * INVSH_GetItemByIDX(int index)
Returns the item that belongs to the given index or nullptr if the index is invalid.
void LE_SetThink(le_t *le, localEntityThinkFunc_t think)
void LET_StartIdle(le_t *le)
Change the animation of an actor to the idle animation (which can be panic, dead or stand) ...
#define LE_NotFoundError(entnum)