"Bullet Trail" effect implemented. Mainly for underwater bubbles, but also has the side effect of allowing hitscan weapons to activate shoot-through lines. SIGIL players rejoice.

Shock Rifle and Pulsegun beams can also do this now.
Depleted armors remove themselves from inventory.
This commit is contained in:
Marisa the Magician 2019-10-09 12:28:56 +02:00
commit dd7f429335
7 changed files with 62 additions and 1 deletions

View file

@ -109,6 +109,7 @@ Class Minigun : UTWeapon
Vector3 dir = (x2+y2*cos(a)*s+z2*sin(a)*s).unit();
FLineTraceData d;
LineTrace(atan2(dir.y,dir.x),10000,asin(-dir.z),TRF_ABSPOSITION,origin.z,origin.x,origin.y,d);
UTBulletTrail.DoTrail(self,origin,dir,10000,alt?5:3);
if ( d.HitType == TRACE_HitActor )
{
int dmg = Random[Minigun](9,18); // fun fact: the Minigun is one of the few weapons that has actual RNG damage in UT