How would I go about making my own tracer effect? Like the one seen on here:
[quote][IMG]http://cloud-4.steampowered.com/ugc/3281179775512815085/B3394BE9FDB87AA1E33A8376443C53AF8EF1B2E2/[/IMG][/quote]
As well, does anyone have an example of the Player:AddPlayerOption() function in use?
Here's an example tracer effect that comes with GMod:
[url]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/sandbox/entities/effects/lasertracer.lua[/url]
Here's the tool tracer, also comes with GMod by default:
[url]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/base/entities/effects/tooltracer.lua[/url]
Here's how a tool tracer effect is created:
[url]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua#L221[/url]
You didn't even try to do your research, did you.
[editline]22nd April 2014[/editline]
Also, [url]http://wiki.garrysmod.com/page/Structures/Bullet[/url]
You can use TracerName field for Entity:FireBullets to easily change the tracer effect on a SWEP that fires bullets.
[QUOTE=Robotboy655;44616207]Here's an example tracer effect that comes with GMod:
[url]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/sandbox/entities/effects/lasertracer.lua[/url]
Here's the tool tracer, also comes with GMod by default:
[url]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/base/entities/effects/tooltracer.lua[/url]
Here's how a tool tracer effect is created:
[url]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua#L221[/url]
You didn't even try to do your research, did you.
[editline]22nd April 2014[/editline]
Also, [url]http://wiki.garrysmod.com/page/Structures/Bullet[/url]
You can use TracerName field for Entity:FireBullets to easily change the tracer effect on a SWEP that fires bullets.[/QUOTE]
Thank you. I just read the ShootBullet function info on the wiki, wasn't sure where the search after that.
Sorry, you need to Log In to post a reply to this thread.