]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
HUD hit indicator: implement a 2d directional hit indicator around the screen center...
authorterencehill <piuntn@gmail.com>
Wed, 14 Feb 2024 00:23:49 +0000 (01:23 +0100)
committerterencehill <piuntn@gmail.com>
Wed, 14 Feb 2024 21:53:38 +0000 (22:53 +0100)
commit9e0582042285d472c0223e67b0db3615e767e53c
tree311f482f01bd8a4607359723b3397a74dfa68aaf
parent94d74449f36b5750f1d1450b02c3817f179211b1
HUD hit indicator: implement a 2d directional hit indicator around the screen center when a player hits you

* for now only 1 indicator at a time
* starts to fade out as soon as it appears
* the higher the damage, the bigger the indicator size
* damage is accumulated
* hidden when the attacker is not visible
* disabled if chase_active is enabled
* shown while spectating a player too
* implemented as an extension of damagetext (requires sv_damagetext >= 2)

Extra: added cl_damagetext_received (disabled by default) that allows displaying damage text when you receive damage too
qcsrc/client/view.qc
qcsrc/client/view.qh
qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qc
qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qh
qcsrc/common/mutators/mutator/damagetext/sv_damagetext.qc
qcsrc/common/mutators/mutator/waypoints/waypointsprites.qc
qcsrc/common/mutators/mutator/waypoints/waypointsprites.qh
qcsrc/common/turrets/cl_turrets.qc
xonotic-client.cfg