]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix shambler lightning bolt client prediction
authorMario <mario.mario@y7mail.com>
Sat, 12 Oct 2013 22:58:41 +0000 (09:58 +1100)
committerMario <mario.mario@y7mail.com>
Sat, 12 Oct 2013 22:58:41 +0000 (09:58 +1100)
qcsrc/client/projectile.qc
qcsrc/common/monsters/monster/shambler.qc

index f11a94f8a3e229b50cd4575ca33739dcb379e75b..658f7b5b0dc41c342b1e3428c3cd9275f33a540d 100644 (file)
@@ -411,8 +411,6 @@ void Ent_Projectile()
                        case PROJECTILE_SHAMBLER_LIGHTNING:
                                self.mins = '-8 -8 -8';
                                self.maxs = '8 8 8';
-                               self.move_movetype = MOVETYPE_BOUNCE;
-                               self.move_touch = func_null;
                                self.scale = 2.5;
                                self.avelocity = randomvec() * 720;
                                break;
index 7994f106a9037c43e758af5edf8184d8241f57a9..d3e4504fef4c8fadd220098965dd6e7f57b47dde 100644 (file)
@@ -74,14 +74,13 @@ void shambler_lightning_explode()
        self.takedamage = DAMAGE_NO;
        self.movetype = MOVETYPE_NONE;
        self.velocity = '0 0 0';
-       UpdateCSQCProjectile(self);
 
        if(self.movetype == MOVETYPE_NONE)
                self.velocity = self.oldvelocity;
 
        RadiusDamage (self, self.realowner, MON_CVAR(shambler, attack_lightning_damage), MON_CVAR(shambler, attack_lightning_damage), MON_CVAR(shambler, attack_lightning_radius), world, MON_CVAR(shambler, attack_lightning_force), self.projectiledeathtype, other);
        
-       for(head = findradius(self.origin, MON_CVAR(shambler, attack_lightning_radius_zap)); head; head = head.chain) if(head != self.realowner)
+       for(head = findradius(self.origin, MON_CVAR(shambler, attack_lightning_radius_zap)); head; head = head.chain) if(head != self.realowner) if(head.takedamage)
        {
                te_csqc_lightningarc(self.origin, head.origin);
                Damage(head, self, self.realowner, MON_CVAR(shambler, attack_lightning_damage) * Monster_SkillModifier(), DEATH_MONSTER_SHAMBLER_ZAP, head.origin, '0 0 0');