• [TTT] Loadout Menu
    34 replies, posted
[t]http://cloud-2.steampowered.com/ugc/31843334104822258/86359222C7BFCCEE031BF1A266648E6B8318A8CF/[/t] After seeing this Coderhire addon ([URL="http://coderhire.com/scripts/view/129"]http://coderhire.com/scripts/view/129[/URL]) by Spykr sell for a kinda crazy 10 bucks, I figured I could recreate it and release it for free. I dont really like the idea of Loadouts in TTT but it seems to be a fairly popular idea (mostly among those who do not like searching for guns) and so I went ahead and finished it. Open the menu by typing !Loadout in chat (or wl_open in console) and click on whichever gun you want in their respective categories. You can change all the colors of the panel in the lua file. You only recieve the weapons on round start, not player spawn, so once you die they are gone even if you get revived. It also contains a usergroup Blacklist which can limit use of this menu to Donators, Admins, or even just yourself which can be changed in the lua file. This only works with default TTT weapons at the moment and I dont really have any intention to add support for other gun packs cause I hate dealing with them, so attempt that on your own if you wish. Thanks for reading, enjoy! [t]http://cloud-4.steampowered.com/ugc/31843334104853408/1DD243260BE17F1E7FEA90065EABB728F5AE75B0/[/t] [t]http://cloud-4.steampowered.com/ugc/31843334104873515/14E319BDAABC8B26E98702A4DA876607BF7A8E85/[/t] Workshop: [url]http://steamcommunity.com/sharedfiles/filedetails/?id=301839781[/url] Github: [url]https://github.com/Exho1/TTT_Loadout_Menu[/url]
Very nice of you to release an addon of this for free, but it's kind of awkward when it looks almost identical except the GUI skin. It's still awesome of you, but next time I'd recommend making it a little bit different so it doesn't just seem like an update to his script with a better GUI And yes, I understand there's new features (not major), and I'm not trying to attack you or anything, just putting it out there
[QUOTE=Chimpanzee;45718504]Very nice of you to release an addon of this for free, but it's kind of awkward when it looks almost identical except the GUI skin. It's still awesome of you, but next time I'd recommend making it a little bit different so it doesn't just seem like an update to his script with a better GUI And yes, I understand there's new features (not major), and I'm not trying to attack you or anything, just putting it out there[/QUOTE] Doesn't matter if he is trying to mimic an addon. It would only be an issue if he literally copied the code from the other addon.
[QUOTE=code_gs;45718563]Doesn't matter if he is trying to mimic an addon. It would only be an issue if he literally copied the code from the other addon.[/QUOTE] Oh I know that, I may have worded my text wrong. It isn't a necessity that I'm trying to get at, just make it seem more like a different addon for the sake of diversity
[QUOTE=Chimpanzee;45718593]Oh I know that, I may have worded my text wrong. It isn't a necessity that I'm trying to get at, just make it seem more like a different addon for the sake of diversity[/QUOTE] Pretty diverse already. One's free.
I'm just gonna leave
Derma is not my strong suit and neither is making original derma look good lol, so I shamelessly copied the design. I have some ideas to make it more original but thats for later. But the code is all original and was originally written in 2 hours so its not all that good, but it works nicely. Valid point :)
Not sure if this already is, but you should really add support for custom guns. Just like a primary secondary and grenade table with gun definitions would make this a lot better. I'm not home and can't view code atm. Also you should think about making a github version. Anyways good job.
I dont know how to use Github :/
Download the GitHub for Windows and just use folder mirroring.
[url]https://github.com/Exho1/TTT_Loadout_Menu[/url] I should start putting up some of my other projects there too. Cool site
[QUOTE=Exho;45720046][url]https://github.com/Exho1/TTT_Loadout_Menu[/url] I should start putting up some of my other projects there too. Cool site[/QUOTE] Yeah, it's an awesome tool. Very useful
[QUOTE=NotSoSuper;45721852]based on what it looks like you're saying, you bought the script, change the derma and chat messages&color, and uploaded it to github claiming it's yours. let me hope not.[/QUOTE] No, he specifically used the word recreate not replagiarize. It's his own addon just looks similar. This is the confusion I was trying to get at in my original post
[QUOTE=NotSoSuper;45721852]based on what it looks like you're saying, you bought the script, change the derma and chat messages&color, and uploaded it to github claiming it's yours. let me hope not.[/QUOTE] What thread are you reading? Cause it certainly aint this one. I said above that I initially coded this in 2 hours. I even say both here, on the workshop page, and my numerous FP posts about this that its all my code. Spkyr could probably even verify that I didnt buy the thing and I doubt the code is even the same. I dont steal code, thats low. I only take the concept and attempt to recreate it both as a learning experience and to provide alternatives to CoderHire content
[QUOTE=Exho;45722408]What thread are you reading? Cause it certainly aint this one. I said above that I initially coded this in 2 hours. I even say both here, on the workshop page, and my numerous FP posts about this that its all my code. Spkyr could probably even verify that I didnt buy the thing and I doubt the code is even the same. I dont steal code, thats low. I only take the concept and attempt to recreate it both as a learning experience and to provide alternatives to CoderHire content[/QUOTE] Don't waste your time acknowledging what NotSoSuper has to say, the only thing he is capable of is [b]purchasing[/b] scripts.
[QUOTE=Chimpanzee;45722058]No, he specifically used the word recreate not replagiarize. It's his own addon just looks similar. This is the confusion I was trying to get at in my original post[/QUOTE] Hey!, I thought you said you were leaving. :P
Well I updated it so that it actually uses 3 files instead of just 1 (again, bad foresight) so reading and configuring stuff should be easier.
Creating a PR with an overhaul of the code.
Wouldn't it be easier to loop through [URL="http://wiki.garrysmod.com/page/weapons/GetList"]weapons.GetList[/URL] and have a blacklist, instead of creating each weapon in a table? (You could explicitly set traitor/detective/special stuff so they don't load, with additional checks) That way you don't need to define names, classes and icons and can do it all automatically. Could just set a blacklist table with classnames.
[QUOTE=Phoenixf129;45736903]Wouldn't it be easier to loop through [URL="http://wiki.garrysmod.com/page/weapons/GetList"]weapons.GetList[/URL] and have a blacklist, instead of creating each weapon in a table? (You could explicitly set traitor/detective/special stuff so they don't load, with additional checks) That way you don't need to define names, classes and icons and can do it all automatically. Could just set a blacklist table with classnames.[/QUOTE] Sorry for the late response, I was banned! But uh, my coding for this wasnt the best I know; it was whipped up pretty quick.
[QUOTE=code_gs;45718563]Doesn't matter if he is trying to mimic an addon. It would only be an issue if he literally copied the code from the other addon.[/QUOTE] ...Like a leak. eeeeeeeeeeeeeeeeeeeeh
[QUOTE=linkfan321;47692675]...Like a leak. eeeeeeeeeeeeeeeeeeeeh[/QUOTE] You know, maybe you should look at the date of the last post (nearly 9 months ago) and think "Hey, maybe I shouldn't bump this thread with a useless post". :) On another note, the code in this thing is BAD. I manually created each Derma element instead of looping.. Dark times
I have m9k weapons I want to add, but when I check the config apparently there can only be 2 rows of guns? If that is so, is there a way to expand it?
Nope, pointing again to awful code
Ok
-snip- see Exho's comment below. The updated version of his is live, so use it instead.
[QUOTE=crazyscouter;48183797]Not to be a dick, Exho, sorry, but here's a revised version that supports this: [url]https://github.com/crazyscouter/TTT-Loadout-Menu[/url][/QUOTE] Thanks! Edit:You cant actually restrict guns to certain groups, looks like im sticking to Exhos.
For whatever reason I decided to say fuck it and dive into the clusterfuck that is nearly year old code from when I was first starting to get the hang of Lua. I pretty much ended up rewriting the addon to bring it up to par with how my code looks today and reduce the boilerplate code that plagued the original. I didn't really add anything special besides the scroll bars (like crazyscouter's) so more weapons can be added (like crazyscouter's). On the surface the loadout menu is going to look pretty much the exact same but underneath its a whole new script. This update will make future changes infinitely easier to do, enjoy
hook.Add( "TTTPrepareRound", "loadout_distribute", function() That should make this trigger during prep instead of round start, right?
Yeah that will
Sorry, you need to Log In to post a reply to this thread.