wiremod/wire — pull request #410 by Jack37 (2013-08-15 15:07:36+00:00)
Title: Wire light and lamp cleanup

I started this because directional component was not working properly, and noticed some unnecessary parts of code, that can be written more simply and clearly and decided to clean up a bit. I also edited it to follow the GMod light & lamp file structure so I re-ordered the functions a bit. It would be better (not so messy) if this format changes were in separate commit, but I realized that too late :/

Basically this has changed:
- directional component FoV, Distance (FarZ), Brightness and NearZ to match GMod light and support the new light model
- removed Glow Decay. This is how fast will the light decay after the entity has been moved to another place or removed. This is not editable in GMod light (calculated: Size * 5) and I think it should not be editable in wire as it can be set to very low number and then the light stays at place even after the entity has been moved
- fixed rope offsets for different lamp models
- changed the way the radiant/directional/glow component is switched on/off.
- changed the way the light/lamp is updated (from inputs or after dupe is spawned) + overlay showing glow size and brightness on it

I tested this a lot on single player/dedicated server, old adv 1 and new adv 2 dupes, with old wire and then with my changes. Everything works fine.