Commit Graph

4216 Commits

Author SHA1 Message Date
Astralcircle
e91816967a
Fix NULL errors (#3126)
* More IsValid checks

* Not more IsValid checks
2024-08-21 13:50:16 -04:00
DerelictDrone
5912bd344c ModeSwitch callback for teardown of mode 2024-08-20 15:57:38 -05:00
DerelictDrone
d05944245f Don't try to index editorMode if falsy 2024-08-20 15:50:33 -05:00
DerelictDrone
0aa4610aa5 Use the passed self for SetMode 2024-08-20 06:55:36 -05:00
DerelictDrone
c7ac85ac18 Delete some comments, refactor a tiny bit 2024-08-20 06:32:44 -05:00
DerelictDrone
6927f58c38 Switch E2Helper to a partly modular/mode system 2024-08-20 05:52:37 -05:00
Redox
e425937118
Check if sound exists, fix sound emitter stuck bug (#3122)
* Check if sound exists, fix sound emitter stuck bug

* Use tab indentation
2024-08-14 14:36:48 -04:00
deltamolfar
868cf4fc89
Vehicles input + registry update (#3120) 2024-08-14 14:36:38 -04:00
deltamolfar
57dd01876d
Update compiler.lua (#3119) 2024-08-12 19:58:52 -04:00
thegrb93
0322687974
Make netstream timeout 30. Gmod apparently struggles sending 20kb in under 10s sometimes (#3117) 2024-08-10 16:54:51 -04:00
Zvbhrf
5dd4f229c9
lua/entities/gmod_wire_expression2/core/cl_files.lua:70: attempt to index a nil value (#3116)
* Update cl_files.lua

[Wiremod] lua/entities/gmod_wire_expression2/core/cl_files.lua:70: attempt to index a nil value
  1. func - lua/entities/gmod_wire_expression2/core/cl_files.lua:70
   2. unknown - lua/includes/extensions/net.lua:38

* Throw an error if no success
2024-08-08 12:26:53 -04:00
unknao
40d5f3f4aa
Merge Wire Extras' holoAnim core with the vanilla hologram core (#3113)
* added holoAnim functions

* removed redundancy & added e2helper descriptions

* Moved Think logic to the hologram entity & added more animation functions

* moved the think to the serverside
2024-08-08 12:26:42 -04:00
Astralcircle
56b807655f
Use vector_origin instead of creating a local emptyVector variable (#3112)
* Update constraintcore.lua

* Linter pass
2024-08-08 12:26:29 -04:00
unknao
dfc2f6a9c2
Add entity:parentToAttachment() (#3110) 2024-08-08 12:26:20 -04:00
Redox
4038ae0a5c
Dont use umsg anymore, use OnScreenSizeChanged hook (#3107) 2024-07-25 23:22:45 -04:00
DerelictDrone
bf12c2228f
E2 Incoming hispeed read/write events (#3106)
* Wirelink/hispeed incoming read & write events

* Description for functions, rename returnReadValue

* Failsafes against deleting others' readcell/writecells & setHiSpeedError

* New naming scheme, change docs, remove redundant func

* Read/Write Cell native to e2 chip rather than added in constructor
2024-07-25 23:22:25 -04:00
deltamolfar
a65a006f7c
More descriptions (#3105)
* Improved descriptions to deprecated funcs

* More warning descriptions

* Update e2descriptions.lua

* Thought I removed those

---------

Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
2024-07-25 23:22:08 -04:00
deltamolfar
33f65db0c9
sentSpawn improvements (#3104) 2024-07-25 23:16:26 -04:00
deltamolfar
008f8d3729
Better trails (#3101)
* Better trails

* update convar

* Make limits per player

* Update entity.lua
2024-07-25 23:16:11 -04:00
deltamolfar
e163a7d4f9
Strict mode functions (#3100)
* Selfaware strictmode funcs

* Update e2descriptions.lua
2024-07-22 17:04:43 -04:00
DerelictDrone
c8f38c3eca
E2 Collision Core(now part of propcore) (#3099)
* Collision core & event for E2

* Clear trailing whitespace in collision.lua

* Errors in strict mode for tracking

* Aliases for our/their getters as entity/hitentity

* Migrate to propcore

* Forgot to remove collision.lua from extloader

* Getter camelCasing & fixes.

* E2helper documentation for collision & functions

* Proper op costs

* Collisions are now queued and flushed on think

* Collisions only check the tick after a collision

* Event requirements & callback overload

* Forgot to remove a print

* Fit trackCollision descriptions to e2helper box
2024-07-22 17:04:26 -04:00
thegrb93
1e3548054e
Increase trigger limit (#3098) 2024-07-18 18:19:32 -04:00
DerelictDrone
c0bd394570
Cancel motor creation, tooltip for motor removal (#3097)
* Cancel motor creation, tooltip for motor removal

* Release ghost ent in both realms
2024-07-18 18:19:19 -04:00
Fasteroid
c2e4f91bbf
Fix #3082 (#3092)
* fix rangerwhitelist #3082

* inevitable bug fixes

* AHHGHH
2024-07-15 14:59:19 -04:00
Astralcircle
61a6278736
Update player.lua (#3094) 2024-07-14 18:05:58 -04:00
Viter Zakhar
e587aec654
sentSpawn functionality (#3086)
* sentSpawn functionality

* Comply with linter

* Move castings to E2/Wire lib

Moved casting and typeIdToString to E2Lib and WireLib.

Fixed major bug, where registered sents didn't check for prop protection, when creating constrains.

Changed comments a bit

* Update sents_default_params.lua

* Update prop.lua

* Moved sents_default_params.lua

Moved sents_default_params.lua
Renamed sents_default_params.lua
Changed the way to block sents, and renamed whitelist to registry, to reinforce reusability for thirdparty addons

* gmod_wire_value bug fixes

* remove whitespace -_-

* WireLib.SentSpawn.Unregister table removal fix
2024-06-27 01:32:17 -04:00
thecraftianman
7ee8185800
Optimize overlay visibility logic (#3084)
* Optimize overlay visibility logic

Also renames base_wire_entity's overlay visibility function to ENT:WireBeingLookedAtByLocalPlayer()

* Don't rename any functions

* Better last looked at check
2024-06-22 05:27:51 -04:00
Denneisk
4232fdbce3
Change toAngle to a method (#3088) 2024-06-17 20:35:57 -04:00
Viter Zakhar
a94735a96d
Update new expression2 file comment (#3083)
* Update wire_expression2_editor.lua

* Update lua/wire/client/text_editor/wire_expression2_editor.lua

Co-authored-by: Periapsises <94928308+Periapsises@users.noreply.github.com>

* Update lua/wire/client/text_editor/wire_expression2_editor.lua

Co-authored-by: Periapsises <94928308+Periapsises@users.noreply.github.com>

* Update lua/wire/client/text_editor/wire_expression2_editor.lua

Co-authored-by: Periapsises <94928308+Periapsises@users.noreply.github.com>

* Update wire_expression2_editor.lua

---------

Co-authored-by: Periapsises <94928308+Periapsises@users.noreply.github.com>
2024-06-13 18:33:36 -04:00
thegrb93
fc1e6f1c2f
Rewrote netstream (#3081)
* Rewrote netstream

* Only add timer when queue empty

* Only update activitytimeout if queue is empty too

* Move activity timeout reset into successful write

* Move net read before return
2024-06-13 18:32:58 -04:00
Redox
79d624b4d7
Fix NULL error (#3079) 2024-06-09 17:33:59 -04:00
Grocel
e5257b030e
Removed @include "garrysmod.fgd" from wiremod.fgd (#3078)
It is not needed and actually interferes with loading order and can cause conflicts with other included fgd files.
2024-06-03 18:57:40 -04:00
LiddulBOFH
7d6a99d751
Change GetContraption meta function to something different (#3077)
Renamed from ENT:GetContraption() to ENT:GetCameraFilterEntities()

Fixes a conflict with Contraption Framework
- CFW adds a meta function to all entities, ENT:GetContraption, which returns the contraption an entity is a part of
- Prior to this PR, Wire Camera Controllers have a function of the same name that is called nowhere else within wire, and hopefully nowhere outside of wire either. This function serves as a way to get all of the entities part of a vehicle the camera pod is attached to, and then adds on whatever FilterEntities has.
2024-05-30 02:55:57 +00:00
Redox
6477912829
Properly pass the chip entity instead of the runtimecontext (#3076) 2024-05-23 17:13:25 +00:00
Denneisk
9b600edb6c
Make Wiremod use Canary version for load (#3074)
Remove UWSVN code
Change Wiremod version print to use fancy string
2024-05-22 17:06:48 -04:00
Bonyoze
bf89b48d9c
Change instances of Entity:Use to use the correct caller (#3069)
* Change caller of Wire User entity

* Change caller of Expression 2 entity:use()
2024-05-22 17:06:35 -04:00
Redox
22b28e7db7
Fix NULL error in wire_adv tool (#3075)
* Fix NULL error

* Use tab indentation

* Fix linter warning
2024-05-22 14:51:41 +00:00
Redox
e88e3179f0
Add Expression2Reloaded hook and use it to reload CPPI wrap (#3064)
* Add Expression2Reloaded hook and use it to reload CPPI wrap

* Use tabs
2024-05-16 23:26:50 +00:00
Redox
3ca8282589
Add option to disable GetOwner() check in E2 (#3061)
* Add option to disable GetOwner() check in E2

* Fix lint warnings

* Use tabs

* Undo left over code
2024-05-16 23:26:30 +00:00
Redox
39d00be60b
Fix teleporter error and use cvar object (#3065)
* Fix teleporter error and use ipairs

* Fix lint warn, use cvar object

* Unset key instead and use pairs

* Use tabs

* Style suggestion

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

* Style suggestion

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

* Style

* Fix indentation

---------

Co-authored-by: Denneisk <20892685+Denneisk@users.noreply.github.com>
2024-05-13 18:27:42 +00:00
Redox
4079111f68
Fix error when building RuntimeContext with invalid player (#3063)
* Fix E2Lib NULL error

* Apply suggestions
2024-05-13 04:35:05 +00:00
Redox
a32066ce90
Use placeholder for E2 search text (#3066)
* Fix searchbar error

* Remove unused functions

* Use non deprecated version of func for linter

* Style suggestion

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

---------

Co-authored-by: Denneisk <20892685+Denneisk@users.noreply.github.com>
2024-05-13 04:31:28 +00:00
Redox
a6c72a01e1
Check if registered_events exists (#3062)
* Check if registered_events exists

* Use tabs
2024-05-13 03:20:17 +00:00
Denneisk
337214d938
Fix issues involving math.tau (#3054)
* Tau fallback value

* Change error to WireLib.Notify and add context

* Add antispam to WireLib.Notify on the client

* Change tau to use mathematically calculated always
1. It's defined like this in the math extension
2. Since I'm already going through the effort of reincluding its literal definition I may as well have it by default

* fix time calc

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

---------

Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
2024-04-30 22:38:56 -04:00
Denneisk
6917a31eb9
Fix includes with errors in main file would lock the E2 editor (#3052) 2024-04-26 21:15:39 +00:00
Denneisk
8995594ec2
Move playerWasLookingAtMe to be a property of self (#3047) 2024-04-18 22:43:26 -04:00
Denneisk
92ecf2be54
Add detour to initialize beingLookedAtByLocalPlayer (#3046) 2024-04-17 18:42:02 -04:00
Denneisk
42a2ab18ef
Rewrite to EGPLib objectcontrol.lua (#3038)
* Refactor objectcontrol.lua
Rewrote EGPLib init
Moved EGP to a subtable of E2Lib(?)
Modified E2Lib init to merge any preexisting value

* Rename objectcontrol.lua to objects.lua

* Update API usage

* Somehow removed this by accident

* Fix improper function call

* Add missing `isAllowed` local

* Possibly insufficient check if error is legitimate

* Add nil checks

* Change EGP postinit handling
2024-04-15 17:42:12 -04:00
thecraftianman
bdb3ee6e48
Even more __index call reduction (#3012)
* Reduce E2 __index calls

* Update name usage

* Even more __index call reduction

* Quick linter complaint fix

* Variable cleanup

* Further caching

This also caches the lookup in base_wire_entity for being looked at because that seems to give a decent performance improvement.
2024-04-15 17:41:45 -04:00
Redox
9bf911c74d
Optimise wire holograms (#3041)
* Optimise wire holograms

* Use GetColor4Part

* Style

* Use tab indentation

* Use locals instead
2024-04-14 18:42:10 -04:00