Added OnPlayerShot Funktion für vorläufig
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user