From: terencehill Date: Wed, 9 Aug 2023 11:50:33 +0000 (+0200) Subject: debug prints X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9057d2e3e3b4ecddd49eb106f2fd4edb45224c1f;p=xonotic%2Fxonotic-data.pk3dir.git debug prints --- diff --git a/qcsrc/server/damage.qc b/qcsrc/server/damage.qc index 44bce18a8..cc73c1e35 100644 --- a/qcsrc/server/damage.qc +++ b/qcsrc/server/damage.qc @@ -1097,6 +1097,7 @@ float Fire_AddDamage(entity e, entity o, float d, float t, float dt) mintime = fireendtime - time; maxtime = max(mintime, t); + LOG_INFOF("^3Fire_AddDamage: player %s: mintime = %f, maxtime = %f\n", e.netname, mintime, maxtime); mindps = e.fire_damagepersec; maxdps = max(mindps, dps); @@ -1170,6 +1171,7 @@ float Fire_AddDamage(entity e, entity o, float d, float t, float dt) } if(accuracy_isgooddamage(o, e)) accuracy_add(o, DEATH_WEAPONOF(dt), 0, max(0, totaldamage - mindamage)); + LOG_INFOF("^3 damage = %f\n", max(0, totaldamage - mindamage)); return max(0, totaldamage - mindamage); // can never be negative, but to make sure } else @@ -1200,6 +1202,8 @@ void Fire_ApplyDamage(entity e) float fireendtime = StatusEffects_gettime(STATUSEFFECT_Burning, e); t = min(frametime, fireendtime - time); d = e.fire_damagepersec * t; + LOG_INFOF("^4Fire_ApplyDamage: player %s: t = %f\n", e.netname, t); + LOG_INFOF("^4 d = %f\n", d); hi = e.fire_owner.hitsound_damage_dealt; ty = e.fire_owner.typehitsound;