Commit Graph

406 Commits

Author SHA1 Message Date
Nebual
fc66c68ad8 Adv Wire: Holding alt now wires all matching inputs
For example, left click an E2 with "@inputs W A S D Active", then alt-leftclick
a Pod Controller, and it'll create 5 wires.
2013-08-11 06:28:35 -07:00
Nebual
b841abcb5c E2: Fixed error in type error reporting
V=vec2() V=vec() showed an error in compiler.lua rather than saying
the type mismatch and line number inside the E2
This also applies to any other mismatch with types starting with x
2013-08-11 05:05:50 -07:00
Nebual
8da5bd3d2a Toolscreens: Removed superfluous cam.Start2D()
The function that calls DrawToolScreen already wraps it in cam.Start2D
2013-08-11 03:28:13 -07:00
Nebual
ed77dc700b Cam Controller: Fixed FOV changing on initial spawn
Also fixed changes to input Zoom working when cam is off
Fixes concerns in comments of c1fe96578b
2013-08-11 03:19:35 -07:00
Nebual
8930ec9edd Removed client/toolscreen.lua: It is no longer used in Gmod13
This code appears to be exactly what is now present in Garrys cl_viewscreen.lua
Which we switched to using in the Gmod13 transition.
2013-08-11 03:02:28 -07:00
Nebual
f2678ef678 Renamed wire_holograms_model_any -> wire_holograms_modelany
The latter is what wire-extras has always called it, lets not change that
2013-08-10 13:30:07 -07:00
Nebual
a3d9f57048 Added new entity: Wired Vehicle Exit Point
Promoted from the UWSVN Exit Point by @Divran
Inputs: Entity, Entities [array], World Position, and Local to Vehicle Position
Give it a vector, and when players leave one of the inputted vehicles, they'll
be at the vector. To disable, send either input a Vector(0,0,0)
wiremod/wire-extras#14
2013-08-09 22:36:12 -07:00
Nebual
12d268d7c8 E2 Overlay: CPU time is now averaged over 20 ticks
20 ticks is the same as what ops is averaged over.
I tried making it *FrameTime(), which would be 33 or 66 ticks, but it made
the opscount feel sluggish, so we'll keep it how it is
2013-08-09 21:33:00 -07:00
Nebual
2587f6c3ce Gimbal: Now maintains its aim as long as its on
Closes #396
2013-08-09 18:32:09 -07:00
Nebual
477a472103 E2 Editor: Double clicking a file now switches to its tab
Previously, it would always open in a new tab (you still can via right click)
Right Click -> "Open" now reloads an existing tab from disk
Closes #393, thanks @natrim for noticing
2013-08-09 11:54:01 -07:00
Nebual
1539abe372 Holograms: Added wire_holograms_model_any (defaults 0)
Closes #390
2013-08-09 11:30:56 -07:00
Nebual
a2fe9c26c6 Pod Controller: Fixed issues some had with advdupe2
Hooks are executed in a random order, based on the hash of the key, which isn't
consistent across installations. Since Advdupe2 uses InitPostEntity, we have
to go earlier, in Initialize, or risk randomly being run after Advdupe2.
Fixes #392, @Bubbus you weren't crazy!
2013-08-09 10:31:26 -07:00
Nebual
b2ecc87226 Cam Controller: Fixed not working after duping if nonstatic
Fixes #389
2013-08-08 19:40:37 -07:00
Nebual
8b02bb960e VThrusters: Fixed force always aiming slightly down
Fixes #394 (I hope)
2013-08-08 12:57:54 -07:00
Nebual
0cec4e609b Made the Wire Data Store SENT smaller
Lol 17 lines
2013-08-08 05:29:16 -07:00
Nebual
5207a9fb04 E2: Added runOnKeys(e,n), keyClk() [e], keyClk(e) [n]
When active, executes chips when a serverside key is pressed and released
This only listens for the E:keyForward() style function's keys
2013-08-08 04:06:44 -07:00
Nebual
192ed5e4f8 Added new SENT: Wire Gimbal (based on wire-extras Wire Facer)
Inputs: On, X, Y, Z, Target [VECTOR], Direction [VECTOR], Angle [ANGLE]
Regarding wire-extras#14
2013-08-07 18:08:50 -07:00
Nebual
8a6b3d1778 Pod Controller: Fix for Advdupe2
Advdupe2 builds a whitelist of classes based on scripted_ents.GetList(),
which does not include scripted_ents.Alias'd classes apparently
Fixes the concerns in 1db9c8323c
2013-08-07 17:04:58 -07:00
Nebual
0ee46387f9 MakeWireEnt: Fixed many bugs; no longer copies whole enttable
duplicator.GenericDuplicatorFunction was only intended to be used on entities
that don't have a RegisterEntityClass defined, so it copies all variables
rather than just the ones the class needs.
This fixes a ton of bugs when using the Garry duplicator on any wire entity
using MakeWireEnt. Fixes #388 and http://errors.garrysmod.com/error/3549022570
2013-08-07 14:29:23 -07:00
Nebual
706d674024 Hoverdrive Controller: Fixed deleted ConVar
Fixes http://errors.garrysmod.com/error/1450461536/
2013-08-07 13:01:12 -07:00
Nebual
64c5cf22b6 Pod Controller, Beacon Sensor: Now uses SetupLinking
WireToolSetup.SetupLinking now takes a boolean for only allowing 1 link
WireLib.SendMarks can now take an optional table of marks argument
Closes #387
2013-08-07 05:35:01 -07:00
Nebual
f77f245ee9 Beacon Sensor: Updated to MakeWireEnt
Removed references to "SwapYZ" and "vector_in", which seem defunct
Renamed text in CPanel from "Split XYZ" to "Output local position"
Beacon Sensor, Pod Controller: Renamed SetBeacon/Link to LinkEnt
Pod Controller: Uses Misc_Tools model list now
2013-08-07 02:54:49 -07:00
Nebual
6d1b1233e4 Added new SENT, an Analog Lever
It outputs a number based on its current angle, which follows a User's eye
Angle positioning is based on an old SBMP ent 'WireGradLever', which has
long been removed from their repositories.
wiremod/wire-extras#14
2013-08-06 21:11:51 -07:00
Nebual
bf59c6352f Freezer: Added "Disable Collisions" input for linked ents
Comes with 4 tradable nocollide types, shown in the overlay. Collect them all!
wiremod/wire-extras#14 (This adds a better Nocollider)
2013-08-06 19:09:26 -07:00
Nebual
7f3503f541 Button: Fixed always pasting as off 2013-08-06 19:07:07 -07:00
Nebual
80d8b4c7fb Added new SENT: Wire Freezer
Concept promoted from wiremod/wire-extras#14
though its been totally rewritten based on Adv EMarker code
Backwards compatible with dupes from the wire-extras version
2013-08-06 17:15:41 -07:00
Nebual
4447a5a59d Adv EMarker: More Cleanup 2013-08-06 17:15:41 -07:00
Nebual
9ad315e049 Adv EMarker Stool: Moved all linking code inside WireToolObj
Running WireToolSetup.SetupLinking() inside a stool now sets it up with
RightClick, Reload, and DrawHUD functions that link/unlink entities
2013-08-06 16:26:33 -07:00
Nebual
f4b58184ba Moved Adv EMarker's net code for showing links to Wirelib
Refactored out the call the Adv EMarker stool's call to Controller.CheckEnt
2013-08-06 16:20:43 -07:00
Nebual
4da1f57064 Adv Pod Controller: Fixed 'Allow Buttons'
Fixes #386
2013-08-06 15:43:17 -07:00
Nebual
36467e7b04 Adv Emarker: Cleaned up and generalized stool, updated to Net
WireToolObj: Moved CheckHitOwnClass from SERVER to shared
2013-08-06 15:40:07 -07:00
Nebual
aaf22d74c9 Plug/Socket: Updated to MakeWireEnt 2013-08-06 15:11:33 -07:00
Nebual
0bc29927ea Screens: Fixed 'create flat' 4realzies this time
Fixes #380 betterer
2013-08-06 13:43:26 -07:00
Nebual
b758f8cbb5 Gates: Fixed spawning limit bug
Fixes #383
2013-08-06 12:17:28 -07:00
Nebual
c8a0a527c2 Grabber: Fixed error when disabling grabber sometimes
Fixes #384
2013-08-06 11:53:32 -07:00
Nebual
06a6ec633d Localized a few globals that didn't need to be 2013-08-06 05:07:12 -07:00
Nebual
ef60aa52b3 Hoverdrive Controller: Fixed using bad dupe function
What a name ehh? "Hoverdrive Controller", whats it do? Teleport props, duh.
2013-08-06 04:44:41 -07:00
Nebual
3d2374568e EGP: Now uses WireToolObj code for Angles and Position
Screen Models: Removed cube1x1x1, unsure why it was in there at all?
2013-08-06 04:38:15 -07:00
Nebual
cbe231e77e Screen Tools: Create Flat should now be more consistent
Thanks @Jack37! Closes #380
2013-08-06 04:37:32 -07:00
Nebual
d0bf67cc67 Camera (Static): Fixed visual bug when the prop is removed
Cam Stool: Fixed error on reload
Fixes #379
2013-08-06 03:41:17 -07:00
Nebual
086088f202 base_wire_entity now caches its ref to base_gmodentity 2013-08-06 03:27:16 -07:00
Nebual
355a859b1f Light: Switched to DataTable vars; tidied
Hoping to fix http://errors.garrysmod.com/error/199050119/
2013-08-06 03:26:40 -07:00
Natrim
930023863d e2 c style to lua style 2013-08-05 12:43:38 -07:00
Nebual
8620869986 Added WireLib.ErrorNoHalt, as ErrorNoHalt fails at 512 chars
Stops the error cropping in #377
2013-08-05 12:29:18 -07:00
Nebual
ff643852b9 Sound Emitter: Restored backwards compatibility with dupes
Sorry, I know your renaming made more sense, but we have to keep old dupes
Here I'll rename Sound -> SoundObj to keep things clear
Fixes #377
2013-08-05 12:05:39 -07:00
Nebual
e3eb897693 Gate Stool: Further WireToolObj'ing of LeftClick
Made its GetAngle based off WireToolObj's (to improve results on flat surfaces)
2013-08-05 11:50:07 -07:00
Nebual
11fe698415 Graphics Tablet: Updated to MakeWireEnt
Stool now uses WireToolObj shared code
2013-08-04 14:27:11 -07:00
Nebual
c0f05a66f0 Fixed nonadmins being unable to spawn some wire ents
Fixes #373
2013-08-04 14:27:11 -07:00
Nebual
ef37a6d1f6 Added Convar: wire_force_workshop, forces clients to DL wire
Closes #336
2013-08-03 20:37:54 -07:00
Nebual
5f8aab05bf Finished refactoring 8 SENTs to Gmod13 single file format 2013-07-28 13:24:28 -07:00
Nebual
65a125bb11 Refactor of 8 SENTs to Gmod13 single file format, part 1
Edits in next commit
2013-07-28 13:24:27 -07:00
Nebual
a2454795ff Trace Ents: Switched from NetworkedVars to new DataTables
Range is now duped as a datatable var instead of with RegisterEntityClass
Is still backwards compatible with old dupes
2013-07-28 13:23:55 -07:00
Nebual
673beecfff Trace Ents: Finished refactoring into single file SENTs 2013-07-28 13:23:00 -07:00
Nebual
d6a6b603e6 Trace Ents: Refactored to Gmod13 single file SENT format
Edits in next commit
2013-07-28 13:23:00 -07:00
Nebual
58c10f5329 Refactored Wire_DrawTracerBeam to base_wire_entity
Standardized uses of Get/SetBeamRange -> Get/SetBeamLength
Generalized SetForceBeam -> SetBeamHighlight
Cleaned up some Entity shared.lua functions that were unused
2013-07-28 13:22:20 -07:00
AbigailBuccaneer
03972803dd Normalize line endings. 2013-07-28 15:51:47 +01:00
Nebual
f56259df27 E2 Editor Icons: Slight typo in last update
Fixes #342
2013-07-24 11:18:34 -07:00
Nebual
612a3a0079 Fixed missing E2 Editor textures
Deleted some legacy texture files in favour of their modern equivalents
Fixes #337
2013-07-24 03:07:52 -07:00
Nebual
10e960e6df Replaced uses of self.Entity with self
self.Entity is officially deprecated, and was causing issues with Garrydupe
2013-07-23 16:41:18 -07:00
Nebual
b08e402e67 Map Saves: Fixed wires not pasting 2013-07-23 03:29:47 -07:00
Nebual
38f63d5554 E2 E:inNoclip() improved sanity check 2013-07-22 14:00:08 -07:00
Nebual
d3877bfb5e Adv Entity Marker: Raised limit from 3 -> 10 2013-07-22 13:59:19 -07:00
Nebual
38192af021 Debugger: Moved the formatPort global to its own file
Sometimes lua is loaded in a different order, usually stools load before SENTs
but occasionally E2 extensions load before the Debugger, causing an error when
they try to register types. Now formatPort is loaded very early on.
Fixes http://errors.garrysmod.com/error/447498603/
2013-07-22 12:55:07 -07:00
Nebual
e3393b3327 wire_load: Lowercased all lua file references 2013-07-22 12:16:25 -07:00
Nebual
d13e7a1a0d Hud Indicator: Added sanity check to DrawHUD
Fixes http://errors.garrysmod.com/error/2831880801/
2013-07-22 04:44:00 -07:00
Nebual
1f96cf48d1 Thrusters/VThrusters: Added more info to overlay
Overlay now shows "Force Mul" as set in the tool config,
"Model Mul" which shows the impact various models have on thrust,
"Input", and a total "Force Applied" which is the product of the above three
2013-07-22 02:05:59 -07:00
Nebual
5da7094894 Finished second wave of SENT renames
First wave 035f5ecc11
2013-07-22 02:05:49 -07:00
Nebual
32e9df64b9 Renamed 21 sents to Gmod 13 SENT naming convention
Edits in next commit
2013-07-22 02:05:40 -07:00
Nebual
289eb82e21 E2 Editor: Fixed an error with Ctrl-F
When using both ignore_case and wrap_around, ignore_case wouldn't actually work
2013-07-22 02:05:28 -07:00
Nebual
ecef522bd4 DigitalScreen: Added new colourmode 4: XXX (Greyscale) 2013-07-22 02:05:19 -07:00
Nebual
cd86d66757 E2: Reduced ops cost of some functions
Functions without defined ops default to 20, so I'm mostly reducing ops here
Bones, Chat, Color, Console, Constraint, Find, Sound: Defined ops costs
2013-07-20 03:52:12 -07:00
Nebual
1d78f1c123 E2: Refactored out __e2setcost(nil)
Ending files with __e2setcost(nil) is now automatically done by extloader.lua
2013-07-20 03:51:21 -07:00
Nebual
10ae6f749e EGP: Fixed Divran being tired Nov 28th 2010
Opcosts for sending/removing new objects were lower than intended
2013-07-19 18:55:42 -07:00
Nebual
143e060dd4 addon.json: Lowercased some names 2013-07-19 12:05:04 -07:00
Nebual
0d814282ca Radio: Fixed changing number of inputs not duping
Fixes wiremod/AdvDuplicator#42
2013-07-19 12:04:58 -07:00
Nebual
0baf53f432 EGP: Fixed memory leak when using egpClear frequently
Fixes #302
2013-07-15 13:57:50 -07:00
Nebual
a1cf5efc29 PropCore: Reordered sanity check to hopefully fix #317 2013-07-15 13:57:40 -07:00
Faron Fox
ca728e6602 Merge pull request #313 from Nebual/master
Renamed all files to lowercase, for workshop compatibility
2013-07-14 17:15:38 -07:00
Nebual
1df274cea3 E2: Added E:keyPressed(S), allowing use of nearly all keys
It uses the same key detection as the Wire Keyboard & Garry's new numpad system
The string must be either a letter/number, or the English name of a symbol
"K", "5", "COMMA", or http://wiki.garrysmod.com/page/Enums/KEY lists more
2013-07-13 01:53:34 -07:00
Nebual
efe065dea8 Renamed all files to lowercase, for Workshop compatibility 2013-07-12 00:55:14 -07:00
Nebual
794c194ee0 Added Workshop required files 2013-07-10 12:35:55 -07:00
Nebual
7120d8aec6 Added a system to write all the data/*.txt files from lua
This is for Steam Workshop compatibility, as it does not permit .txt files
This should mostly deal with #307, unless theres other whitelist problems
2013-07-10 02:16:00 -07:00
Nebual
1fbc2412e2 Adv Pod: Fixed a nil error when using the Remote Controller
Fixes #293
2013-06-21 00:00:15 -07:00
Nebual
f291c42944 AdvPod: Updated Thirdperson to work again 2013-06-02 12:48:14 -07:00
Nebual
2ff8ed9efd EGP: Fixed egpScrSize, egpScrW, egpScrH returning strings
Fixes #276, Divran tracked it down
2013-05-04 10:31:05 -07:00
Nebual
c77610776f Damage Detector: Fixed #272 2013-04-21 13:14:00 -07:00
Nebual
c7b854b677 Damage Detector: Added "Reset" input 2013-04-18 23:50:43 -07:00
Nebual
20e7c15635 Updated vON. We're now using the version with Gmod types
Thus Vectors/Angles/Entities/Players are now supported
Fixes #259
2013-03-30 19:56:11 -07:00
Grocel
341500636e - Added the common sounds from the GMod wiki as sound list. 2013-03-31 01:49:42 +01:00
Nebual
747f2d56c5 Holograms: Raised some default limits
wire_holograms_max 128 -> 250
wire_holograms_burst_amount 30 -> 80
Reduced packet size of clips; this also restricts max_clips to 16
Re: #232
2013-03-14 22:41:42 -07:00
Nebual
69ae6fde7f Keyboard: Fixed erroring on mouse presses
Also removed the error tracking debug
Fixes #239
2013-03-09 12:31:58 -08:00
Nebual
5ce05c6466 Keyboard: Added slightly better error handling for bad keys
Trying to track #239
2013-03-08 13:27:04 -08:00
Nebual
58ceb30de2 Laserpointer: Attempt to fix a rare error with player models
May help with #253
2013-03-08 13:24:14 -08:00
Nebual
4c979fb1e9 EGP: Added egpLineStrip(n id,r), Similar to egpPolyOutline
Identical to egpPolyOutline, without the final line between first & last vertex
Closes #248
2013-03-08 13:17:21 -08:00
Nebual
267f4a2a81 E2: Added getCode [S] getCodeIncludes [T] E:remoteSetCode(ST)
Credit to @Divran, #233
2013-03-08 13:17:14 -08:00
Nebual
205ec7fa11 EGP: Raised egpPolyOutline max elements from 256->65565
Re: #252
2013-03-08 13:17:06 -08:00
Nebual
a13e826760 E2: Fixed setTrails failing in an obscure case
If the ent already had trails, but the trail SENT was removed via lua, like PP
Fixes #245
2013-03-03 15:16:44 -08:00
Nebual
d8cc487b43 Fixed some aspects of UWSVN not loading
Fixes #244
Was removed by Jetbeard's 278fc78408
but the reason UWSVN was loaded by Wire was to ensure Wire loaded first
2013-03-03 15:12:52 -08:00
Nebual
399f5c35e0 Target Finders: Fixed not duping the range
Fixes #243
2013-03-03 12:21:06 -08:00
Nebual
5e21521dbd Holograms: Improved clip direction precision
Fixes #240
2013-03-02 18:54:06 -08:00