Commit Graph

4174 Commits

Author SHA1 Message Date
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
Denneisk
1335bfade2
Fix cursor parent using deprecated function (#3151) 2024-10-21 14:29:04 -04:00
Astralcircle
db13718a3c
Fix nil error (#3149)
* Fix nil error

* Remove timers
2024-10-18 18:04:30 -04:00
Astralcircle
fac5a5411a
Fix nil error (#3148)
* Fix NULL errors

* Fix nil error

* Change
2024-10-16 18:45:36 -04:00
Redox
235f883bff
Fix egp datastreams (#3145)
* Send vertices for poly objects properly

* Send datastream after player is added to table

* Use IMaterial if the value is a string
2024-10-14 21:32:44 -04:00
Astralcircle
7dd11e5c17
Fix NULL errors (#3144) 2024-10-12 22:53:02 -04:00
Redox
b2ed354e4f
Network EGP data only to owner (#3139) 2024-10-02 12:31:52 -04:00
Redox
11a153bc7f
Dont run player methods if player is NULL (#3138)
* Dont run player methods if player is NULL

* Fix

* Fix

---------

Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
2024-09-30 15:44:12 -04:00
thegrb93
ee7e76e4e3
Add sound flag checking to soundExists (#3133)
* Add sound flag checking to soundExists

* Also remove some precache sound calls

* Made pathcheck only when there's not a player specified

* Optimize
2024-09-19 04:26:53 -04:00
DerelictDrone
1dbd2bd1c5
Fix for tracking collision, safe external lambda calls. (#3136) 2024-09-13 04:33:20 -05:00
DerelictDrone
d2309b7ef9
Merge pull request #3127 from DerelictDrone/modular-e2helper
Switch E2Helper & Wire's Text Editor to a partly modular/mode system
2024-09-10 18:26:01 -05:00