Skip to content

Commit e5e808c

Browse files
authored
Altered damage printing
1 parent 2a9e962 commit e5e808c

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

scripting/get5/stats.sp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,6 @@ public Action Stats_DamageDealtEvent(Event event, const char[] name, bool dontBr
283283
int damage = event.GetInt("dmg_health");
284284
int postDamageHealth = event.GetInt("health");
285285

286-
// this maxes the damage variables at 100,
287-
// so doing 50 damage when the player had 2 health
288-
// only counts as 2 damage.
289-
if (postDamageHealth == 0) {
290-
damage += preDamageHealth;
291-
}
292-
293286
g_DamageDone[attacker][victim] += damage;
294287
g_DamageDoneHits[attacker][victim]++;
295288
g_GotKill[attacker][victim];
@@ -556,4 +549,4 @@ static void PrintDamageInfo(int client) {
556549
PrintToChat(client, message);
557550
}
558551
}
559-
}
552+
}

0 commit comments

Comments
 (0)