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
Astralcircle
6f7f2c8e53
Micro-optimization for E2Lib.IsOwner ( #3162 )
...
Remove the singleplayer check and just define the function right away
2024-10-28 19:55:39 -04:00
Astralcircle
185717464f
Replace surface.Screen* with Scr* ( #3161 )
2024-10-28 18:38:34 -04:00
Redox
01939102da
Dont use net.WriteTable for EGP ( #3141 )
...
* Dont use net.WriteTable for EGP
* Use von instead of JSON
* Fix var name
* Send first message instantly
* Cancel early if the compressed lenght is too large
* Add uncompressed and decompress limit
* Dont network vonlen
2024-10-28 17:01:37 -04:00
Denneisk
2f5a890600
Fix sending 0-length strings ( #3160 )
2024-10-26 23:30:10 -04:00
deltamolfar
26aed14f44
e:propNoDupe(n) ( #3146 )
...
* e:propNoDupe(n)
* Add additional anti-abuse check
* Not tested in-game
* simplified + tested
2024-10-26 23:29:57 -04:00
deltamolfar
06a7637998
Update entity.lua ( #3158 )
2024-10-26 23:29:42 -04:00
Astralcircle
1f2c2b4e4d
Fix my bad ( #3159 )
2024-10-26 13:08:19 +00:00
Astralcircle
87e6ca0eec
Remove arguments overloading in SetDrawColor and SetTextColor ( #3157 )
...
* Remove arguments overloading in surface.SetDrawColor and surface.SetTextColor
* Small changes
2024-10-25 17:08:12 -05:00
Denneisk
c95c4c6b95
Fix logic in #3155 ( #3156 )
...
* Fix logic
update comment
* match is functionally identical except returns match instead of index+match
---------
Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
2024-10-25 07:31:36 -05:00
Denneisk
79479ddca9
add additional sound flags ( #3155 )
2024-10-25 11:52:11 +00:00