From 385f53e7ad57423222659adc7d8e5e30489f8880 Mon Sep 17 00:00:00 2001 From: Samual Date: Wed, 23 May 2012 16:12:07 -0400 Subject: [PATCH] Working more on effects -- still can't get the damn circular effect to work properly, but oh well --- effectinfo.txt | 37 ++++++++++++++++++++++++++++++++++--- qcsrc/client/particles.qc | 6 +++--- qcsrc/server/w_laser.qc | 2 +- 3 files changed, 38 insertions(+), 7 deletions(-) diff --git a/effectinfo.txt b/effectinfo.txt index c22bb9c8fa..2213c126de 100644 --- a/effectinfo.txt +++ b/effectinfo.txt @@ -7411,9 +7411,8 @@ velocityjitter 64 64 64 //lightcolor 1 0.9 0.7 //lightshadow 1 -// used in qcsrc/server/w_hlac.qc: pointparticles(particleeffectnum("laser_muzzleflash"), w_shotorg, w_shotdir * 1000, 1) -// used in qcsrc/server/w_hlac.qc: pointparticles(particleeffectnum("laser_muzzleflash"), w_shotorg, w_shotdir * 1000, 1) -// used in qcsrc/server/w_laser.qc: pointparticles(particleeffectnum("laser_muzzleflash"), w_shotorg, w_shotdir * 1000, 1) +// laser_shockwave_attack +// used nowhere in code effect laser_shockwave_attack // glow and light //countabsolute 1 @@ -7459,3 +7458,35 @@ velocityjitter 10 10 10 velocitymultiplier 10 sizeincrease 1.5 stretchfactor 2 + +// new_laser_impact +// used nowhere in code +// decal +effect new_laser_impact +countabsolute 1 +type decal +tex 8 16 +size 72 72 +alpha 256 256 0 +originjitter 2 2 2 +// flare effect +//effect new_laser_impact +//countabsolute 1 +//type static +//tex 39 39 +//color 0xFF2010 0xFF2010 +//alpha 256 256 1024 +//size 24 24 +// sparks that rapidly expand and rapidly slow down to form an interesting spherical effect +effect new_laser_impact +count 128 +type spark +color 0x800000 0xFF8020 +alpha 256 256 1024 +size 4 4 +bounce 1.5 +gravity 0.5 +airfriction 1 +liquidfriction 1 +originjitter 20 20 20 +velocityjitter 256 256 256 diff --git a/qcsrc/client/particles.qc b/qcsrc/client/particles.qc index 3ff3ee9a5d..d502bcd8e7 100644 --- a/qcsrc/client/particles.qc +++ b/qcsrc/client/particles.qc @@ -321,11 +321,11 @@ void Net_ReadShockwaveParticle() for(counter = 0; counter < shots; ++counter) { deviation = '0 0 0'; - makevectors('0 360 0' * (0.75 + (counter - 0.5) / (shots - 1))); + makevectors('0 360 0' * (0.75 + (counter - 0.5) / shots)); deviation_y = v_forward_x; deviation_z = v_forward_y; deviation = deviation * spread; - //print("v_forward = ", vtos(deviation), ".\n"); + print("v_forward = ", vtos(deviation), ".\n"); deviation = ((shotdir + (right * deviation_y) + (up * deviation_z)) * 1000); //deviation = W_CalculateSpread(shotdir, spread, 1, cvar("g_projectiles_spread_style")); @@ -350,7 +350,7 @@ void Net_ReadShockwaveParticle() pointparticles(particleeffectnum("laser_shockwave_attack"), shotorg, deviation * 1000, 1); } - print("definitely doing the effect.\n"); + //print("definitely doing the effect.\n"); //WarpZone_TrailParticles(world, particleeffectnum("nex_beam"), shotorg, endpos); } diff --git a/qcsrc/server/w_laser.qc b/qcsrc/server/w_laser.qc index 0f6ac96720..e9ce3cdfb4 100644 --- a/qcsrc/server/w_laser.qc +++ b/qcsrc/server/w_laser.qc @@ -422,7 +422,7 @@ float w_laser(float req) { vector org2; org2 = w_org + w_backoff * 6; - pointparticles(particleeffectnum("laser_impact"), org2, w_backoff * 1000, 1); + pointparticles(particleeffectnum("new_laser_impact"), org2, w_backoff * 1000, 1); if(!w_issilent) sound(self, CH_SHOTS, "weapons/laserimpact.wav", VOL_BASE, ATTN_NORM); } -- 2.39.2