test damage stuff

This commit is contained in:
Fabian
2021-04-21 19:45:09 +02:00
parent a5aba175b4
commit ee2a13fea0
2 changed files with 14 additions and 0 deletions

View File

@@ -7,6 +7,14 @@
player.setSuffersCriticalHits(false);
});
mp.events.add('outgoingDamage', (sourceEntity, targetEntity, sourcePlayer, weapon, boneIndex, damage) => {
mp.gui.chat.push("outdmg");
});
mp.events.add('incomingDamage', (sourceEntity, targetEntity, sourcePlayer, weapon, boneIndex, damage) => {
mp.gui.chat.push("indmg");
});
mp.events.add("render", () => {
if (blockInput) {
mp.game.controls.disableControlAction(32, 142, true);