X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fw_seeker.qc;h=c4c08bb51230983d2b80abe456a567eff56f53c0;hp=c108ba3cfa1707f3b69ea2135a93c4c92e58cbbd;hb=93a42210757d659fd5b436a66c0c6cdc5eaf0a39;hpb=72d3dea2617743a60d67fe3b87e4a71a3557bc3a diff --git a/qcsrc/server/w_seeker.qc b/qcsrc/server/w_seeker.qc index c108ba3cf..c4c08bb51 100644 --- a/qcsrc/server/w_seeker.qc +++ b/qcsrc/server/w_seeker.qc @@ -124,6 +124,9 @@ void Seeker_Missile_Damage (entity inflictor, entity attacker, float damage, flo { if (self.health <= 0) return; + + if (!W_CheckProjectileDamage(inflictor.realowner, self.realowner, deathtype, -1)) // no exceptions + return; // g_projectiles_damage says to halt if (self.realowner == attacker) self.health = self.health - (damage * 0.25); @@ -161,7 +164,7 @@ void Seeker_Missile_Animate() void Seeker_Fire_Missile(vector f_diff, entity m_target) { - local entity missile; + entity missile; W_DecreaseAmmo(ammo_rockets, autocvar_g_balance_seeker_missile_ammo, autocvar_g_balance_seeker_reload_ammo); @@ -189,6 +192,7 @@ void Seeker_Fire_Missile(vector f_diff, entity m_target) missile.takedamage = DAMAGE_YES; missile.health = autocvar_g_balance_seeker_missile_health; missile.damageforcescale = autocvar_g_balance_seeker_missile_damageforcescale; + missile.damagedbycontents = TRUE; //missile.think = Seeker_Missile_Animate; // csqc projectiles. if (missile.enemy != world) @@ -231,7 +235,7 @@ void Seeker_Flac_Touch() void Seeker_Fire_Flac() { - local entity missile; + entity missile; vector f_diff; float c; @@ -468,7 +472,7 @@ void Seeker_Tag_Touch() void Seeker_Fire_Tag() { - local entity missile; + entity missile; W_DecreaseAmmo(ammo_rockets, autocvar_g_balance_seeker_tag_ammo, autocvar_g_balance_seeker_reload_ammo); W_SetupShot_ProjectileSize (self, '-2 -2 -2', '2 2 2', FALSE, 2, "weapons/tag_fire.wav", CH_WEAPON_A, autocvar_g_balance_seeker_missile_damage * autocvar_g_balance_seeker_missile_count); @@ -588,13 +592,13 @@ float w_seeker(float req) else if (req == WR_CHECKAMMO1) { ammo_amount = self.ammo_rockets >= autocvar_g_balance_seeker_missile_ammo; - ammo_amount += self.weapon_load[WEP_SEEKER] >= autocvar_g_balance_seeker_missile_ammo; + ammo_amount += self.(weapon_load[WEP_SEEKER]) >= autocvar_g_balance_seeker_missile_ammo; return ammo_amount; } else if (req == WR_CHECKAMMO2) { ammo_amount = self.ammo_rockets >= autocvar_g_balance_seeker_tag_ammo; - ammo_amount += self.weapon_load[WEP_SEEKER] >= autocvar_g_balance_seeker_tag_ammo; + ammo_amount += self.(weapon_load[WEP_SEEKER]) >= autocvar_g_balance_seeker_tag_ammo; return ammo_amount; } else if (req == WR_RELOAD) @@ -602,7 +606,7 @@ float w_seeker(float req) W_Reload(min(autocvar_g_balance_seeker_missile_ammo, autocvar_g_balance_seeker_tag_ammo), autocvar_g_balance_seeker_reload_ammo, autocvar_g_balance_seeker_reload_time, "weapons/reload.wav"); } return TRUE; -}; +} #endif #ifdef CSQC float w_seeker(float req) @@ -654,13 +658,13 @@ float w_seeker(float req) precache_sound("weapons/tag_impact.wav"); } else if (req == WR_SUICIDEMESSAGE) - w_deathtypestring = _("%s played with tiny rockets"); + w_deathtypestring = _("%s played with tiny seeker rockets"); else if (req == WR_KILLMESSAGE) { if(w_deathtype & HITTYPE_SECONDARY) - w_deathtypestring = _("%s was tagged by %s"); + w_deathtypestring = _("%s was tagged with a seeker by %s"); else - w_deathtypestring = _("%s was pummeled by %s"); + w_deathtypestring = _("%s was pummeled with seeker rockets by %s"); } return TRUE; }