Added Crossbow bolt trail on explosive MP bolt akin to Turok. This change is based upon documented cut content

This commit is contained in:
Maxwell 2023-01-17 16:51:06 -05:00
parent 0452916719
commit 96324141cb
2 changed files with 20 additions and 3 deletions

View File

@ -227,11 +227,14 @@ w_crossbow_primary(player pl)
bolt.angles = vectoangles(bolt.velocity);
bolt.avelocity[2] = 10;
bolt.touch = Crossbolt_Touch;
/* zoomed out = explosive */
if (rules.IsMultiplayer() == true)
if (rules.IsMultiplayer() == true) {
bolt.weapon = 1;
/* Turok's explosive bolt had a trail; assumed the same with HL considering documented cut content. */
bolt.traileffectnum = particleeffectnum("weapon_crossbow.trail");
}
setsize(bolt, [0,0,0], [0,0,0]);
}

View File

@ -0,0 +1,14 @@
r_part trail
{
texture "particles/fteparticlefont.tga"
tcoords 97 97 191 191 256
scale 2
scaledelta 0.25
rgbf 1 1 1
alpha 0.5
blend add
step 4
die 2
randomvel 0
type beam
}