Print the new damage when g_showbullettrace is turned on

This commit is contained in:
smallmodel 2024-11-17 18:02:57 +01:00
parent 16711a33ef
commit 2342f08a79
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -2264,6 +2264,11 @@ float BulletAttack(
}
newdamage -= damage * bulletdist * throughThingFrac;
if (g_showbullettrace->integer) {
gi.Printf("%.2f\n", newdamage);
}
if (newdamage < 1.f) {
vTmpEnd = vTraceStart + vDir * -4;
trace.fraction = 1.f;