/// game items.
/// \copyright GNU GPLv2 or any later version.
-#include "g_subs.qh"
-#include "mutators/events.qh"
+#include <server/mutators/_mod.qh>
#include <common/weapons/all.qh>
+#include <common/mapobjects/subs.qh>
.bool m_isloot; ///< Holds whether item is loot.
/// \brief Holds whether strength, shield or superweapon timers expire while
bool Item_IsLoot(entity item)
{
- return item.m_isloot;
+ return item.m_isloot || item.classname == "droppedweapon";
}
void Item_SetLoot(entity item, bool loot)