X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fw_hlac.qc;h=142a231923214be2cfd8a91b921fa00e88d56d15;hb=d5d9477297fd7fe969a50bc384dc7545731f941b;hp=a2697b2f5cb527050677ace98031e52896c6b83e;hpb=e6b84d3c61943e06b72eed9bf0b1ad73e58ff670;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/w_hlac.qc b/qcsrc/server/w_hlac.qc index a2697b2f5..142a23192 100644 --- a/qcsrc/server/w_hlac.qc +++ b/qcsrc/server/w_hlac.qc @@ -7,7 +7,7 @@ void W_HLAC_Touch (void) { PROJECTILE_TOUCH; - self.event_damage = SUB_Null; + self.event_damage = func_null; if(self.projectiledeathtype & HITTYPE_SECONDARY) RadiusDamage (self, self.realowner, autocvar_g_balance_hlac_secondary_damage, autocvar_g_balance_hlac_secondary_edgedamage, autocvar_g_balance_hlac_secondary_radius, world, autocvar_g_balance_hlac_secondary_force, self.projectiledeathtype, other); @@ -219,6 +219,14 @@ float w_hlac(float req) { W_Reload(min(autocvar_g_balance_hlac_primary_ammo, autocvar_g_balance_hlac_secondary_ammo), autocvar_g_balance_hlac_reload_ammo, autocvar_g_balance_hlac_reload_time, "weapons/reload.wav"); } + else if (req == WR_SUICIDEMESSAGE) + { + return WEAPON_HLAC_SUICIDE; + } + else if (req == WR_KILLMESSAGE) + { + return WEAPON_HLAC_MURDER; + } return TRUE; } #endif @@ -237,10 +245,6 @@ float w_hlac(float req) { precache_sound("weapons/laserimpact.wav"); } - else if (req == WR_SUICIDEMESSAGE) - w_deathtypestring = _("%s should have used a smaller gun"); - else if (req == WR_KILLMESSAGE) - w_deathtypestring = _("%s was cut down with a HLAC by %s"); return TRUE; } #endif