X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fitems%2Fitems.qh;h=dff9ccda2356075db87ccae66208428d0f58f00d;hb=af2f0cb624aaf967708b22e1303d113668af5114;hp=7a472aa94cd7f9ccbec9ab96548ca71f508a1227;hpb=350dd64390082f01f29e0d4e4ef70390ba700219;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/items/items.qh b/qcsrc/server/items/items.qh index 7a472aa94..dff9ccda2 100644 --- a/qcsrc/server/items/items.qh +++ b/qcsrc/server/items/items.qh @@ -1,11 +1,13 @@ #pragma once +#include #include float autocvar_g_balance_superweapons_time; bool autocvar_g_fullbrightitems; float autocvar_g_items_mindist; float autocvar_g_items_maxdist; +float autocvar_g_items_dropped_lifetime; int autocvar_g_pickup_items; bool autocvar_g_nodepthtestitems; #define autocvar_g_weapon_stay cvar("g_weapon_stay") @@ -63,7 +65,7 @@ void Item_ScheduleInitialRespawn(entity e); /// \return No return. void GiveRandomWeapons(entity receiver, int num_weapons, string weapon_names, entity ammo_entity); -bool Item_GiveAmmoTo(entity item, entity player, int res_type, float ammomax); +bool Item_GiveAmmoTo(entity item, entity player, Resource res_type, float ammomax); bool Item_GiveTo(entity item, entity player);