From 6e5577fcfb2c3d692ae24b6bad5160910d142787 Mon Sep 17 00:00:00 2001 From: hydrant Date: Sun, 6 Jun 2021 16:00:59 +0200 Subject: [PATCH] FIGS --- ReallifeGamemode.Client/util/hitmarker.ts | 4 +++- ReallifeGamemode.Client/util/weapondamage.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ReallifeGamemode.Client/util/hitmarker.ts b/ReallifeGamemode.Client/util/hitmarker.ts index cc8c89d4..838c6126 100644 --- a/ReallifeGamemode.Client/util/hitmarker.ts +++ b/ReallifeGamemode.Client/util/hitmarker.ts @@ -33,7 +33,9 @@ class HitText { } } -var Hits = new HitText(); +const Hits = new HitText(); + +export default Hits; mp.events.add(RageEnums.EventKey.RENDER, () => { Hits.render(); diff --git a/ReallifeGamemode.Client/util/weapondamage.ts b/ReallifeGamemode.Client/util/weapondamage.ts index 71494df6..d44a335b 100644 --- a/ReallifeGamemode.Client/util/weapondamage.ts +++ b/ReallifeGamemode.Client/util/weapondamage.ts @@ -2,6 +2,7 @@ import polygons from "../polygons"; import { getWantedCount } from "../Gui/wanteds"; import { spawnschutzEnabled } from "../Player/spawnschutz"; +import Hits from "./hitmarker"; function isTargetInPolygon(pos): boolean {