Skip to content

Commit

Permalink
fix: 0 / 0 informations
Browse files Browse the repository at this point in the history
  • Loading branch information
K4ryuu committed Nov 3, 2023
1 parent 05b6e85 commit ef1b7db
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Binary file modified build/K4ryuuDamageInfo/K4ryuuDamageInfo.dll
Binary file not shown.
Binary file modified build/K4ryuuDamageInfo/K4ryuuDamageInfo.pdb
Binary file not shown.
5 changes: 2 additions & 3 deletions src/K4ryuuDamageInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace K4ryuuDamageInfo
public class DamageInfoPlugin : BasePlugin
{
public override string ModuleName => "Damage Info";
public override string ModuleVersion => "1.1.0";
public override string ModuleVersion => "1.1.1";
public override string ModuleAuthor => "K4ryuu";
private Dictionary<CCSPlayerController, DamageData> playerDamageData = new Dictionary<CCSPlayerController, DamageData>();
public Dictionary<int, Dictionary<int, DamagePlayerInfo>> playerDamageInfo = new Dictionary<int, Dictionary<int, DamagePlayerInfo>>();
Expand All @@ -23,7 +23,7 @@ public override void Load(bool hotReload)
CCSPlayerController attackerController = @event.Attacker;
int targetId = @event.Userid.UserId ?? -1;

if (attackerController.IsValid && !attackerController.IsBot)
if (attackerController.IsValid && (@event.DmgHealth > 0 || @event.DmgArmor > 0))
{
if (CFG.config.RoundEndPrint)
{
Expand Down Expand Up @@ -117,7 +117,6 @@ internal class DamageData
private Dictionary<int, DamageInfo> damageInfo = new Dictionary<int, DamageInfo>();
private Dictionary<int, DateTime> lastUpdateTime = new Dictionary<int, DateTime>();


public void UpdateDamage(CCSPlayerController attackerController, int targetId, int damageHP, int damageArmor, int Hitgroup)
{
if (!damageInfo.ContainsKey(targetId))
Expand Down

0 comments on commit ef1b7db

Please sign in to comment.