• SWEP Lengthening bullet tracer?
    2 replies, posted
Simply want to lengthen the time a tracer (tooltracer) is active (: was curious if anyone knew how I could do that, a simple timer? [LUA]function SWEP:ShootBullet( damage, num_bullets, aimcone ) local bullet = {} bullet.Num = 1 bullet.Src = self.Owner:GetShootPos() bullet.Dir = self.Owner:GetAimVector() bullet.Spread = Vector( 0,0,0 ) bullet.Tracer = 1 // # shown bullet.TracerName = "ToolTracer" bullet.Damage = damage bullet.AmmoType = "Rifle" self.Owner:FireBullets( bullet ) self:ShootEffects() end[/LUA]
You cannot. Tracer effects are active for a set time by the effect code that declared it. Now you could do something really hacky like create a beam entity of the same material the tool tracer is, but it seems more work than worth.
[QUOTE=code_gs;51208160]You cannot. Tracer effects are active for a set time by the effect code that declared it. Now you could do something really hacky like create a beam entity of the same material the tool tracer is, but it seems more work than worth.[/QUOTE] Thank you for the speedy reply! Sad that it can't be lengthened. You're correct, it wouldn't be worth the time it'd take.
Sorry, you need to Log In to post a reply to this thread.