Garry's Mod

Garry's Mod

Entity Group Spawner
Showing 1-8 of 8 entries
Update: 6 Jul @ 2:35pm

Addon conflicts have been resolved when right clicking in the spawn menu.

The context menu now uses the appropriate hook for adding options to the list instead of copy pasting the entire spawn menu logic.

Thank you to a user named Zaurzo who reported and quickly fixed this issue!

Update: 10 Mar, 2024 @ 3:25pm

Thank you to a user named Global who has kindly fixed the bug with spawning stuff!


It's fixed

Enjoy

Update: 30 Jan, 2018 @ 10:16pm

Finally! After months of waiting, the spawnmenu bug appears to be fixed.

I say appears because I'm still not quite sure what the bug was. After some inspection I finally opened gmod after 4 months and noticed that tiles were endlessly being added upon search. That and some errors in the console.

The fix to all of this was to wrap a block of code in certain characters "/*" and "*/"

Now, I've read the official pages for lua comments, and I've never really seen that syntax used as for comments, but it totally appears to be a comment. A comment that blocks a loop that adds a bunch of stuff to the menu (exactly the visual response from this bug)

Perhaps this doesn't fix it, but from my testing it DID fix the repeating tiles bug.

Thank you for your patience, and please report any further bugs.

For the curious, here is the starting line of the comment block that I should have copied:
https://github.com/Facepunch/garrysmod/blob/a3e1fc8c34b6de557eb3d8977af3a33b70fb1900/garrysmod/lua/vgui/spawnicon.lua#L275

None of my editors (sublime, atom, LUA DOCUMENTATION) highlighted this as a comment block, so I initially removed the lines because they looked ugly.

Update: 28 Jun, 2017 @ 7:39pm

Remember that last update? I uploaded the wrong file!

All should be fixed now.

Update: 28 Jun, 2017 @ 6:25pm

So, EGS used to be a very advanced tool, but I dumbed it down so it's not too overwhelming for the younger audience.

This means there's a lot of disabled features within the code.

One of those features was "spawn roation randomness"

That's not too complex right? Exactly. It has been re-enabled.


Entity groups spawned on flat ground will now be able to be randomly rotated with a slider.

The slider will generate a random number between 0 and X (the slider value) and add/subtract that randomly to EACH entity in the group.

You'll probably want to use this on NPCs or props like chairs to give it a sense of realism.

TL;DR: Random entity rotation. Imperfection is digital perfection.

Update: 26 Jun, 2017 @ 6:58am

Another update nobody asked for!

MAJOR CHANGES:

  • Added checkbox for "Square edge"
  • Added checkbox for Checkerboarding the entity group (and another for inverting the checker pattern
  • Toolgun screen now displays important information about the entity group currently loaded
  • Removed Advanced EGS tool (It's too much to maintain with the Simple EGS tool, and I don't think the main demographic will be using it anyway.)

Other:

small bug fixes, performance increases, etc.

Update: 23 Jun, 2017 @ 4:13am

First EGS update! Nobody asked for it- but I like future-proofing.

This update is for those who CAN'T see the EGS option in the spawn menu.

I added an option called "Spawn Menu Compatability" which basically lets you use the "Spawn using toolgun" option to load entities.

Again:

If you can't see the EGS option in the spawn menu, either uninstall the conficting addon (which is usually something like "extended spawnmenu" or similar) OR enable spawn menu compatability and be inconvenienced.

Update: 20 Jun, 2017 @ 10:35pm

The initial EGS release.

It took two years of off/on development, but it's finally here.