TTT: Bullet to Lasers

Hi guys! I want to know if it is possible to change the TTT’s default weapon’s tracer from bullets to lasers? I am making a Star Wars TTT so it’s crucial for my weapons! I have tried researching the subject, but I am unable to find anything that pertains to the TTT weapons. Thanks for any help!

I think you could get each bullet’s trace and use render.DrawBeam. I hope that helps you :slight_smile:

You can edit the tracer here: https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/terrortown/entities/weapons/weapon_tttbase.lua#L311

List of tracers (might be outdated) here: https://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexe14a.html

[editline]11th February 2016[/editline]

Thanks you guys! So my code would look like this:

local bullet = {}
bullet.Num = numbul
bullet.Src = self.Owner:GetShootPos()
bullet.Dir = self.Owner:GetAimVector()
bullet.Spread = Vector( cone, cone, 0 )
bullet.Tracer = 4
bullet.TracerName = “LaserTracer”
bullet.Force = 10
bullet.Damage = dmg
if CLIENT and sparkle:GetBool() then
bullet.Callback = Sparklies
end

Update:
It’s not working for me yet, still displaying regular tracer bullets.