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) => {
|
||||
if (isInAnyPolygon || isTargetInPolygon(targetEntity.position)) {
|
||||
mp.gui.chat.push("Kein DM in NODM");
|
||||
if (isInAnyPolygon) {
|
||||
mp.gui.chat.push("source in nodm");
|
||||
return true;
|
||||
}
|
||||
if (isTargetInPolygon(targetEntity.position)) {
|
||||
mp.gui.chat.push("target in nodm");
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user