]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add damageinfo
authorSamual Lenks <samual@xonotic.org>
Tue, 31 Jul 2012 00:58:01 +0000 (20:58 -0400)
committerSamual Lenks <samual@xonotic.org>
Tue, 31 Jul 2012 00:58:01 +0000 (20:58 -0400)
qcsrc/server/w_laser.qc

index 9a6dd9196835505f2166e2157d77a71db836284d..22689b56b5ee967f5d21aff07afc2fb7c2e60652 100644 (file)
@@ -155,8 +155,9 @@ void W_Laser_Shockwave()
        float distance_to_hit = vlen(w_shotorg - attack_hitpos);
        entity transform = WarpZone_trace_transform;
 
-       // also do the firing effect now
+       // do the firing effect now
        SendCSQCShockwaveParticle(attack_endpos);
+       Damage_DamageInfo(attack_hitpos, autocvar_g_balance_laser_shockwave_splash_damage, autocvar_g_balance_laser_shockwave_splash_edgedamage, autocvar_g_balance_laser_shockwave_splash_radius, w_shotdir * autocvar_g_balance_laser_shockwave_splash_force, WEP_LASER, 0, self);
 
        // splash damage/jumping trace
        head = WarpZone_FindRadius(attack_hitpos, max(autocvar_g_balance_laser_shockwave_splash_radius, autocvar_g_balance_laser_shockwave_jump_radius), FALSE);