From 983dd141998080c82827fe91279264251946136a Mon Sep 17 00:00:00 2001 From: Mac_Slash Date: Sun, 19 Apr 2020 12:14:22 +0200 Subject: [PATCH] =?UTF-8?q?Added=20OnPlayerShot=20Funktion=20f=C3=BCr=20vo?= =?UTF-8?q?rl=C3=A4ufig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ReallifeGamemode.Client/Player/weaponlist.ts | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/ReallifeGamemode.Client/Player/weaponlist.ts b/ReallifeGamemode.Client/Player/weaponlist.ts index 4a8b6042..7da7cccb 100644 --- a/ReallifeGamemode.Client/Player/weaponlist.ts +++ b/ReallifeGamemode.Client/Player/weaponlist.ts @@ -43,6 +43,27 @@ export default function weaponList(globalData: IGlobalData) { mp.gui.chat.push("MeeleModifier steht jetzt auf" + modifier); mp.players.local.setMeleeWeaponDamageModifier(modifier); }); + /*mp.events.add('playerWeaponShot', (targetPosition, targetEntity) => { + for (var x in this.weaponAmmo) { + if (this.weaponAmmo[x].id != this.currentWeapon) { + continue; + } + this.weaponAmmo[x].ammo = this.weaponAmmo[x].ammo - 1; + } + let weaponDamage = 1; + switch (this.currentWeapon) { + case 0xBFEFFF6D: + weaponDamage = 30; + break; + case 0x7F229F94: + weaponDamage = 100; + break; + default: + weaponDamage = 1; + break; + } + mp.players.local.setWeaponDamageModifier(weaponDamage); + });*/ //Weapon Menu