A collection of my public E2 libraries and chips. Note this is mostly bad code and should not be taken as learning material.
❔ Want to code Expression2? Use my Expression-LS for VSCode!
Also, I've been working on a successor to E2, Expressive
Libraries are very inefficient. There's a 20 ops penalty just to use a user defined function. Use these sparingly.
Method 1 - Copy into gmod:
- Go on the chip page.
- Click the "raw" button.
- CTRL+S (Save the file)
- Drag it into your [STEAMFOLDER]/steamapps/common/GarrysMod/garrysmod/data/expression2 folder
Method 2: Paste into E2 Editor.
- Just copy and paste the code into your editor.
Both Methods: Read for any additional instructions in the form of e2 comments.
- Use
#include "e2name"
in your code with e2name being the name of the e2 you saved the library in. - Be aware that all of the functions will appear red as if the e2 doesn't recognize them but it'll work. This is because of the e2's editor not going over
#include
s