]> 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... terencehill/wepflags_stuff 1373/head
authorterencehill <piuntn@gmail.com>
Thu, 3 Oct 2024 14:56:58 +0000 (16:56 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 3 Oct 2024 14:56:58 +0000 (16:56 +0200)
commit22956103204b9c91a9e67257c9ae9c9275bcffad
treefcbdf9181cd8fb05fa8e125ff53cbb17c4a14b50
parentea4d8dc09d1983afb4e4df09c3e4f9ee4655c530
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