From 88f864ab62c085b3625f8353584c16fbb6a8153a Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 20 Dec 2010 21:01:13 +0100 Subject: [PATCH] add a "weak" rifle trail for secondary --- effectinfo.txt | 39 ++++++++++++++++++++++++++++++++++++-- qcsrc/client/projectile.qc | 2 +- qcsrc/server/w_common.qc | 2 ++ 3 files changed, 40 insertions(+), 3 deletions(-) diff --git a/effectinfo.txt b/effectinfo.txt index 3e69bd826..5d8d8b6ea 100644 --- a/effectinfo.txt +++ b/effectinfo.txt @@ -4694,8 +4694,6 @@ bounce 1.5 liquidfriction 4 velocityjitter 16 16 16 - - // rocket guiding start // underwater bubbles effect rocket_guide @@ -5125,3 +5123,40 @@ originjitter 1 1 1 velocityjitter 300 300 300 velocitymultiplier 0.5 airfriction 3 + + +// weak rifle bullet trail (somewhat like a tracer) +// used in qcsrc/server/w_common.qc: zcurveparticles_from_tracetoss(particleeffectnum("tr_bullet"), self.origin, trace_endpos, self.velocity) +// used in qcsrc/client/projectile.qc: trailparticles(self, particleeffectnum("tr_bullet"), from, to) +effect tr_rifle_weak +trailspacing 128 +type spark +color 0x800000 0xFF8020 +alpha 256 256 2560 +size 1.5 1.5 +stretchfactor 1 +velocitymultiplier 0.7 +effect tr_rifle_weak +notunderwater +tex 0 8 +trailspacing 24 +type static +color 0x202020 0x404040 +size 4 4 +sizeincrease 0.4 +alpha 256 256 256 +airfriction -4 +velocityjitter 4 4 4 +type smoke +effect tr_rifle_weak +underwater +trailspacing 96 +type bubble +tex 62 62 +color 0x404040 0x808080 +size 2 2 +alpha 256 256 128 +gravity -0.125 +bounce 1.5 +liquidfriction 4 +velocityjitter 16 16 16 diff --git a/qcsrc/client/projectile.qc b/qcsrc/client/projectile.qc index a2cef7645..cede03c5a 100644 --- a/qcsrc/client/projectile.qc +++ b/qcsrc/client/projectile.qc @@ -274,7 +274,7 @@ void Ent_Projectile() case PROJECTILE_ELECTRO: setmodel(self, "models/ebomb.mdl");self.traileffect = particleeffectnum("TR_NEXUIZPLASMA"); break; case PROJECTILE_ROCKET: setmodel(self, "models/rocket.md3");self.traileffect = particleeffectnum("TR_ROCKET"); self.scale = 2; break; case PROJECTILE_BULLET: setmodel(self, "models/tracer.mdl");self.traileffect = particleeffectnum("tr_bullet"); break; - case PROJECTILE_BULLET_GLOWING: setmodel(self, "models/tracer.mdl");self.traileffect = particleeffectnum("tr_bullet"); break; + case PROJECTILE_BULLET_GLOWING: setmodel(self, "models/tracer.mdl");self.traileffect = particleeffectnum("tr_rifle_weak"); break; case PROJECTILE_BULLET_GLOWING_TRACER: setmodel(self, "models/tracer.mdl");self.traileffect = particleeffectnum("tr_rifle"); break; case PROJECTILE_CRYLINK: setmodel(self, "models/plasmatrail.mdl");self.traileffect = particleeffectnum("TR_CRYLINKPLASMA"); break; case PROJECTILE_CRYLINK_BOUNCING: setmodel(self, "models/plasmatrail.mdl");self.traileffect = particleeffectnum("TR_CRYLINKPLASMA"); break; diff --git a/qcsrc/server/w_common.qc b/qcsrc/server/w_common.qc index 49e277383..24f434044 100644 --- a/qcsrc/server/w_common.qc +++ b/qcsrc/server/w_common.qc @@ -391,6 +391,8 @@ void fireBallisticBullet(vector start, vector dir, float spread, float pSpeed, f if(tracereffects & EF_RED) eff = particleeffectnum("tr_rifle"); + else if(tracereffects & EF_BLUE) + eff = particleeffectnum("tr_rifle_weak"); else eff = particleeffectnum("tr_bullet"); -- 2.39.2