Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

r_instagibtrail

Different trails available in instagib now.
Trails can be turned off(0).

Old trails can be chosed in following way:
9 - for SW,
11  -  for GL.
  • Loading branch information...
commit 3186c89aa75db4a3ee1de71964db094846ac351a 1 parent 73eca13
@se-sss se-sss authored johnnycz committed
Showing with 63 additions and 5 deletions.
  1. +2 −0  cl_main.c
  2. +60 −5 cl_tent.c
  3. +1 −0  client.h
View
2  cl_main.c
@@ -194,6 +194,7 @@ cvar_t r_drawvweps = {"r_drawvweps", "1"};
cvar_t r_rockettrail = {"r_rocketTrail", "1"}; // 9
cvar_t r_grenadetrail = {"r_grenadeTrail", "1"}; // 3
cvar_t r_railtrail = {"r_railTrail", "1"};
+cvar_t r_instagibtrail = {"r_instagibTrail", "1"};
cvar_t r_explosiontype = {"r_explosionType", "1"}; // 7
cvar_t r_telesplash = {"r_telesplash", "1"}; // disconnect
cvar_t r_shaftalpha = {"r_shaftalpha", "1"};
@@ -1802,6 +1803,7 @@ void CL_InitLocal (void)
Cvar_Register (&r_rockettrail);
Cvar_Register (&r_grenadetrail);
Cvar_Register (&r_railtrail);
+ Cvar_Register (&r_instagibtrail);
Cvar_Register (&r_powerupglow);
Cvar_Register (&cl_novweps);
Cvar_Register (&r_drawvweps);
View
65 cl_tent.c
@@ -183,11 +183,66 @@ static void CL_ParseBeam(int type)
}
color = colors[cnum];
- #ifdef GLQUAKE
- QMB_ParticleRailTrail(start, end, color);
- #else
- Classic_ParticleRailTrail(start, end, color);
- #endif // GLQUAKE
+ //color is ignored by most of trails
+ switch(r_instagibtrail.integer)
+ {
+ case 1:
+ R_ParticleTrail(start, end, &start, GRENADE_TRAIL);
+ break;
+
+ case 2:
+ R_ParticleTrail(start, end, &start, ROCKET_TRAIL);
+ break;
+
+ case 3:
+ R_ParticleTrail(start, end, &start, ALT_ROCKET_TRAIL);
+ break;
+
+ case 4:
+ R_ParticleTrail(start, end, &start, BLOOD_TRAIL);
+ break;
+
+ case 5:
+ R_ParticleTrail(start, end, &start, BIG_BLOOD_TRAIL);
+ break;
+
+ case 6:
+ R_ParticleTrail(start, end, &start, TRACER1_TRAIL);
+ break;
+
+ case 7:
+ R_ParticleTrail(start, end, &start, TRACER2_TRAIL);
+ break;
+
+ case 8:
+ R_ParticleTrail(start, end, &start, VOOR_TRAIL);
+ break;
+
+ case 9:
+ Classic_ParticleRailTrail(start, end, color);
+ break;
+
+#ifdef GLQUAKE
+ case 10:
+ R_ParticleTrail(start, end, &start, RAIL_TRAIL);
+ break;
+
+ case 11:
+ QMB_ParticleRailTrail(start, end, color);
+ break;
+
+ case 12:
+ R_ParticleTrail(start, end, &start, LAVA_TRAIL);
+ break;
+
+ case 13:
+ R_ParticleTrail(start, end, &start, AMF_ROCKET_TRAIL);
+ break;
+
+#endif
+
+ default: break;
+ }
return;
}
View
1  client.h
@@ -653,6 +653,7 @@ extern cvar_t cl_fakeshaft_extra_updates;
extern cvar_t r_rockettrail;
extern cvar_t r_grenadetrail;
extern cvar_t r_railtrail;
+extern cvar_t r_instagibtrail;
extern cvar_t r_powerupglow;
Please sign in to comment.
Something went wrong with that request. Please try again.