X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fserver%2Fw_hook.qc;h=695ac381fe55afcaeb750f2890e313addb6ef915;hb=d2f81f24cd5a7bc8949a07a5e75b3dc2cb98e5b6;hp=85651882290df540571b5a8f55710240197154eb;hpb=738e2ebdf9d63a4957f1d9883558bd6bc09cbfcd;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/w_hook.qc b/qcsrc/server/w_hook.qc index 856518822..695ac381f 100644 --- a/qcsrc/server/w_hook.qc +++ b/qcsrc/server/w_hook.qc @@ -57,13 +57,11 @@ void W_Hook_Damage (entity inflictor, entity attacker, float damage, float death if (self.health <= 0) return; - if (!W_CheckProjectileDamage(inflictor.realowner, self.realowner, deathtype, 0)) // no exceptions + if (!W_CheckProjectileDamage(inflictor.realowner, self.realowner, deathtype, -1)) // no exceptions return; // g_projectiles_damage says to halt self.health = self.health - damage; - print(strcat("hookbomb health ", ftos(self.health), " after ", ftos(damage), " damage... (at time: ", ftos(time), ")\n")); - if (self.health <= 0) W_PrepareExplosionByDamage(self.realowner, W_Hook_Explode2); } @@ -76,7 +74,7 @@ void W_Hook_Touch2 (void) void W_Hook_Attack2() { - local entity gren; + entity gren; W_DecreaseAmmo(ammo_cells, autocvar_g_balance_hook_secondary_ammo, FALSE); W_SetupShot (self, FALSE, 4, "weapons/hookbomb_fire.wav", CH_WEAPON_A, autocvar_g_balance_hook_secondary_damage); @@ -267,7 +265,7 @@ float w_hook(float req) self.hook_refire = time; } return TRUE; -}; +} #endif #ifdef CSQC float w_hook(float req) @@ -287,7 +285,7 @@ float w_hook(float req) else if (req == WR_SUICIDEMESSAGE) w_deathtypestring = _("%s did the impossible"); else if (req == WR_KILLMESSAGE) - w_deathtypestring = _("%s has run into %s's gravity bomb"); + w_deathtypestring = _("%s was caught in %s's hook gravity bomb"); return TRUE; } #endif