Commit 27a2df8
committed
Improve crosshair health display
The new implementation has numerous upsides compared to the
previous implementation:
- It indicates the player's health more accurately using a
color gradient well-known among FPS players. Health above 100
is indicated by tinting the crosshair green.
- It's always visible, even in screenshots. Due to lack of animation,
it also avoids hiding the health status on every
loop of the animation (since the crosshair became white).
The variable was renamed from `crosshairflash` to `crosshairhealth`
to reflect the change.1 parent 06f3161 commit 27a2df8
2 files changed
+32
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
487 | | - | |
| 487 | + | |
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1174 | 1174 | | |
1175 | 1175 | | |
1176 | 1176 | | |
1177 | | - | |
| 1177 | + | |
1178 | 1178 | | |
1179 | | - | |
1180 | | - | |
1181 | | - | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
1182 | 1209 | | |
1183 | 1210 | | |
1184 | 1211 | | |
| |||
0 commit comments