]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
HUD: implement a 2d directional hit indicator around the screen center when a player... terencehill/hud_hit_indicator
authorterencehill <piuntn@gmail.com>
Mon, 29 Jan 2024 11:26:40 +0000 (12:26 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 29 Jan 2024 11:26:40 +0000 (12:26 +0100)
commit37675fbd82ecd04eb9f43de5acb3b480d5c2f3d0
tree74028527d6aecbff74cc60c4daeac07b0e88dde8
parentc15f8fc9049fd33a4795dd63567a9c4c9e5c1f40
HUD: implement a 2d directional hit indicator around the screen center when a player hits you

* only 1 indicator at a time
* starts fading out as soon as it's shown
* the higher the damage, the bigger the indicator size
* damage is accumulated for a second (and indicator gets bigger)
* not shown if the attacker is not visible
* not shown when chase_active is enabled
qcsrc/client/view.qc
qcsrc/client/view.qh
qcsrc/common/effects/qc/damageeffects.qc
qcsrc/common/mutators/mutator/waypoints/waypointsprites.qc
qcsrc/common/mutators/mutator/waypoints/waypointsprites.qh
qcsrc/common/turrets/cl_turrets.qc
xonotic-client.cfg