]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
Refactor code to remove WEP_FLAG_SPECIALATTACK checks if WEP_FLAG_HIDDEN is already... 1373/head
authorterencehill <piuntn@gmail.com>
Sat, 4 Jan 2025 14:04:08 +0000 (15:04 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 4 Jan 2025 14:04:08 +0000 (15:04 +0100)
commitc4780dbb6569d4a398794be44fed05c9be060990
treeb43a57699c14bdedfa7f0243ac536e1219c0969b
parentb5a5438f7217f83eaed5f5e1d6b0c5bba1a1c558
Refactor code to remove WEP_FLAG_SPECIALATTACK checks if WEP_FLAG_HIDDEN is already checked.

This refactoring is now possible thanks to the changes of !1344, where all WEP_FLAG_SPECIALATTACK checks have been paired with WEP_FLAG_HIDDEN checks

To make sure WEP_FLAG_HIDDEN is always set on special attacks, weapon initialization code triggers a fatal error if WEP_FLAG_SPECIALATTACK is set but WEP_FLAG_HIDDEN is not.
qcsrc/client/hud/panel/scoreboard.qc
qcsrc/client/hud/panel/weapons.qc
qcsrc/common/weapons/all.qh
qcsrc/common/weapons/weapon.qh
qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.qc
qcsrc/menu/xonotic/keybinder.qc
qcsrc/server/items/items.qc
qcsrc/server/world.qc