HIT DAMAGE

This commit is contained in:
hydrant
2021-06-06 15:57:14 +02:00
parent 376e5e9a1a
commit 62a423cd42

View File

@@ -14,7 +14,7 @@ function isTargetInPolygon(pos): boolean {
}
});
if (found) return true;
return false;
}
@@ -23,7 +23,7 @@ export default function weapondamageUtil(globalData: IGlobalData) {
mp.players.local.setSuffersCriticalHits(false);
mp.players.forEachInStreamRange((player) => {
player.setSuffersCriticalHits(false);
@@ -47,6 +47,10 @@ export default function weapondamageUtil(globalData: IGlobalData) {
if (spawnschutzEnabled && getWantedCount() === 0) {
return true;
}
if (targetEntity.type === 'player') {
Hits.add(damage, targetEntity.position);
}
});
mp.events.add("render", () => {