Commit Graph

4215 Commits

Author SHA1 Message Date
StrawWagen
6c128bf0f0
dont finalize gpu on fullupdate (#3272) 2025-02-26 17:11:20 -05:00
Astralcircle
3c4b5fddc2
Speedometer improvements (#3271)
* Speedometer code improvements

* Minor changes
2025-02-21 12:00:42 -05:00
thegrb93
62d6a66461
Fix nil angle (#3266) 2025-02-18 14:52:47 -05:00
thegrb93
03162ba839
Add text length limit to egp objects (#3269) 2025-02-18 14:52:36 -05:00
Astralcircle
dbed3cf164
entities() E2 function (#3257) 2025-02-13 19:40:00 -05:00
Astralcircle
f182ffdc69
Don't use resource.AddFile for font (#3265) 2025-02-13 19:38:45 -05:00
LengthenedGradient
ee170bb1b9
Add Vehicle Inputs To Cam Controllers And EGP Huds (#3263)
* Add Vehicle Inputs To Cam Controllers And EGP Huds

Adds a "Vehicle" input to Cam Controllers and EGP Huds, inline with Pod Controllers.

I understand this is somewhat redundant for Cam Controllers but I feel it's relevant.

I am working on some addon stuff where a seat may not exist on spawn (generated by another entity). In this case, wire I/O is a reliable way to persist linkages through dupes.

* Add 'Vehichles' Input To Pod Controller And EGP

Instead of adding 'Vehichle' to Cam Controllers and EGP

* Update gmod_wire_pod.lua

* Fix

Redundant check removed.
2025-02-13 17:57:59 -05:00
Astralcircle
f5e78e1400
Fix #3261 (#3262) 2025-02-10 15:34:28 -05:00
thegrb93
b6085e5837
Apparently nil Inputs/Outputs is supposed to be valid (#3260) 2025-02-09 21:04:14 -05:00
shroobloom
afaf942ca8
Fix modifyChat exploit (#3259) 2025-02-05 00:46:34 -05:00
Astralcircle
a667672c3b
Factorial function micro-optimization (#3258)
* Factorial function micro-optimization

* Formatting
2025-02-03 17:37:27 -05:00
rubisetcie
e39a632c7a
Added languages for max_wire_... convars (#3255) 2025-01-31 19:16:36 -05:00
Astralcircle
c75ee43ff1
``factorial(n)`` function (#3253)
* factorial(n) function

* Use local function

* Woops

* Return NaN if the number is less than 0

* Update function

Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>

---------

Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
2025-01-30 03:49:35 -05:00
thegrb93
158ec276c6
Add nil check for ports (#3254) 2025-01-29 22:16:40 -05:00
thegrb93
7d156f3a5f
Cleans up port netcode (#3251) 2025-01-28 17:15:30 -05:00
Astralcircle
61b976c026
Keypad improvements (#3252)
* Don't overwrite default fonts

* Keypad improvements

* Back comment

* DisplayText

* New line at the end

* ply:GetPos() --> ply:GetShootPos()

* ply:GetPos() --> ply:GetShootPos()
2025-01-26 07:34:28 -05:00
Astralcircle
f30caf38a7
propDissolve function (#3241)
* propDissolve function

* Better descriptions
2025-01-24 21:03:37 -05:00
unknao
a818821ed9
Update gmod_wire_cameracontroller.lua (#3249) 2025-01-24 21:03:23 -05:00
vMajx
77ae270b4e
Removed unused cost variable (#3245)
* Removed unused cost variable

* Removed unused cost variable for maxIndex
2025-01-18 22:55:56 -06:00
Denneisk
16d6d43ebf
Fix downloads when reloading file extension (#3234)
* Mitigate download issues with file extension

* Simplify timer
2025-01-06 08:43:40 -05:00
Denneisk
4262b11969
Mitigate some issues with reserved words (#3236)
* Add entity:getClass

* Remove some common reserved words

* lint
2025-01-06 08:43:28 -05:00
unknao
c4d0ca9855
Add a max distance input to the cam controller (#3237)
* add max distance input for wire cam

* hack for changing zoom without scrolling first

* made the sync message unreliable
2025-01-06 08:42:19 -05:00
Astralcircle
886ef66aa9
Fix invalid return of of e:weapon() (#3238) 2025-01-03 21:05:40 -05:00
Redox
45c2987bbc
Holo net improvements (#3210)
* Use MAX_EDICT_BITS

* Cleanup

* Use right bit amount for bones

* Use new gmod global

* Use MAX_EDICT_BITS global

* Use MAX_EDICT_BITS in wires networking
2024-12-30 04:07:58 -05:00
Astralcircle
f8b50d70bc
Fix error (#3235)
* Fix error

* move lookupattachment

---------

Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
2024-12-30 04:07:07 -05:00
Astralcircle
656c2556a6
Laser Pointer refactoring (#3232)
* Laser Pointer refactoring

* Linter pass

* Remove COLOSSAL_SANDBOX check
2024-12-28 14:05:04 -05:00
Astralcircle
525512ee7e
E2 Pickup events (#3229) 2024-12-26 23:17:34 -05:00
unknao
9ef330c136
Fix lambda timers timerSetDelay not accounting for repetitions. (#3226)
* Add entity:parentToAttachment()

* Fix design oversight on timerSetDelay.

* removed unnecessary logic
2024-12-26 23:17:18 -05:00
unknao
46f5d5c8e7
Add "flamethrower", "exhaust" and "exhaust_diy" thruster effects (#3231)
* Add entity:parentToAttachment()

* Fix design oversight on timerSetDelay.

* removed unnecessary logic

* Added "exhaust" and "exhaust_diy"

* Flamethrower effect & pictures

* Revert "removed unnecessary logic"

This reverts commit a722a5e746.

* Revert "Fix design oversight on timerSetDelay."

This reverts commit e9fe870989.

* clean up flamethrower effect
2024-12-26 23:16:52 -05:00
Denneisk
93b7900481
Fix old array getter operations (#3230) 2024-12-25 16:48:03 -05:00
Denneisk
1c14312b14
Fix try/catch would not pop excess scopes (#3216)
* Fix try/catch would not pop excess scopes

* Set scope directly

* Add test
2024-12-16 00:10:22 -05:00
Astralcircle
a14a2c7b78
WireLib.clampPos/Force optimization (#3221)
* WireLib.clampPos/Force optimization

Speeds up WireLib.clampPos by about 2x and WireLib.clampForce by about 5x

* Remove useless nan check

* Forgot

* Use unpack in clampPos

* Missing tab
2024-12-16 00:09:58 -05:00
Astralcircle
80c4eb069e
New is* E2 functions (#3220)
* New is* functions

* entity:weapons() optimization

* Missing description
2024-12-16 00:08:12 -05:00
Redox
eb9451ce59
Add e2 func entity:isAsleep (#3219) 2024-12-14 03:44:03 -05:00
Astralcircle
b6c0954b02
tickRealInterval function (#3218)
* tickRate function

* tickRealInterval

* Forgot
2024-12-14 03:43:40 -05:00
Astralcircle
3350456e76
Angle core optimizations (#3214)
* Angle core optimizations

* Linter pass

* Linter pass
2024-12-11 16:51:04 -05:00
github-is-garbage
43fc8dd827
Use window created by context menu for view requests (#3213)
* Use window created by context menu for view requests

Prevents creating a ghost DFrame that lingers eternally every time the View Requests button is pressed

* Fix View Request menu duplication

* Fix linter warnings

---------

Co-authored-by: github-is-garbage <github-is-garbage@users.noreply.github.com>
Co-authored-by: Redox <git@redox.to>
2024-12-10 23:28:04 +01:00
Denneisk
254aa69180
Add reserved words (#3201) 2024-12-10 14:34:07 -05:00
Astralcircle
6a9bc3cd56
Remove dead code (#3212)
It just deletes what should already be deleted.
2024-12-10 14:33:34 -05:00
Denneisk
530fcfcb0e
fix EGP Emitter calling draw with nil (#3209) 2024-12-07 14:46:01 -05:00
Denneisk
fbe1bed5ba
Remove cmd argument from flex/eyetarget functions (#3204) 2024-12-06 02:55:22 +00:00
Denneisk
928f14bf5f
Add holo local pos/ang (#3203) 2024-12-06 02:55:04 +00:00
Astralcircle
fa25826a45
Some improvements in color core (#3206)
Do not create new colors where possible
2024-12-05 19:20:54 -05:00
Denneisk
9e416c40b1
Change autoupdate rendering in editor (#3202) 2024-12-04 20:36:56 +00:00
Denneisk
79f14291fa
Add new E2 hash functions (#3199)
* Add hash functions

* Add the rest of them
Why not?
Increased size limit

* Change to hard throw

* Remove return (I forgot to commit this)
2024-12-04 14:25:55 -05:00
Denneisk
6a1216128b
Rewrite E2 table clone function/partial table extension modernization (#3195)
* Rewrite table copy functions
Add shallow table copying
Add table perf function
Minor optimizations and cleanups

* E2descriptions

* Remove references to arrayCopy
It was a stub, NOT AI-generated. I swear.

* Combine these loops

* Remove unnecessary return statement

* Add test
2024-12-04 19:24:09 +00:00
Denneisk
99271ee5ff
Limit @autoupdate directive executions (#3191)
* Guard autoupdate directive handler from multiple runs
Add some warning reporting to autoupdate directive
Annotate directive_handlers (doesn't really work :P)

* Try to prevent the editor from ever failing to close

* Rewrite to error on client/server if @autoupdate is in same file
@autoupdate is still ignored beyond 1 instance
2024-12-03 15:57:29 +00:00
Denneisk
27f153bd26
Try fixing the linter (#3198) 2024-12-03 15:54:47 +00:00
Denneisk
95698bad74
Fix bad EGPObject invalid function (#3197) 2024-12-03 15:54:11 +00:00
Astralcircle
a722233f1a
Micro-optimizations for base_wire_entity (#3192)
* base_wire_entity optimizations

* Do not create new vectors

* table.IsEmpty -> halos[1] == nil

Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>

* Revert some changes

---------

Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
2024-12-02 19:45:13 -05:00