test: target in nodm
This commit is contained in:
@@ -11,8 +11,12 @@ export default function weapondamageUtil() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
mp.events.add('outgoingDamage', (sourceEntity, targetEntity, sourcePlayer, weapon, boneIndex, damage) => {
|
mp.events.add('outgoingDamage', (sourceEntity, targetEntity, sourcePlayer, weapon, boneIndex, damage) => {
|
||||||
if (isInAnyPolygon || isTargetInPolygon(targetEntity.position)) {
|
if (isInAnyPolygon) {
|
||||||
mp.gui.chat.push("Kein DM in NODM");
|
mp.gui.chat.push("source in nodm");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (isTargetInPolygon(targetEntity.position)) {
|
||||||
|
mp.gui.chat.push("target in nodm");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user