]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
powerups: fix #2857 and move g_powerups cvar out of server/items/items.qc
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 4 Jul 2023 12:26:24 +0000 (22:26 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sun, 16 Jul 2023 09:11:00 +0000 (19:11 +1000)
commit15e8bc08862fbec1a40805e8f7912590529e8163
tree1849ed9db10d07ba2ade2cbfb378b42ce0e9c096
parent36f44a38fb8a7926b51419e6c9d5f6de9dd316ee
powerups: fix #2857 and move g_powerups cvar out of server/items/items.qc

This sets ITEM_FLAG_NORMAL initially and adds ITEM_FLAG_MUTATORBLOCKED
about as late as possible: must be done after mapinfo settemps are
applied, see b95beb262077d8f733bbee7cb0d5f4c05b7b3e2f
and before StartItem() calls have_pickup_item().

Moves a little more powerup-specific code out of common code.

Removes some default powerup balance settings which don't need to be in QC.

Clarifies var naming inside powerup m_iteminit() funcs.
qcsrc/common/mutators/mutator/powerups/powerup/invisibility.qh
qcsrc/common/mutators/mutator/powerups/powerup/shield.qh
qcsrc/common/mutators/mutator/powerups/powerup/speed.qh
qcsrc/common/mutators/mutator/powerups/powerup/strength.qh
qcsrc/server/items/items.qc