]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commit
items: call FilterItem mutator hook earlier as it may change almost anything
authorbones_was_here <bones_was_here@xonotic.au>
Sun, 16 Jul 2023 09:10:14 +0000 (19:10 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sun, 16 Jul 2023 09:10:14 +0000 (19:10 +1000)
commit36f44a38fb8a7926b51419e6c9d5f6de9dd316ee
tree33896995f7248b4b2d7a2ff4172a8e8699c689da
parent1b6a9ae1d36e2b2a96d03b2cbe05aa0524363dc8
items: call FilterItem mutator hook earlier as it may change almost anything

such as the pickup sound (new toys).

Documents what FilterItem may and may not do.

Allows mutators to override the pickup model, consistent with being able
to override the sound.

Reduces code duplication.
qcsrc/server/items/items.qc