What it does
lua_reloadent reloads the code of a single entity, weapon or tool type.
Advantages over lua_reloadents
It's a lot more reliable and less intrusive than lua_reloadents.
With lua_reloadents, you usually have to rebuild your test contraption if there was any "complex" component in it.
Reloading a single entity class with lua_reloadent will most likely not break anything, apart for some pitfalls.
Read the "pitfalls" section of the description in the Lua file for more details.
How to use
For more info see the "Usage" section of the description in the Lua file.
1.5.2 - You can now choose whether to reload a tool, SENT or SWEP. See the "Usage" section in the Lua file for how.
1.5.1 - Fixed an oversight error in the gmod13 support for weapons.
1.5.0 - Added support for the current GMod 12/13 versions. (as of 2012-06-15)
1.4.1 - Auto-complete is now case-insensitive. Fixed a server-side Lua error in lua_loadent.
1.4 - Added auto-completition for both server-side and client-side lua_reloadent* commands
1.3 - lua_(re)loadent now looks into the current gamemode's directory as well. It's just using FindInLua now.
1.2.1 - lua_loadent now fills all necessary fields for both SENTs and SWEPs
1.2 - Made lua_loadent work with SWEPs as well
1.1 - Added lua_loadent
1.0 - First public release
I put all my stuff on GitHub. lua_reloadent is available at:
This URL can also be used by an SVN client.