Zet0rz / nZombies-Unlimited

nZombies Unlimited
MIT License
43 stars 15 forks source link

Tools System #35

Closed Zet0rz closed 5 years ago

Zet0rz commented 5 years ago

Tools are hard-coded in Garry's Mod to only load from the stools folder, and are not capable of having added to post-load in a way that scripted_ents.Register would.

Since Extensions can be loaded post-initialize, it is important that they are able to add tools the same way as Sandbox itself does, only post-init. The system should wrap the tools added so that they are always added to a new nZombies Unlimited tool tab. The tools added should have the exact same structure as TOOL in any normal tool.

Zet0rz commented 5 years ago

This issue was created after the commit that already solved this issue had been added, for completeness.