HIT DAMAGE
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user