]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
items: only draw the removal effect when appropriate
authorbones_was_here <bones_was_here@xonotic.au>
Fri, 21 Jul 2023 08:57:27 +0000 (18:57 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Fri, 21 Jul 2023 08:57:27 +0000 (18:57 +1000)
commitb11ef2d3306ddecba0f55576922dd27801e10e03
tree20a0372edfb0832aa8a8e73d96997f7226d7478a
parent105af41cc4fd08115b80ba1c5f8f5f2e8139f886
items: only draw the removal effect when appropriate

Sends an extra update that triggers the effect prior to removal.
Currently only used for loot items when picked up or touching void.

Fixes #2849
without reverting to the old way of sending the effect in SVQC which
caused every player to receive it even if they couldn't see the item,
and without the expense of additional culling.

Changes the pipeline hash because g_powerups_drop_ondeath is enabled by
default and bots remove an item from their goals immediately if it's
deleted, but if it still exists (for 1-2 frames in this case) they only
remove it if it's in their PVS.
.gitlab-ci.yml
qcsrc/client/items/items.qc
qcsrc/common/items/item.qh
qcsrc/server/items/items.qc