|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "items.qh"#include <common/checkextension.qh>#include <common/constants.qh>#include <common/deathtypes/all.qh>#include <common/gametypes/gametype/cts/cts.qh>#include <common/items/_mod.qh>#include <common/mapobjects/subs.qh>#include <common/mapobjects/triggers.qh>#include <common/monsters/_mod.qh>#include <common/mutators/mutator/buffs/_mod.qh>#include <common/mutators/mutator/powerups/_mod.qh>#include <common/mutators/mutator/status_effects/_mod.qh>#include <common/net_linked.qh>#include <common/notifications/all.qh>#include <common/resources/resources.qh>#include <common/util.qh>#include <common/weapons/_all.qh>#include <common/wepent.qh>#include <lib/warpzone/common.qh>#include <lib/warpzone/util_server.qh>#include <server/bot/api.qh>#include <server/command/vote.qh>#include <server/damage.qh>#include <server/mutators/_mod.qh>#include <server/teamplay.qh>#include <server/weapons/common.qh>#include <server/weapons/selection.qh>#include <server/weapons/weaponsystem.qh>#include <server/world.qh>Go to the source code of this file.
Macros | |
| #define | IS_SMALL(def) |
Functions | |
| float | adjust_respawntime (float normal_respawntime) |
| Adjust respawn time according to the number of players. | |
| float | ammo_pickupevalfunc (entity player, entity item) |
| AUTOCVAR (g_pickup_respawntime_initial_random, int, 1, "for items that don't start spawned; \\\"0\\\" = spawn after their normal respawntime, \\\"1\\\" = spawn after `random * respawntime` with the *same* random, \\\"2\\\" = same as 1 but each item has separate random") | |
| AUTOCVAR (g_pickup_respawntime_scaling_linear, float, 1.0, "multiply respawn time by `reciprocal / (p + offset) + linear` where `p` is the current number of players, takes effect with 2 or more players present, `linear` can be used to simply scale the respawn time linearly") | |
| AUTOCVAR (g_pickup_respawntime_scaling_offset, float, 0.0, "multiply respawn time by `reciprocal / (p + offset) + linear` where `p` is the current number of players, takes effect with 2 or more players present, `offset` offsets the curve left or right (NOTE: results are not intuitive and it is recommend to plot the respawn time and the number of items per player to see what's happening)") | |
| AUTOCVAR (g_pickup_respawntime_scaling_reciprocal, float, 0.0, "multiply respawn time by `reciprocal / (p + offset) + linear` where `p` is the current number of players, takes effect with 2 or more players present, `reciprocal` (with `offset` and `linear` set to \\\"0\\\") can be used to achieve a constant number of items spawned *per player*") | |
| float | generic_pickupevalfunc (entity player, entity item) |
| bool | GiveBuff (entity e, Buff thebuff, int op, int val) |
| float | GiveItems (entity e, float beginarg, float endarg) |
| void | GiveRandomWeapons (entity receiver, int num_weapons, string weapon_names, entity ammo_entity) |
| Give several random weapons and ammo to the entity. | |
| bool | GiveResourceValue (entity e, Resource res_type, int op, int val) |
| void | GiveRot (entity e, float v0, float v1,.float rotfield, float rottime,.float regenfield, float regentime) |
| void | GiveSound (entity e, float v0, float v1, float t, Sound snd_incr, Sound snd_decr) |
| bool | GiveStatusEffect (entity e, StatusEffect this, int op, float val) |
| float | GiveWeapon (entity e, float wpn, float op, float val) |
| bool | have_pickup_item (entity this) |
| float | healtharmor_pickupevalfunc (entity player, entity item) |
| void | Item_CopyFields (entity this, entity to) |
| void | Item_Damage (entity this, entity inflictor, entity attacker, float damage, int deathtype,.entity weaponentity, vector hitloc, vector force) |
| void | Item_FindTeam (entity this) |
| bool | Item_GiveAmmoTo (entity item, entity player, Resource res_type, float ammomax) |
| bool | Item_GiveTo (entity item, entity player) |
| bool | Item_ItemsTime_Allow (GameItem it) |
| void | Item_ItemsTime_SetTime (entity e, float t) |
| void | Item_ItemsTime_SetTimesForAllPlayers () |
| bool | Item_ItemsTime_SpectatorOnly (GameItem it) |
| float | Item_ItemsTime_UpdateTime (entity e, float t) |
| void | Item_NotifyWeapon (entity player, int wep) |
| void | Item_Reset (entity this) |
| void | Item_Respawn (entity this) |
| void | Item_RespawnCountdown (entity this) |
| void | Item_RespawnThink (entity this) |
| void | Item_ScheduleInitialRespawn (entity e) |
| void | Item_ScheduleRespawn (entity e) |
| void | Item_ScheduleRespawnIn (entity e, float t) |
| void | item_setactive (entity this, int act) |
| void | Item_Show (entity e, int mode) |
| void | Item_Think (entity this) |
| void | Item_Touch (entity this, entity toucher) |
| void | item_use (entity this, entity actor, entity trigger) |
| bool | ItemSend (entity this, entity to, int sf) |
| void | ItemUpdate (entity this) |
| void | RemoveItem (entity this) |
| void | setItemGroup (entity this) |
| void | setItemGroupCount () |
| spawnfunc (target_items) | |
| void | StartItem (entity this, entity def) |
| void | target_items_use (entity this, entity actor, entity trigger) |
| void | UpdateItemAfterTeleport (entity this) |
| float | weapon_pickupevalfunc (entity player, entity item) |
Variables | |
| int | group_count = 1 |
| #define IS_SMALL | ( | def | ) |
Definition at line 1257 of file items.qc.
Referenced by setItemGroup(), and setItemGroupCount().
Adjust respawn time according to the number of players.
Definition at line 363 of file items.qc.
References entity(), NULL, NUM_TEAMS, players, TeamBalance_CheckAllowedTeams(), TeamBalance_Destroy(), TeamBalance_GetNumberOfPlayers(), TeamBalance_GetTeamCounts(), and TeamBalance_IsTeamAllowed().
Referenced by Item_ScheduleRespawn().
Definition at line 908 of file items.qc.
References ammo, entity(), FOREACH, GetAmmoItem(), GetResource(), GetResourceLimit(), max(), min(), NULL, STAT, and Weapons.
Referenced by Ammo::float(), FuelRegen::float(), Jetpack::float(), and weapon_pickupevalfunc().
| AUTOCVAR | ( | g_pickup_respawntime_initial_random | , |
| int | , | ||
| 1 | , | ||
| "for items that don't start spawned; \\\"0\\\" | = spawn after their normal respawntime, | ||
| \\\"1\\\" | = spawn after `random * respawntime` with the *same* random ) |
| AUTOCVAR | ( | g_pickup_respawntime_scaling_linear | , |
| float | , | ||
| 1. | 0, | ||
| "multiply respawn time by `reciprocal / (p + offset) + linear` where `p` is the current number of | players, | ||
| takes effect with 2 or more players | present, | ||
| `linear` can be used to simply scale the respawn time linearly" | ) |
| AUTOCVAR | ( | g_pickup_respawntime_scaling_offset | , |
| float | , | ||
| 0. | 0, | ||
| "multiply respawn time by `reciprocal / (p + offset) + linear` where `p` is the current number of | players, | ||
| takes effect with 2 or more players | present, | ||
| `offset` offsets the curve left or right(NOTE:results are not intuitive and it is recommend to plot the respawn time and the number of items per player to see what 's happening)" | ) |
| AUTOCVAR | ( | g_pickup_respawntime_scaling_reciprocal | , |
| float | , | ||
| 0. | 0, | ||
| "multiply respawn time by `reciprocal / (p + offset) + linear` where `p` is the current number of | players, | ||
| takes effect with 2 or more players | present, | ||
| `reciprocal`(with `offset` and `linear` set to \\\"0\\\") can be used to achieve a constant number of items spawned *per player*" | ) |
Definition at line 884 of file items.qc.
References entity().
Referenced by buff_Init().
Definition at line 1484 of file items.qc.
References buff_RemoveAll(), entity(), max(), min(), OP_MAX, OP_MIN, OP_MINUS, OP_PLUS, OP_SET, STATUSEFFECT_REMOVE_CLEAR, STATUSEFFECT_REMOVE_NORMAL, StatusEffects_active(), StatusEffects_apply(), StatusEffects_gettime(), StatusEffects_remove(), and time.
Definition at line 1593 of file items.qc.
References argv(), autocvar_g_balance_pause_armor_rot, autocvar_g_balance_pause_fuel_regen, autocvar_g_balance_pause_fuel_rot, autocvar_g_balance_pause_health_regen, autocvar_g_balance_pause_health_rot, autocvar_g_balance_superweapons_time, BIT, buff_Available(), Buff_CompatName(), client_hasweapon(), cmd(), CS_CVAR, entity(), FOREACH, g_cts, g_weaponarena, GiveBit(), GiveResourceValue(), GiveStatusEffect(), GiveWeapon(), IT_UNLIMITED_AMMO, IT_UNLIMITED_SUPERWEAPONS, items, MAX_WEAPONSLOTS, OP_MAX, OP_MIN, OP_MINUS, OP_PLUS, OP_SET, pauseregen_finished, pauserotarmor_finished, pauserotfuel_finished, pauserothealth_finished, POSTGIVE_BIT, POSTGIVE_RES_ROT, POSTGIVE_RESOURCE, POSTGIVE_STATUSEFFECT, POSTGIVE_WEAPON, PREGIVE, PREGIVE_RESOURCE, PREGIVE_STATUSEFFECT, PREGIVE_WEAPONS, RES_ARMOR, STAT, StatusEffects_active(), StatusEffects_apply(), StatusEffects_update(), stof(), time, w_getbestweapon, W_SwitchWeapon_Force(), weaponentities, Weapons, WEP_FLAG_HIDDEN, WEP_FLAG_MUTATORBLOCKED, WepSet_FromWeapon, and WEPSET_SUPERWEAPONS.
Referenced by CheatCommand(), and target_items_use().
| void GiveRandomWeapons | ( | entity | receiver, |
| int | num_weapons, | ||
| string | weapon_names, | ||
| entity | ammo_entity ) |
Give several random weapons and ammo to the entity.
| [in,out] | receiver | Entity to give weapons to. |
| [in] | num_weapons | Number of weapons to give. |
| [in] | weapon_names | Names of weapons to give separated by spaces. |
| [in] | ammo | Entity containing the ammo amount for each possible weapon. |
Definition at line 446 of file items.qc.
References argv(), entity(), FOREACH, GetResource(), GiveResource(), NULL, RandomSelection_AddEnt, RandomSelection_chosen_ent, RandomSelection_Init(), STAT, tokenize_console, weapon, and Weapons.
Referenced by PutPlayerInServer().
Definition at line 1543 of file items.qc.
References entity(), GetResource(), max(), min(), OP_MAX, OP_MIN, OP_MINUS, OP_PLUS, OP_SET, and SetResourceExplicit().
Referenced by GiveItems().
Definition at line 1520 of file items.qc.
References ATTEN_NORM, CH_TRIGGER, CH_TRIGGER_SINGLE, entity(), NULL, sound, and VOL_BASE.
| bool GiveStatusEffect | ( | entity | e, |
| StatusEffect | this, | ||
| int | op, | ||
| float | val ) |
Definition at line 1560 of file items.qc.
References entity(), max(), min(), OP_MAX, OP_MIN, OP_MINUS, OP_PLUS, OP_SET, STATUSEFFECT_REMOVE_NORMAL, StatusEffects_active(), StatusEffects_apply(), StatusEffects_gettime(), StatusEffects_remove(), and time.
Referenced by GiveItems().
Definition at line 1453 of file items.qc.
References entity(), OP_MAX, OP_MIN, OP_MINUS, OP_PLUS, OP_SET, REGISTRY_GET, STAT, Weapons, and WepSet_FromWeapon.
Referenced by GiveItems().
Definition at line 113 of file items.qc.
References autocvar_g_pickup_items, entity(), g_weaponarena, ITEM_FLAG_MUTATORBLOCKED, itemdef, and STAT.
Referenced by StartItem().
Definition at line 956 of file items.qc.
References entity(), GetResource(), max(), min(), and RES_ARMOR.
Referenced by Armor::float(), and Health::float().
Definition at line 850 of file items.qc.
References cnt, entity(), ITEM_SHOULD_KEEP_POSITION, origin, spawnflags, and team.
Referenced by instagib_replace_item_with(), lms_replace_with_extralife(), MUTATOR_HOOKFUNCTION(), RandomItems_ReplaceMapItem(), and weapon_defaultspawnfunc().
| void Item_Damage | ( | entity | this, |
| entity | inflictor, | ||
| entity | attacker, | ||
| float | damage, | ||
| int | deathtype, | ||
| .entity | weaponentity, | ||
| vector | hitloc, | ||
| vector | force ) |
Definition at line 980 of file items.qc.
References entity(), ITEM_DAMAGE_NEEDKILL, RemoveItem(), and vector.
Referenced by StartItem().
Definition at line 812 of file items.qc.
References EF_NOGUNBOB, effects, entity(), ftos(), g_items, IL_EACH, LOG_TRACE, RandomSelection_chosen_ent, RandomSelection_Init(), and team.
Referenced by StartItem().
Definition at line 491 of file items.qc.
References entity(), g_weapon_stay, GetResource(), GiveResourceWithLimit(), min(), and TakeResourceWithLimit().
Referenced by Item_GiveTo().
Definition at line 528 of file items.qc.
References autocvar_g_pickup_cells_max, autocvar_g_pickup_fuel_max, autocvar_g_pickup_nails_max, autocvar_g_pickup_rockets_max, autocvar_g_pickup_shells_max, autocvar_g_powerups_stack, BIT, client_hasweapon(), CS_CVAR, entity(), FOREACH, g_cts, IT_FUEL_REGEN, IT_JETPACK, IT_PICKUPMASK, Item_GiveAmmoTo(), Item_NotifyWeapon(), max(), MAX_WEAPONSLOTS, REGISTRY_GET, RES_ARMOR, Send_Notification(), STAT, StatusEffects_apply(), StatusEffects_gettime(), time, W_DropEvent(), w_getbestweapon, W_GiveWeapon(), W_SwitchWeapon_Force(), weaponentities, Weapons, and WepSet_FromWeapon.
Referenced by Pickup::giveTo(), and WeaponPickup::giveTo().
Definition at line 66 of file itemstime.qc.
References Item_ItemsTime_SpectatorOnly().
Referenced by HUD_ItemsTime(), Item_ItemsTime_ResetTimes(), Item_ItemsTime_ResetTimesForPlayer(), Item_ItemsTime_SetTimesForPlayer(), Item_Respawn(), and Item_ScheduleRespawnIn().
Definition at line 107 of file itemstime.qc.
References autocvar_sv_itemstime, entity(), it_times, GameItem::m_id, REGISTRY_MAX, STAT, and WEPSET_SUPERWEAPONS.
Referenced by Item_Respawn(), Item_ScheduleRespawnIn(), and StartItem().
| void Item_ItemsTime_SetTimesForAllPlayers | ( | ) |
Definition at line 122 of file itemstime.qc.
References autocvar_sv_itemstime, FOREACH_CLIENT, IS_PLAYER, IS_REAL_CLIENT, Item_ItemsTime_SetTimesForPlayer(), and warmup_stage.
Referenced by Item_Respawn(), Item_ScheduleRespawnIn(), and MUTATOR_HOOKFUNCTION().
Definition at line 58 of file itemstime.qc.
References hud_panel_itemstime_hidebig.
Referenced by Item_ItemsTime_Allow(), and Item_RespawnCountdown().
Definition at line 129 of file itemstime.qc.
References entity(), g_items, IL_EACH, STAT, time, and WEPSET_SUPERWEAPONS.
Referenced by Item_Respawn(), and Item_ScheduleRespawnIn().
Definition at line 519 of file items.qc.
References entity(), FOREACH_CLIENT, IS_REAL_CLIENT, and IS_SPEC.
Referenced by Item_GiveTo().
Definition at line 791 of file items.qc.
References active, ACTIVE_ACTIVE, entity(), ITEM_IS_LOOT, Item_ScheduleInitialRespawn(), Item_Show(), Item_Think(), itemdef, nextthink, setthink, STAT, state, time, waypointsprite_attached, WaypointSprite_Kill(), and WEPSET_SUPERWEAPONS.
Referenced by StartItem().
Definition at line 242 of file items.qc.
References ATTEN_NORM, CH_TRIGGER, entity(), Item_ItemsTime_Allow(), Item_ItemsTime_SetTime(), Item_ItemsTime_SetTimesForAllPlayers(), Item_ItemsTime_UpdateTime(), Item_Show(), Item_Think(), itemdef, nextthink, setthink, sound, STAT, time, VOL_BASE, and WEPSET_SUPERWEAPONS.
Referenced by Item_RespawnCountdown(), and Item_RespawnThink().
Definition at line 258 of file items.qc.
References ATTEN_NORM, CH_TRIGGER, entity(), FOREACH_CLIENT, IS_REAL_CLIENT, Item_ItemsTime_SpectatorOnly(), Item_Respawn(), ITEM_RESPAWN_TICKS, Item_RespawnCountdown(), item_respawncounter, itemdef, msg_entity, MSG_ONE, MUTATOR_CALLHOOK, nextthink, NULL, REGISTRY_GET, SND, soundto(), SPRITERULE_SPECTATOR, time, VOL_BASE, waypointsprite_attached, WaypointSprite_Kill(), WaypointSprite_Ping(), WaypointSprite_Spawn(), WaypointSprite_UpdateBuildFinished(), WaypointSprite_UpdateRule(), weapon, and Weapons.
Referenced by Item_RespawnCountdown(), Item_ScheduleRespawnIn(), MUTATOR_HOOKABLE(), and MUTATOR_HOOKFUNCTION().
Definition at line 316 of file items.qc.
References entity(), Item_Respawn(), ItemUpdate(), nextthink, oldorigin, origin, time, and wait.
Referenced by Item_ScheduleRespawnIn().
Definition at line 411 of file items.qc.
References entity(), floor(), game_starttime, ITEM_RESPAWN_TICKS, Item_ScheduleRespawnIn(), Item_Show(), max(), random(), and time.
Referenced by Item_Reset().
Definition at line 391 of file items.qc.
References adjust_respawntime(), crandom, entity(), Item_ScheduleRespawnIn(), and Item_Show().
Referenced by Item_ScheduleRespawnIn(), MUTATOR_HOOKABLE(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 326 of file items.qc.
References entity(), Item_ItemsTime_Allow(), Item_ItemsTime_SetTime(), Item_ItemsTime_SetTimesForAllPlayers(), Item_ItemsTime_UpdateTime(), ITEM_RESPAWN_TICKS, Item_RespawnCountdown(), Item_RespawnThink(), Item_ScheduleRespawn(), max(), MUTATOR_CALLHOOK, setthink, STAT, time, and WEPSET_SUPERWEAPONS.
Referenced by Item_ScheduleInitialRespawn(), and Item_ScheduleRespawn().
Definition at line 992 of file items.qc.
References active, ACTIVE_ACTIVE, ACTIVE_NOT, ACTIVE_TOGGLE, entity(), and Item_Show().
Referenced by StartItem().
Definition at line 131 of file items.qc.
References autocvar_g_fullbrightitems, autocvar_g_nodepthtestitems, autocvar_sv_simple_items, EF_ADDITIVE, EF_FULLBRIGHT, EF_NODEPTHTEST, EF_STARDUST, entity(), g_weapon_stay, ISF_STATUS, ITS_ALLOWFB, ITS_ALLOWSI, ITS_AVAILABLE, ITS_GLOW, ITS_STAYWEP, SOLID_NOT, SOLID_TRIGGER, string_null, and WEPSET_SUPERWEAPONS.
Referenced by Item_Reset(), Item_Respawn(), Item_ScheduleInitialRespawn(), Item_ScheduleRespawn(), item_setactive(), and Item_Touch().
Definition at line 193 of file items.qc.
References entity(), gravity, IS_ONGROUND, ISF_STATUS, IT_DESPAWNFX_TIME, IT_UPDATE_INTERVAL, ITEM_IS_LOOT, itemdef, ItemStatus, ItemUpdate(), ITS_EXPIRING, min(), nextthink, oldorigin, origin, powerups_DropItem_Think(), RemoveItem(), SendFlags, setthink, time, velocity, and wait.
Referenced by Item_Reset(), Item_Respawn(), and StartItem().
Definition at line 692 of file items.qc.
References _sound, ATTEN_NORM, CH_TRIGGER, CH_TRIGGER_SINGLE, entity(), FL_PICKUPITEMS, g_items, IL_EACH, invincible_finished, invisibility_finished, IS_DEAD, ISF_REMOVEFX, IT_RESOURCE, ITEM_HANDLE, ITEM_IS_EXPIRING, ITEM_IS_LOOT, item_pickupsound, Item_Show(), item_spawnshieldtime, ITEM_TOUCH_NEEDKILL, itemdef, LABEL, M_ARGV, max(), MUT_ITEMTOUCH_PICKUP, MUT_ITEMTOUCH_RETURN, MUTATOR_CALLHOOK, NULL, owner, RandomSelection_chosen_ent, RandomSelection_Init(), RemoveItem(), SendFlags, solid, SOLID_TRIGGER, spawnshieldtime, speed_finished, STAT, strength_finished, SUB_UseTargets(), superweapons_finished, target, team, time, toucher, and VOL_BASE.
Referenced by StartItem().
Definition at line 986 of file items.qc.
References entity(), and gettouch.
Referenced by StartItem().
Definition at line 32 of file items.qc.
References angles, bound(), classname, colormap, entity(), fade_end, glowmod, gravity, ISF_ANGLES, ISF_COLORMAP, ISF_DROP, ISF_LOCATION, ISF_SIZE, ISF_SIZE2, ISF_STATUS, ITEM_L_MAXS, ITEM_S_MAXS, ItemStatus, LOG_TRACE, maxs, mdl, MSG_ENTITY, origin, skin, velocity, WriteByte(), WriteHeader, WriteShort(), and WriteString().
Referenced by StartItem(), UpdateCSQCProjectile(), and UpdateItemAfterTeleport().
Definition at line 101 of file items.qc.
References entity(), ISF_LOCATION, oldorigin, origin, and SendFlags.
Referenced by Item_RespawnThink(), Item_Think(), UpdateCSQCProjectile(), and UpdateItemAfterTeleport().
Definition at line 864 of file items.qc.
References autocvar_sys_ticrate, entity(), ISF_REMOVEFX, nextthink, RemoveItem(), SendFlags, setthink, solid, SOLID_NOT, time, waypointsprite_attached, and WaypointSprite_Kill().
Referenced by Item_Damage(), Item_Think(), Item_Touch(), RemoveItem(), and StartItem().
Definition at line 1260 of file items.qc.
References entity(), FOREACH_ENTITY_RADIUS, IS_SMALL, ITEM_IS_LOOT, itemdef, and origin.
Referenced by StartItem().
| void setItemGroupCount | ( | ) |
| spawnfunc | ( | target_items | ) |
Definition at line 1331 of file items.qc.
References argv(), argv_end_index, argv_start_index, autocvar_g_balance_powerup_invincible_time, autocvar_g_balance_powerup_invisibility_time, autocvar_g_balance_powerup_speed_time, autocvar_g_balance_powerup_strength_time, autocvar_g_balance_superweapons_time, buffdef, buffs_finished, error, FOREACH, GetResource(), invincible_finished, invisibility_finished, IT_SUPERWEAPON, IT_UNLIMITED_AMMO, IT_UNLIMITED_SUPERWEAPONS, items, max(), netname, RES_ARMOR, spawnflags, speed_finished, STAT, strength_finished, string_null, substring(), superweapons_finished, target_items_use(), tokenize_console, use, and Weapons.
Definition at line 1004 of file items.qc.
References active, ACTIVE_ACTIVE, angles, autocvar_g_items_dropped_lifetime, autocvar_g_items_maxdist, autocvar_spawn_debug, bot_pickup, bot_pickupbasevalue, classname, cnt, colormap, DAMAGE_YES, DPCONTENTS_NODROP, DropToFloor_QC_DelayedInit(), EF_NOGUNBOB, effects, entity(), fade_end, FL_ITEM, flags, FOREACH_ENTITY_RADIUS, g_items, GetField_fullspawndata(), GetResource(), glowmod, gravity, have_pickup_item(), IL_PUSH(), InitializeEntity(), INITPRIO_FINDTARGET, invincible_finished, is_item, ISF_ANGLES, ISF_COLORMAP, IT_KEY1, IT_KEY2, IT_UPDATE_INTERVAL, Item_Damage(), Item_FindTeam(), ITEM_IS_EXPIRING, ITEM_IS_LOOT, Item_ItemsTime_SetTime(), item_model_ent, item_pickupsound, item_pickupsound_ent, Item_Reset(), item_setactive(), item_spawnshieldtime, Item_Think(), Item_Touch(), item_use(), itemdef, items, ItemSend(), ItemStatus, ITS_ANIMATE1, ITS_ANIMATE2, LOG_WARNF, max(), mdl, mins, model, MOVE_NORMAL, MOVETYPE_NONE, MOVETYPE_TOSS, MUTATOR_CALLHOOK, Net_LinkEntity(), netname, nextthink, noalign, NULL, origin, owner, pickup_anyway, pos1, precache_sound(), q3compat, REGISTRY_GET, RemoveItem(), RES_ARMOR, respawntime, SendFlags, set_movetype(), setItemGroup(), setmodel, setthink, settouch, skin, Sound_fixpath, spawnflags, startitem_failed, STAT, state, strength_finished, strzone(), superweapons_finished, takedamage, target, targetname, team, time, trace_dpstartcontents, use, wait, waypoint_spawnforitem(), weapon, Weapons, weaponsInMap, and WepSet_FromWeapon.
Referenced by instagib_replace_item_with(), Item_Initialise(), lms_replace_with_extralife(), and weapon_defaultspawnfunc().
Definition at line 1305 of file items.qc.
References centerprint(), entity(), EXACTTRIGGER_TOUCH, g_items, GiveItems(), IL_EACH, IS_DEAD, IS_PLAYER, ITEM_IS_LOOT, message, netname, SOLID_TRIGGER, and tokenize_console.
Referenced by spawnfunc().
Definition at line 107 of file items.qc.
References entity(), getSendEntity, ItemSend(), and ItemUpdate().
Referenced by TeleportPlayer(), and WarpZone_PostTeleportPlayer_Callback().
Definition at line 886 of file items.qc.
References ammo_pickupevalfunc(), bound(), entity(), FOREACH, STAT, and Weapons.
| int group_count = 1 |
Definition at line 1258 of file items.qc.
Referenced by setItemGroupCount().