Announcement

Collapse
No announcement yet.

How would I go about doing bullet tracers/trails on a hitscan weapon?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How would I go about doing bullet tracers/trails on a hitscan weapon?

    I'm new to Unreal engine, coming from Unity actually. I'm working on an arena shooter similar to quake, i've even managed to implement Bunnyhopping. I have made a simple hitscan weapon in Blueprint, and i would like to add a tracer to it to make it look less uhhh, hitscan. Here is the blueprint. I hope you're able to work with my absolute spaghetti of a blueprint but please tell me if you need any more information.Click image for larger version

Name:	unknown.png
Views:	240
Size:	225.7 KB
ID:	1775537

    #2
    Hitscan is instantaneous hit detection (single frame/tick). Thus any tracer fx applied in the same way wouldn't be seen. Best approach in my opinion would be to spawn a projectile at the weapon muzzle utilizing the fx you want. Disable gravity in projectile movement and have a very high init speed ... 88000cm/s etc.

    You'll probably have to add a delay to applying dmg/impulse to make it "feel" right.

    Comment


      #3
      Originally posted by Rev0verDrive View Post
      Hitscan is instantaneous hit detection (single frame/tick). Thus any tracer fx applied in the same way wouldn't be seen. Best approach in my opinion would be to spawn a projectile at the weapon muzzle utilizing the fx you want. Disable gravity in projectile movement and have a very high init speed ... 88000cm/s etc.

      You'll probably have to add a delay to applying dmg/impulse to make it "feel" right.
      Thank you, I'll try that.

      Comment


        #4
        Originally posted by Rev0verDrive View Post
        Hitscan is instantaneous hit detection (single frame/tick). Thus any tracer fx applied in the same way wouldn't be seen. Best approach in my opinion would be to spawn a projectile at the weapon muzzle utilizing the fx you want. Disable gravity in projectile movement and have a very high init speed ... 88000cm/s etc.

        You'll probably have to add a delay to applying dmg/impulse to make it "feel" right.
        It ended up working, and with the newfound knowledge of how useful projectiles are i think i'm going to end up making some sort of rocketjump mechanic with them. Thank you!

        Comment

        Working...
        X