From: nifrek Date: Mon, 28 Nov 2011 09:50:30 +0000 (-0500) Subject: Give hagar it's own trail effect instead of sharing it with mortar X-Git-Tag: xonotic-v0.6.0~74^2~111^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=95f35a0dc0ce9e43d27cf968d63a4711c0155f17;p=xonotic%2Fxonotic-data.pk3dir.git Give hagar it's own trail effect instead of sharing it with mortar --- diff --git a/effectinfo.txt b/effectinfo.txt index 1e7f20270..51fe5044d 100644 --- a/effectinfo.txt +++ b/effectinfo.txt @@ -1219,7 +1219,7 @@ stretchfactor 2.5 -// hagar trail +// mortar trail // smoke // used in qcsrc/client/projectile.qc: trailparticles(self, particleeffectnum("TR_GRENADE"), from, to) // used in qcsrc/client/projectile.qc: trailparticles(self, particleeffectnum("TR_GRENADE"), from, to) @@ -1265,7 +1265,7 @@ velocityjitter 16 16 16 -// mortar trail +// hookbomb trail // smoke // used in qcsrc/client/projectile.qc: trailparticles(self, particleeffectnum("TR_KNIGHTSPIKE"), from, to) // used in qcsrc/client/projectile.qc: trailparticles(self, particleeffectnum("TR_KNIGHTSPIKE"), from, to) @@ -6538,3 +6538,45 @@ velocityoffset 0 0 200 airfriction 4 color 0x4F4B46 0x000000 rotate -180 180 -20 20 + +// hagar trail +// smoke +effect tr_hagar +trailspacing 4 +type smoke +color 0x101010 0x000000 +tex 0 8 +size 3 2 +bounce 1 +sizeincrease 10 +alpha 300 400 780 +originjitter 1 1 1 +velocityjitter 1 1 1 +velocitymultiplier -0.02 +//gravity -0.11 +// fire +effect tr_hagar +notunderwater +trailspacing 4 +type static +color 0xffdf72 0x811200 +tex 48 55 +size 5 2 +sizeincrease -15 +alpha 100 144 988 +airfriction 8 +velocityjitter 32 32 32 +velocitymultiplier -1.0 +// bubbles +effect tr_hagar +underwater +trailspacing 16 +type bubble +tex 62 62 +color 0x404040 0x808080 +size 1 1 +alpha 256 256 256 +gravity -0.125 +bounce 1.5 +liquidfriction 4 +velocityjitter 16 16 16 \ No newline at end of file diff --git a/qcsrc/client/projectile.qc b/qcsrc/client/projectile.qc index e17d7ba3d..aa8119b96 100644 --- a/qcsrc/client/projectile.qc +++ b/qcsrc/client/projectile.qc @@ -289,8 +289,8 @@ void Ent_Projectile() case PROJECTILE_PORTO_RED: setmodel(self, "models/grenademodel.md3");self.traileffect = particleeffectnum("TR_WIZSPIKE"); self.scale = 4; break; case PROJECTILE_PORTO_BLUE: setmodel(self, "models/grenademodel.md3");self.traileffect = particleeffectnum("TR_WIZSPIKE"); self.scale = 4; break; case PROJECTILE_HOOKBOMB: setmodel(self, "models/grenademodel.md3");self.traileffect = particleeffectnum("TR_KNIGHTSPIKE"); break; - case PROJECTILE_HAGAR: setmodel(self, "models/hagarmissile.mdl");self.traileffect = particleeffectnum("TR_GRENADE"); self.scale = 0.75; break; - case PROJECTILE_HAGAR_BOUNCING: setmodel(self, "models/hagarmissile.mdl");self.traileffect = particleeffectnum("TR_GRENADE"); self.scale = 0.75; break; + case PROJECTILE_HAGAR: setmodel(self, "models/hagarmissile.mdl");self.traileffect = particleeffectnum("tr_hagar"); self.scale = 0.75; break; + case PROJECTILE_HAGAR_BOUNCING: setmodel(self, "models/hagarmissile.mdl");self.traileffect = particleeffectnum("tr_hagar"); self.scale = 0.75; break; case PROJECTILE_FIREBALL: self.model = ""; self.modelindex = 0; self.traileffect = particleeffectnum("fireball"); break; // particle effect is good enough case PROJECTILE_FIREMINE: self.model = ""; self.modelindex = 0; self.traileffect = particleeffectnum("firemine"); break; // particle effect is good enough case PROJECTILE_TAG: setmodel(self, "models/laser.mdl"); self.traileffect = particleeffectnum("TR_ROCKET"); break;