Commit Graph

4216 Commits

Author SHA1 Message Date
TomyLobo
ad9baac4a2 [AdvPod] The "Crosshairs" input is now much easier to handle. You simply wire 1 to it to activate the crosshairs and 0 to deactivate them. The setting also applies to future users of your pod now. 2010-01-13 23:38:03 +00:00
Andreas Svensson
0c0aea52ac E2: E2: added ->Input for determining if a wire is connected 2010-01-12 18:48:27 +00:00
TomyLobo
845748b16a [wire_improved] mouse control: You can now double-click ports to advance to the next step. 2010-01-12 15:27:50 +00:00
TomyLobo
77d512decf [E2] hologram.lua: holoScale[Units] no longer return nil on non-existant holo indices. 2010-01-12 15:02:38 +00:00
TomyLobo
2a079033cf [wire_improved] Fixed creating wirelinks on GPU and other entities with a single output. 2010-01-12 12:17:37 +00:00
TomyLobo
f95f9492eb [wire_improved] Added mouse control. Hold your context menu key (default: C) to use it. 2010-01-12 11:59:32 +00:00
Dan
48b0bb8ea3 [E2] entity.lua: Added number entity:volume(). Returns the volume of an entity. 2010-01-12 00:53:49 +00:00
TomyLobo
ba3cb73de4 [wire_improved] Reverted to previous behaviour of staying in stage 1 when trying to wire to an entity with no outputs. 2010-01-11 04:51:29 +00:00
TomyLobo
6b33b28260 [wire_improved] Fixies... 2010-01-11 04:46:54 +00:00
TomyLobo
86bb99152e [wire_improved]
- Added a "Create Wirelink" feature.
- Now cancelling the link properly when wiring to an entity that has an empty output list.
2010-01-11 04:25:50 +00:00
TomyLobo
b6e7ddff1d [Panel] Changed model selector to the GPULib variant. 2010-01-10 09:49:19 +00:00
TomyLobo
7517ec9683 [E2] Patch by Fizyk: Added quat(vector forward, vector up), some obscure change in Q^N/log(Q)/slerp 2010-01-09 23:44:57 +00:00
TomyLobo
73fab31611 [AdvPod] adjusted comment
[E2] e2lib.lua: Now generating the operator lookup table from the token lookup table instead of the other way round. this simplifies adding new operators.
[wire_improved] Now ignoring spaces when matching up input/output names.
2010-01-09 13:41:02 +00:00
TomyLobo
f3140ef0f0 [wire_improved] Outputs that do not match the type of the selected input are greyed and skipped when scrolling/right-clicking.
[WireLib] cleanup
2010-01-08 22:27:10 +00:00
TomyLobo
83c51b873a [WireLib] No longer creating ghost wires when cancelling a link after unlinking an input.
[WireLib] The error message when linking to an entity without any outputs is now more precise.
[wire_improved] Various fixes.
2010-01-08 20:20:14 +00:00
TomyLobo
536e8ef7d2 [E2] sound.lua: Added N=soundDuration(S) 2010-01-08 15:23:07 +00:00
TomyLobo
fab5329747 [wire_improved] TOOL:RightClick is apparently called on the client, but only in multi-player mode, conflicting with the PlayerBindPress-based system i have. Fixed by renaming my custom hooks. Stupid Garry... 2010-01-08 09:27:35 +00:00
TomyLobo
1aba708ccb [wire_improved] No longer selecting random OUTputs when wiring an entity to itself. Optimized, cleaned up. 2010-01-08 08:00:53 +00:00
TomyLobo
7bce830d43 [wire_improved] No longer selecting random inputs when wiring an entity to itself 2010-01-08 07:44:43 +00:00
TomyLobo
5702509e21 [WireLib] wire_umsg: Renamed RecipientFilter variable.
[wire_improved] Now selecting an output with the same name as the input, if there is any. The wire width slider now goes down to 0.
2010-01-08 07:01:50 +00:00
TomyLobo
55a79b03eb [wire_improved] Added the zig-zag-wire feature (rightclick after selecting an input) cleanup, added TODO list. 2010-01-07 20:57:44 +00:00
TomyLobo
3503416430 Added an "Improved Wiring Tool".
This tool is an almost complete rewrite of the Advanced Wiring Tool.
It takes less bandwidth, selects entities on the client (=no lag) and has some other small improvments.
It will replace the wire advanced STOOL shortly. More features to come :)
[WireLib] Fixed WireLib.hud_debug(text,true).
[Debugger] Fixed some checks for empty arrays.
2010-01-07 17:41:53 +00:00
TomyLobo
e80f5d0759 [WireLib] Fixed a stupid mistake related to output iterators. 2010-01-07 16:16:24 +00:00
TomyLobo
c9b79afb7f [WireLib] wire_ports: LINK message sizes are now calculated properly. Removed a debug message. 2010-01-07 10:08:17 +00:00
TomyLobo
186b540e83 [Debugger] Now using client-side port info from wire_ports. 2010-01-07 09:43:35 +00:00
TomyLobo
4b207adc3f [WireLib] WireLib.lua: WireLib.PortComparator now compares by Num, instead of Idx, which should keep ports from reordering themselves sometimes. (wire_adv, wire_debugger)
[WireLib] wire_ports: Entities should now finally be cleaned up properly. WireLib.TestPorts now also shows outputs and the entity ID.
2010-01-07 08:15:33 +00:00
TomyLobo
8015387138 [WireLib] wire_umsg, wire_ports: Why does gmod remove NULL entities? Stupid gmod...
[WireLib] Put the WireLib.AddNotify and WireLib.ClientError into neat packages named "wire_addnotify" and "wire_clienterror".
2010-01-07 07:33:57 +00:00
TomyLobo
c9c9247af4 [WireLib] Now transferring link state (connected/unconnected) to the client. lua_run_cl WireLib.TestPorts() to test the whole thing. 2010-01-07 07:15:17 +00:00
TomyLobo
5eeb63805f [WireLib] Removed some debug messages.
[GPULib Switcher] Cleanup.
2010-01-07 06:27:30 +00:00
TomyLobo
69a53598d5 [WireLib] Made entity input and output names/types/descs available on the client side. Now to make something that uses this information :)
[WireLib] wire_umsg: Now removing players that leave/crash from RecipientFilters.
[WireLib] Added WireLib.PostDupe(entid, func), which calls "func", once (Advanced) Duplicator has finished spawning the entity that was copied with the entity id "entid". Usage: WireLib.PostDupe(entid, function(ent) ... end)
[GPULib Switcher] Now duping properly, thanks to the above function.
2010-01-07 06:12:57 +00:00
TomyLobo
67dcfacaf9 [WireLib] WireShared.lua: Decreased wire_umsg size.
[Text Screen] Now using wire_umsg system, greatly reducing code complexity.
[Panel] Fixed.
2010-01-06 02:21:33 +00:00
TomyLobo
4520ae8950 [WireLib] WireShared.lua: Added a generic version of Control Panel's server->client code. Will use this in some other components soon.
[Panel] Using the generic server->client code now. Moved some stuff around.
2010-01-06 01:28:44 +00:00
TomyLobo
e933ebd89a Replaced most instances of table.getn by the equivalent # operator.
[GPULib] cl_gpulib.lua: Optimizations.
[WireLib] Made output iterators a proper class with a metatable and optimized it a bit. Do we really need this though?
[WireLib.lua] Removed Wire_AfterPasteMods and WireLib.AfterPasteMods from global/WireLib scope.
2010-01-05 18:09:29 +00:00
TomyLobo
4db7192f62 [Panel] Fixed menu visibility. 2010-01-05 09:37:19 +00:00
TomyLobo
b6a0decea1 [Graphics Tablet] Small update to enable possible future resolution changes.
[GPULib] cl_gpulib.lua: Now passing the 3D2D resolution to RenderToWorld's renderfunction.
[Panel] Large overhaul:
- Optimized client<->server transfer code
- Ported to GPULib, so you can use just about any prop with it now.
- Made resolution-independent
- Added a marker for the currently selected channel and one for the current menu selection.
2010-01-05 09:21:07 +00:00
TomyLobo
35003fdfa7 [E2] table.lua: Fixed a leak with tables and arrays. 2010-01-05 00:32:15 +00:00
TomyLobo
a99070f3a6 [E2] table.lua: Possibly fixed a leak with tables and arrays. 2010-01-05 00:14:29 +00:00
TomyLobo
7f06aaa4b6 [Grabber+Forcer] Changing the range and other options should work now and dupe properly. 2010-01-04 23:48:19 +00:00
TomyLobo
b768b49817 [Panel] Destupified code 2010-01-04 04:00:13 +00:00
TomyLobo
803264f5b2 [Screen] Changed model selector to GPULib model selector
[Graphics Tablet] Added model selector. Added "Draw background" checkbox. If checked, the background is now drawn over other GPU-based screens as well.
Others: Cleanup, comments
2010-01-01 20:33:21 +00:00
TomyLobo
8a861669ec [GPULib] cl_gpulib.lua Added some safety checks
[WireLib] cl_wirelib.lua: Added WireLib.hud_debug(text, oneframe) which displays text on the hud. Useful for debugging.
[GPULib Switcher] On the server, ent.GPUEntity now contains the alternate GPU target or nil.
[Graphics Tablet]
- Converted to GPULib.
- It can now be used with any any prop and even with the GPULb Screen Switcher tool. Graphics Tablet will only draw a background if it doesn't draw on another GPULib screen, but the other screen might draw over it.
- Adjusted the "working distance" formula to work better for large props.
[Text Screen] Optimized a bit, added disabled RenderToWorld code.
2009-12-31 20:21:26 +00:00
TomyLobo
60f9316b4c [GPULib] cl_gpulib.lua: Added a new method, GPU:RenderToWorld(width, height, func), which allows to draw with GPULib without using a rendertarget. Use WireGPU(self, true) to create your GPU in that case.
[Screen] cl_init.lua: Using GPULib's new GPU:RenderToWorld method now. This means you can use all kinds of screens with it.
2009-12-31 08:47:41 +00:00
Jimlad
1db8921181 [E2] find.lua: Added check for valid entities to findClosest 2009-12-30 16:18:13 +00:00
TomyLobo
132455f7bc [GPULib Switcher] Fixed error spam when removing the target prop. 2009-12-29 05:32:11 +00:00
TomyLobo
d952cd47cd [Text Screen] Added a vertical alignment option (0=top, 1=middle, 2=bottom). 2009-12-28 21:27:34 +00:00
TomyLobo
f449050669 Added a new tool "GPULib Screen Switcher", which can make a GPULib-based screen (Console/Digital/Text Screen/GPU/Oscilloscope) render on a different entity. Might be slightly glitchy with GPUs with a cursor. 2009-12-28 20:29:55 +00:00
TomyLobo
6b19669a1a [E2] Forgot one instance of color setting. 2009-12-23 13:11:36 +00:00
TomyLobo
d093e2c15d [E2] Now preserving alpha value when setting the color to indicate status. 2009-12-23 13:09:40 +00:00
TomyLobo
0fb315af9b [Text Screen] cl_init.lua: The layouter now also supports vertical alignment.
Note: Interface change, update EGP from UWSVN as well.
2009-12-23 00:41:37 +00:00
TomyLobo
d7a1e897e3 [E2] entity.lua: Translated to e2function format. Added E:toLocalAxis(V) and E:toWorldAxis(V) which transform axes/offsets, as opposed to positions
[ModelPlug] cl_modelplug.lua: Added 4x4 and 8x8 plate to the model selectors of GPULib-based screens.
2009-12-22 21:52:19 +00:00