From 96324141cb18e80f2146654c1b900c507ad4ba83 Mon Sep 17 00:00:00 2001 From: Maxwell Date: Tue, 17 Jan 2023 16:51:06 -0500 Subject: [PATCH] Added Crossbow bolt trail on explosive MP bolt akin to Turok. This change is based upon documented cut content --- src/shared/w_crossbow.qc | 9 ++++++--- zpak001.pk3dir/particles/weapon_crossbow.cfg | 14 ++++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100755 zpak001.pk3dir/particles/weapon_crossbow.cfg diff --git a/src/shared/w_crossbow.qc b/src/shared/w_crossbow.qc index d2d72c2..181dd67 100644 --- a/src/shared/w_crossbow.qc +++ b/src/shared/w_crossbow.qc @@ -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]); } diff --git a/zpak001.pk3dir/particles/weapon_crossbow.cfg b/zpak001.pk3dir/particles/weapon_crossbow.cfg new file mode 100755 index 0000000..d655dbc --- /dev/null +++ b/zpak001.pk3dir/particles/weapon_crossbow.cfg @@ -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 +}