mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Print the new damage when g_showbullettrace is turned on
This commit is contained in:
parent
16711a33ef
commit
2342f08a79
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue