Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
pickup.qc
Go to the documentation of this file.
1#include "pickup.qh"
3
4#ifdef SVQC
5bool ITEM_HANDLE(Pickup, entity this, entity item, entity player) {
6 return this.giveTo(this, item, player);
7}
8
9METHOD(Pickup, giveTo, bool(Pickup this, entity item, entity player))
10{
11 TC(Pickup, this);
12 bool b = Item_GiveTo(item, player);
13 if (b)
14 Inventory_pickupitem(this, player);
15 return b;
16}
17
18#endif
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
virtual void giveTo()
Definition pickup.qc:9
#define ITEM_HANDLE(signal,...)
Definition item.qh:125
void Inventory_pickupitem(Pickup this, entity player)
Definition inventory.qh:161
#define TC(T, sym)
Definition _all.inc:82
#define METHOD(cname, name, prototype)
Definition oo.qh:269
bool Item_GiveTo(entity item, entity player)
Definition items.qc:528