Skip to content

Commit

Permalink
feat: Added versioning to check on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
K4ryuu committed Nov 7, 2023
1 parent d79bd3e commit 91009b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/K4ryuuDamageInfo.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
using CounterStrikeSharp.API;
using CounterStrikeSharp.API.Core;
using CounterStrikeSharp.API.Core.Attributes;
using CounterStrikeSharp.API.Core.Attributes.Registration;
using CounterStrikeSharp.API.Modules.Commands;
using CounterStrikeSharp.API.Modules.Utils;

namespace K4ryuuDamageInfo
{
[MinimumApiVersion(5)]
public class DamageInfoPlugin : BasePlugin
{
public override string ModuleName => "Damage Info";
Expand Down Expand Up @@ -133,7 +135,7 @@ public void UpdateDamage(CCSPlayerController attackerController, int targetId, i
damageInfo[targetId].DamageHP += damageHP;
damageInfo[targetId].DamageArmor += damageArmor;

if (damageHP > 350)
if (damageHP > 200)
{
attackerController.PrintToCenter($"Damage Given:\nHP {damageInfo[targetId].DamageHP} | HitGroup: {HitGroupToString(Hitgroup)}");
}
Expand Down

0 comments on commit 91009b2

Please sign in to comment.