Commit Graph

4194 Commits

Author SHA1 Message Date
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
Redox
831bc00035
Add e2 timer limit convar (#3196) 2024-12-02 16:24:24 +00:00
Denneisk
a735a00932
Fix timers would not be cleaned up (#3194) 2024-12-02 03:34:58 +00:00
Denneisk
049edb0b56
Add bonemerging and model bone parenting to holos (#3189)
* Add holoBonemerge

* Add holo bone parenting
Add entity model bone functions
2024-12-01 18:11:17 -05:00
Denneisk
9ad5f1ede9
Small random cleanups (#3188)
* Fix incorrect return

* Remove unused function
2024-11-30 00:08:58 +00:00
Astralcircle
8f8368cc19
Add e:propSleep(n) to propcore (#3187)
* e:propSleep(n)

* Add description

* Use :IsValid instead of IsValid

Co-authored-by: Denneisk <20892685+Denneisk@users.noreply.github.com>

---------

Co-authored-by: Denneisk <20892685+Denneisk@users.noreply.github.com>
2024-11-28 19:26:56 +00:00
Astralcircle
95311d6d11
Minor changes in WireLib (#3185)
* Minor improvements in WireLib

* Fix non-existent sound
2024-11-26 22:29:29 +00:00
Denneisk
6476d2902b
Increase precision of dot bounds check in EGP:DrawPath (#3184)
* Increase precision of dot bounds check

* Change to LT/GT equal
Minor optimization

* Remove extra end
2024-11-19 19:28:49 -05:00
Astralcircle
dcd69a0609
Improve wire_holograms_display_owners (#3183)
* Improve wire_holograms_display_owners

Improves code performance and enhances text readability. Red color may be hard to see in certain situations, whereas white text with a black shadow remains clear in all conditions.

* Use surface.*

* Use Surface.SetFont outside the loop

* Use DebugOverlay font
2024-11-18 17:45:24 -05:00
Redox
43976e5675
Fix startup error (#3182) 2024-11-17 23:44:30 +00:00
Denneisk
01fa17cdf7
Fix setting angle was always relative (#3180)
Added ragdollGetAng to reduce confusion with ragdollSetAng
2024-11-17 13:47:24 -05:00
Denneisk
d96229615e
Remove bone-keyed caches in bone extension (#3181)
* Remove bone2entity

* Remove bone2index

* Remove unnecessary return argument
2024-11-17 13:47:06 -05:00
Denneisk
c56177b19e
Invert this LUT (#3177) 2024-11-12 11:10:27 -05:00
Astralcircle
f73616cd23
Minor changes in the effects core (#3174)
Doesn't create new vectors/angles and also formats the code a bit
2024-11-09 23:41:47 +00:00
Denneisk
2c98046255
Verify player is in vehicle before adding player to vehicle (#3173)
* Verify player is in vehicle before adding player to vehicle

* Fix bug persisting when using a simulated use action
2024-11-09 08:16:34 -05:00
Denneisk
1a635b307d
Add printCaption e2functions (#3172)
* Add addCaption e2functions

* Reduce dynamic cost

* Rename functions

* Add E2 descriptions
2024-11-09 08:16:00 -05:00
Denneisk
ebb629bb8c
E2 Debug library cleanups (#3169)
* Simplify valid_print_types init

* Change printColor to use net.WritePlayer

* Replace C comments
2024-11-08 17:50:31 -05:00
Denneisk
b9cca7a1d2
Fix PlayerUse event issues (#3171)
* Add PlayerUse hook to pod controller use

* Change the way E2 tracks playerUse

* Revised solution
2024-11-08 17:49:40 -05:00
Denneisk
b541f31704
Handle nan and inf in von (#3170)
* Handle nan and inf in von

* Minor optimization
Add case for "nan" being interpreted as "n" followed by "an"

* Update lua/wire/von.lua

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

---------

Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
2024-11-08 17:48:55 -05:00
deltamolfar
5f704a2fcc
Update comment lol (#3167) 2024-11-04 04:41:45 -05:00
deltamolfar
1a7fa75369
Lambda timers (#3142)
* init

* Add getters + adjust method

* deprecate original timers

* Remove trailing whitespace from e2lib.lua

* Bring back previously removed code lol

* Get Vurv's internals implementations

* Use ent:Execute instead of UnsafeExtCall

* Slight indexing refactor

* Update e2descriptions.lua

* fix

* Return UpdatePerf dep injection in ENT:Execute()

* Use args instead of selfTbl.context when provided

* Update init.lua
2024-10-31 21:48:01 -04:00
thegrb93
a67cd48984
Add back init code and don't send huds when requesting all (#3163) 2024-10-31 16:42:28 -04:00