]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/items.qc
Started random items mutator.
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / items.qc
1 #include "items.qh"
2
3 /// \file
4 /// \brief Source file that contains implementation of the functions related to
5 /// game items.
6 /// \copyright GNU GPLv2 or any later version.
7
8 .bool m_isloot; ///< Holds whether item is loot.
9
10 bool Item_IsLoot(entity e)
11 {
12         return e.m_isloot || (e.classname == "droppedweapon");
13 }
14
15 void Item_SetLoot(entity e, bool isloot)
16 {
17         e.m_isloot = isloot;
18 }