X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fweapon%2Fseeker.qc;h=c782b4eafc55de68a6d555359d617f17a5ae5efc;hb=77a72b8a1d5686ac0ee30d5019f512086bcbaf3e;hp=f8c2be1d50777e1cea209366fe830aee87381009;hpb=f785b8a76c2336cb00e78fe9e738d55512a086f5;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/weapons/weapon/seeker.qc b/qcsrc/common/weapons/weapon/seeker.qc index f8c2be1d5..c782b4eaf 100644 --- a/qcsrc/common/weapons/weapon/seeker.qc +++ b/qcsrc/common/weapons/weapon/seeker.qc @@ -171,7 +171,7 @@ void W_Seeker_Fire_Missile(Weapon thiswep, entity actor, .entity weaponentity, v makevectors(actor.v_angle); W_SetupShot_ProjectileSize(actor, weaponentity, '-2 -2 -2', '2 2 2', false, 2, SND_SEEKER_FIRE, CH_WEAPON_A, 0, ((m_target != NULL) ? thiswep.m_id | HITTYPE_SECONDARY : thiswep.m_id)); w_shotorg += f_diff; - Send_Effect(EFFECT_SEEKER_MUZZLEFLASH, w_shotorg, w_shotdir * 1000, 1); + W_MuzzleFlash(thiswep, actor, weaponentity, w_shotorg, w_shotdir); //actor.detornator = false; @@ -269,7 +269,8 @@ void W_Seeker_Fire_Flac(Weapon thiswep, entity actor, .entity weaponentity) W_SetupShot_ProjectileSize(actor, weaponentity, '-2 -2 -2', '2 2 2', false, 2, SND_FLAC_FIRE, CH_WEAPON_A, WEP_CVAR(seeker, flac_damage), thiswep.m_id | HITTYPE_SECONDARY); w_shotorg += f_diff; - Send_Effect(EFFECT_HAGAR_MUZZLEFLASH, w_shotorg, w_shotdir * 1000, 1); + // uses hagar effects! + W_MuzzleFlash(WEP_HAGAR, actor, weaponentity, w_shotorg, w_shotdir); missile = new(missile); missile.owner = missile.realowner = actor; @@ -342,8 +343,6 @@ void W_Seeker_Attack(Weapon thiswep, entity actor, .entity weaponentity) void W_Seeker_Vollycontroller_Think(entity this) // TODO: Merge this with W_Seeker_Attack { - float c; - entity oldenemy; this.cnt = this.cnt - 1; Weapon thiswep = WEP_SEEKER; @@ -358,11 +357,10 @@ void W_Seeker_Vollycontroller_Think(entity this) // TODO: Merge this with W_Seek entity own = this.realowner; - oldenemy = own.enemy; + entity oldenemy = own.enemy; own.enemy = this.enemy; - c = own.cnt % 4; - switch(c) + switch(own.cnt % 4) { case 0: W_Seeker_Fire_Missile(thiswep, own, weaponentity, '-1.25 -3.75 0', own.enemy); // TODO