X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmutators%2Fmutator%2Foverkill%2Fhmg.qc;h=b9e01bd9848bf2e937db67eafd90c69ed26e3561;hb=109c961b4eacb3f617d9c66f9fdec40e1264f97e;hp=41327956f383b062deb21356e896170cb57c82f9;hpb=c8f40d6c6d2fdef19f7c6bb9c988c02ab8a98e71;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/mutators/mutator/overkill/hmg.qc b/qcsrc/common/mutators/mutator/overkill/hmg.qc index 41327956f..b9e01bd98 100644 --- a/qcsrc/common/mutators/mutator/overkill/hmg.qc +++ b/qcsrc/common/mutators/mutator/overkill/hmg.qc @@ -10,8 +10,6 @@ MUTATOR_HOOKFUNCTION(hmg_nadesupport, Nade_Damage) M_ARGV(3, float) /* damage */ = (M_ARGV(0, entity)).max_health * 0.1; } -spawnfunc(weapon_hmg) { weapon_defaultspawnfunc(this, WEP_HMG); } - void W_HeavyMachineGun_Attack_Auto(Weapon thiswep, entity actor, .entity weaponentity, int fire) { if (!PHYS_INPUT_BUTTON_ATCK(actor)) @@ -29,7 +27,7 @@ void W_HeavyMachineGun_Attack_Auto(Weapon thiswep, entity actor, .entity weapone W_DecreaseAmmo(WEP_HMG, actor, WEP_CVAR(hmg, ammo), weaponentity); - W_SetupShot (actor, weaponentity, true, 0, SND_UZI_FIRE, CH_WEAPON_A, WEP_CVAR(hmg, damage)); + W_SetupShot (actor, weaponentity, true, 0, SND_UZI_FIRE, CH_WEAPON_A, WEP_CVAR(hmg, damage), WEP_HMG.m_id); if(!autocvar_g_norecoil) {