From: Samual Date: Mon, 21 Mar 2011 21:13:11 +0000 (-0400) Subject: New effect (slightly) for tag rockets X-Git-Tag: xonotic-v0.5.0~305^2~17^2~8^2 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=3fbe5da6eae001732b902e3c5247a3668a27f294;p=xonotic%2Fxonotic-data.pk3dir.git New effect (slightly) for tag rockets --- diff --git a/effectinfo.txt b/effectinfo.txt index bb44e5b4d..1ea0ce45b 100644 --- a/effectinfo.txt +++ b/effectinfo.txt @@ -5194,3 +5194,66 @@ velocityjitter 0 0 5 velocitymultiplier 15 airfriction -1 rotate 0 360 -180 180 + +// seeker missile trail +effect TR_SEEKER +trailspacing 10 +type smoke +notunderwater +color 0x000000 0x666666 +tex 0 8 +size 2 2 +bounce 1 +sizeincrease 11 +alpha 200 300 200 +lightradius 100 +lighttime 0 +lightcolor 6 3 1 +originjitter 2 2 2 +velocityjitter 3 3 3 +velocitymultiplier -0.02 +rotate -180 180 -30 30 +//gravity -0.11 +// fire +effect TR_SEEKER +trailspacing 4 +type static +color 0xffdf72 0x811200 +tex 48 55 +size 5 5 +sizeincrease -30 +alpha 100 144 588 +airfriction 8 +velocityjitter 32 32 32 +velocitymultiplier -1.5 +// bubbles +effect TR_SEEKER +type bubble +underwater +trailspacing 16 +tex 62 62 +size 1 2 +alpha 256 256 256 +gravity -0.125 +bounce 1.5 +liquidfriction 4 +velocityjitter 16 16 16 +velocitymultiplier -0.31 +rotate 0 0 0 0 +// sparks +effect TR_SEEKER +notunderwater +trailspacing 20 +type spark +tex 40 40 +color 0xFFFDD9 0xFFFDD9 +size 0.5 0.5 +alpha 444 512 1866 +stretchfactor 0.3 +//gravity 1 +bounce 1 +//velocityoffset 0 0 15 +airfriction 5 +originjitter 1 1 1 +velocityjitter 100 100 100 +velocitymultiplier -0.31 diff --git a/qcsrc/client/projectile.qc b/qcsrc/client/projectile.qc index 319c36b9a..092cdc21a 100644 --- a/qcsrc/client/projectile.qc +++ b/qcsrc/client/projectile.qc @@ -292,8 +292,8 @@ void Ent_Projectile() 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; - case PROJECTILE_FLAC: setmodel(self, "models/hagarmissile.mdl"); self.scale = 0.4; self.traileffect = particleeffectnum("TR_ROCKET"); break; - case PROJECTILE_SEEKER: setmodel(self, "models/tagrocket.md3"); self.traileffect = particleeffectnum("TR_ROCKET"); break; + case PROJECTILE_FLAC: setmodel(self, "models/hagarmissile.mdl"); self.scale = 0.4; self.traileffect = particleeffectnum("TR_SEEKER"); break; + case PROJECTILE_SEEKER: setmodel(self, "models/tagrocket.md3"); self.traileffect = particleeffectnum("TR_SEEKER"); break; default: error("Received invalid CSQC projectile, can't work with this!"); break; diff --git a/qcsrc/server/gamecommand.qc b/qcsrc/server/gamecommand.qc index b15e6988f..e1d7cb15d 100644 --- a/qcsrc/server/gamecommand.qc +++ b/qcsrc/server/gamecommand.qc @@ -590,6 +590,7 @@ void EffectIndexDump() db_put(d, "TR_NEHAHRASMOKE", "1"); print("effect TR_NEHAHRASMOKE is ", ftos(particleeffectnum("TR_NEHAHRASMOKE")), "\n"); db_put(d, "TR_NEXUIZPLASMA", "1"); print("effect TR_NEXUIZPLASMA is ", ftos(particleeffectnum("TR_NEXUIZPLASMA")), "\n"); db_put(d, "TR_GLOWTRAIL", "1"); print("effect TR_GLOWTRAIL is ", ftos(particleeffectnum("TR_GLOWTRAIL")), "\n"); + db_put(d, "TR_SEEKER", "1"); print("effect TR_SEEKER is ", ftos(particleeffectnum("TR_SEEKER")), "\n"); db_put(d, "SVC_PARTICLE", "1"); print("effect SVC_PARTICLE is ", ftos(particleeffectnum("SVC_PARTICLE")), "\n"); fh = fopen("effectinfo.txt", FILE_READ);