]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge remote-tracking branch 'origin/nifrek/hagar_own_traileffect_fix'
authorRudolf Polzer <divverent@alientrap.org>
Mon, 12 Dec 2011 08:38:22 +0000 (09:38 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 12 Dec 2011 08:38:22 +0000 (09:38 +0100)
Conflicts:
effectinfo.txt

1  2 
effectinfo.txt
qcsrc/client/projectile.qc

diff --combined effectinfo.txt
index 07061642b2f3e746b270870ac1ceafce194c6c09,51fe5044df862c580f56ecaa5349181454743801..0d464f5f7740d4dc7e9d26e4242fb4b7cd974182
@@@ -1219,7 -1219,7 +1219,7 @@@ stretchfactor 2.
  
  
  
- // 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 +1265,7 @@@ velocityjitter 16 16 1
  
  
  
- // 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)
@@@ -6539,108 -6539,44 +6539,150 @@@ airfriction 
  color 0x4F4B46 0x000000
  rotate -180 180 -20 20
  
 -velocityjitter 16 16 16
 +// metal impact effect
 +// used in qcsrc/server/mutators/sandbox.qc:  pointparticles(particleeffectnum("impact_metal"), self.origin, '0 0 0', 1);
 +effect impact_metal
 +count 1
 +type alphastatic
 +tex 0 8
 +size 3 6
 +sizeincrease 10
 +alpha 25 64 50
 +gravity -0.01
 +color 0x000000 0x886666
 +originjitter 20 20 5
 +// sparks
 +effect impact_metal
 +count 2
 +type spark
 +tex 41 41
 +color 0xFFCC22 0xFF4422
 +size 2 2
 +alpha 255 255 112
 +bounce 1.8
 +stretchfactor 0.5
 +velocityjitter 200 200 300
 +velocitymultiplier 2
 +airfriction 2
 +gravity 1
 +
 +// stone impact effect
 +// used in qcsrc/server/mutators/sandbox.qc:  pointparticles(particleeffectnum("impact_stone"), self.origin, '0 0 0', 1);
 +effect impact_stone
 +count 1
 +type alphastatic
 +tex 0 8
 +size 3 6
 +sizeincrease 15
 +alpha 50 128 75
 +gravity -0.01
 +color 0x000000 0xcc9966
 +originjitter 20 20 5
 +// debris
 +effect impact_stone
 +notunderwater
 +count 1
 +type alphastatic
 +tex 66 68
 +color 0x000000 0x886644
 +size 1 2
 +alpha 450 750 300
 +gravity 1.3
 +airfriction 0.5
 +bounce 1.2
 +velocityjitter 124 124 324
 +rotate -180 180 -1000 1000
 +
 +// wood impact effect
 +// used in qcsrc/server/mutators/sandbox.qc:  pointparticles(particleeffectnum("impact_wood"), self.origin, '0 0 0', 1);
 +effect impact_wood
 +count 1
 +type alphastatic
 +tex 0 8
 +size 3 6
 +sizeincrease 10
 +alpha 50 128 75
 +gravity -0.01
 +color 0x000000 0xcc9966
 +originjitter 20 20 5
 +// sparks
 +effect impact_wood
 +count 2
 +type spark
 +tex 41 41
 +color 0x221100 0x221100
 +size 1 8
 +alpha 255 255 75
 +bounce 1.5
 +velocityjitter 180 180 260
 +velocitymultiplier 2
 +airfriction 2
 +gravity 1
 +
 +// flesh impact effect
 +// used in qcsrc/server/mutators/sandbox.qc:  pointparticles(particleeffectnum("impact_flesh"), self.origin, '0 0 0', 1);
 +effect impact_flesh
 +count 0.5
 +type alphastatic
 +tex 0 8
 +size 8 12
 +alpha 100 256 400
 +color 0x000000 0x420000
 +originjitter 11 11 11
 +// blood splash
 +effect impact_flesh
 +count 0.3
 +type blood
 +tex 24 32
 +size 2 6
 +alpha 256 256 64
 +color 0xA8FFFF 0xA8FFFFF
 +bounce -1
 +airfriction 1
 +liquidfriction 4
 +velocityjitter 96 96 96
 +velocitymultiplier 5
 +staincolor 0x808080 0x808080
 +staintex 16 24
++
+ // 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
index e8274c8cd95d44a9ca61904e43ea20b3627c883c,aa8119b967bde417378d96a70749f93a6bdf64db..426ef78250a6d49909e36dafb3a71a5096e6483f
@@@ -75,7 -75,7 +75,7 @@@ void Projectile_Draw(
                        Movetype_Physics_MatchServer(autocvar_cl_projectiles_sloppy);
                if(!(self.move_flags & FL_ONGROUND))
                        if(self.velocity != '0 0 0')
 -                              self.angles = vectoangles(self.velocity);
 +                              self.move_angles = self.angles = vectoangles(self.velocity);
        }
        else
        {
@@@ -289,8 -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;