Garry's Mod

Garry's Mod

88 ratings
Laser STool ( Improved )
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Fun
File Size
Posted
Updated
1.104 MB
14 Jul, 2021 @ 1:24am
3 Jul @ 1:01pm
159 Change Notes ( view )

Subscribe to download
Laser STool ( Improved )

In 1 collection by [Sk$Bh]Trick or treat KID!
DVD's addon collection
256 items
Description


This page uses steam formatting. I prefer markdown though.

Description
This is the LaserSTool I've originally ported to GM13 since then I am constantly
improving it. My goal is making it behave as similar to a real laser beam.
The original creator is the one and only MadJawa. I cannot tell you that the he will
still supports his repo in the future, but we can clearly see no commits are made since 2009.

Feature List
  • Every item is editable with new and improved spawn icons
  • Reflector, Crystal, Divider and splitter entities located in the "Laser" category
  • Reflector entity reflects any laser beam that falls onto it
  • Crystal entity can concentrate and add multiple beams together
  • Divider entity divides all falling beams to pass-trough and reflected
  • Splitter entity splits dominant beam to N separate beams
  • Very stable crystal[raw.githubusercontent.com] calculating routine and beam trace
  • Reflect[en.wikipedia.org] beam traces via hit surface material override
  • Refract[raw.githubusercontent.com] beam traces via hit surface material override
  • Calculate full internal reflection[en.wikipedia.org] according to medium boundary
  • Code base and updates in tone with Garry's mod 13
  • Supports wire[github.com] and every element supports advanced duplicator 1 and 2
  • Wire inputs[github.com] override internals when connected
  • Internal wire wrapper[github.com] taking care of the wire interface
  • Surface reflection[en.wikipedia.org] and medium refraction[en.wikipedia.org] power absorption[raw.githubusercontent.com]
  • Better model for the crystal entity not to get confused where beam comes out
  • Material override[wiki.facepunch.com] can be saved and restored with advanced duplicator 1 and 2
  • Editable entity[wiki.facepunch.com] support option for changing every aspect of the laser and crystal
  • User customizable models for crystals and reflectors via convar tweak

Useful links
Repo: https://github.com/dvdvideo1234/LaserSTool
Wiki: https://github.com/dvdvideo1234/LaserSTool/wiki

About workshop
I see many copies of this tool everywhere, but still, there is none that
have crated official repository for community contribution, besides, I think
the original author will not like that in general. If you want to try the tool
Go ahead and install it. If the original author asks I will take this down!

https://github.com/dvdvideo1234/LaserSTool

Reuploading and source stealing will not be tolerated!
Selling it is also out of option, as the open source suggests!

If you want to support me and you like what I do:

paypal.me/DeyanVasilev
217 Comments
[Sk$Bh]Trick or treat KID!  [author] 8 Jul @ 12:43pm 
@Squidward 7 Jul @ 7:58am

Aftrer some testing we have the following
1. Optiweld does not work because I see it is designed for props inside of each other. Use the regular weld or the smart weld instead
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1693027072&searchtext=optiweld
2. Multi parent and unparent tool sure does work on the crystal, but the server trace refuses to agnolige it as it does not exist. This is a normal and expected behavior in this case:
https://wiki.facepunch.com/gmod/Entity:SetParent
Keep in mind that parenting is intended only for isual effects.
[Sk$Bh]Trick or treat KID!  [author] 7 Jul @ 10:31pm 
@Squidward 7 Jul @ 7:58am

Thanks for noticing I will test the weld today in the evening to confirm that 👍
Squidward 6 Jul @ 9:58pm 
The crystal doesn't get along with the various welding tools like optiweld or multi-parent.
[Sk$Bh]Trick or treat KID!  [author] 3 Jul @ 1:04pm 
Mee's GWater black holes are officially supported!
[Sk$Bh]Trick or treat KID!  [author] 19 Jun @ 9:27pm 
@INF-Scanner Man 17 Jun @ 6:29am

Hmm.. The laser does not produce particles ins a sense like particle emitter does. It only does traces and draws the beam texture for now. What do you have in mind ??
Scanner Man 16 Jun @ 8:29pm 
question, don't you have a list of the name of each laser particle? i ask because i want to know that in theory this should work with advanced particle controller.
Trooper_025 23 Apr @ 10:00am 
oh cool! thx
[Sk$Bh]Trick or treat KID!  [author] 23 Apr @ 9:40am 
Trooper_025 19 Apr @ 9:07pm 
i feel silly for asking but where is it?
[Sk$Bh]Trick or treat KID!  [author] 9 Mar @ 12:05pm 
@DJG 7 hours ago

Hmm. Just checked as the workshop version is on commit 323cfc4. You can also check this from the addon change notes page. Works for me nicely.

The default crystal model is:
laseremitter_mucrystal models/props_c17/pottery02a.mdl

The default splitter single model is:
laseremitter_musplitter models/props_c17/pottery04a.mdl

The default splitter single model is:
laseremitter_musplitterm models/props_c17/furnitureshelf001b.mdl
I have convars for every unit in than manner. Probably you do not have the pottery model

Try changing the unit ( crystal ) to a different model using the convar
"laseremitter_mu<unit_name>"
Or a different material:
"laseremitter_vu<unit_name>"

You can see the units list here ( this is the crystal page ) :
https://github.com/dvdvideo1234/LaserSTool/wiki/Beam-crystal