• Inventory system - Spice up your gamemode!
    62 replies, posted
[highlight]:siren:NOTE!:siren: You [i]CANNOT[/i] run this on your server in the form you download it. You [i]MUST[/i] install it into a gamemode or autorun. This is [i]NOT[/i] for the average Joe, but for people [i]designing gamemodes[/i] and who want an inventory system.[/highlight] Okay, now since that is out of the way, let's begin! [b]Inventory Version 1 features:[/b] -A basic GUI for the inventory (developers can spice it up, it's just a placeholder) -A dynamic weight system. -Both premade items and being able to pick up anything else you want. -Small 32x32 (dimenions are changable) icons for every icon you pick up. Default for non-specified (premade items) is just a white square. -Stack system. Unlimited amount of stacking. -You don't have to use your arrow keys and use button to select items! Simply hover your mouse over an item for information about the object! -A (buggy) combining system. Hover over an item you wish to combine and press your sprint button. It should say it's in the combine list in green above the left/right click instructions in the info box. When you have everything selected, press use to attempt a combine. -Easy to make items and recipes. You can have over a hundred things needed to be selected at one time to make something, and give yourself over a hundred things too! -With 32x32 images, you can hold up to 216 [i]seperate[/i] items!! -Compatible with [i]any[/i] gamemode. I hooked it up to sandbox myself. [b]Unwanted things. There always are these. :/[/b] -Combine system seems bugged and I don't know how I'd fix it. It doesn't always take the right amount of items. -During an earlier test someone on my server picked up the floor of one of the dm maps. They said it showed as dm_underpass.vmf. No idea if they were pulling my leg, and if it was fixed or not. So be aware of that. -Sometimes the pickup data gets corrupt. One occasion of this is I was picking up cans that are dropped from the soda machine in rp_oviscity_b3's hospital. I picked up a can then accidentally picked up the machine (:eek:). When I tried to drop the machine, it read it as a can. Same thing happened when I picked up a computer, then a chair. I dropped two computers, no chair. -Really annoying, but It can't be helped. In order to make special effects for items, you have to make the console command serverside. -Cannot read a player's inventory table serverside. I wish I could make a table global. Oh well. [b]Another note![/b] [highlight]I will not answer stupid questions like "How do I bring up the inventory?!" or "How I shoot web?!". I repeat: This is not for the average Joe, but for gamemode designers![/highlight] Thanks to Night-Eagle for the idea with his original inventory system, and to my friends on xfire who put up with my anger and frustration on my test servers! :keke: [b]Picture:[/b] [URL=http://imageshack.us][IMG]http://img87.imageshack.us/img87/2281/gmconstruct0128tp1.jpg[/IMG][/URL] (My cursor is over the item in my inventory) [b]Download:[/b] [url=http://files.filefront.com/inventoryzip/;6826075;;/fileinfo.html][img]http://img474.imageshack.us/img474/2192/inventorydlllk7.png[/img][/url]
Nice work. might make me make a gamemode. I include it into a current lua gamemode file?
Looks interesting, in the script's current state, can inventory items affect the player? (Example: Heal the player, send him flying into the air.)
Heal is an item added in the download. Medkit. Heals 25 on use (left-click) :keke:
[QUOTE=Gmod4ever]Heal is an item added in the download. Medkit. Heals 25 on use (left-click) :keke:[/QUOTE] But can items do other things to the player?
Nice bit of code but not a very nice GUI, I may be tempted to write my own GUI for it for fun. Good job.
Hooray! An inventory system! Too bad I can't script worth shit. I hope to see this in some future gamemodes, though.
[QUOTE=Conna]Nice bit of code but not a very nice GUI, I may be tempted to write my own GUI for it for fun. Good job.[/QUOTE] I know it's shit GUI. I even said as much. It's just a placeholder so other gamemode designers can create their own GUI for it.
[QUOTE=Gmod4ever]I know it's shit GUI. I even said as much. It's just a placeholder so other gamemode designers can create their own GUI for it.[/QUOTE] I'd probably write my own if it came to it, but you have done a fantastic job on this - and hopefully some gamemodes will use :)
This could be pretty awesome if used properly.
nice
This is gonna be awesome! :excited:
Half-bump. GMod4Ever, can you post an item making tutorial?
WOW ! NICE WORK :D 100X Gold star !
Wow. This is kickass. RP just became worthwhile.
Can I store love in it? :ussr:
Medieval RP gamemode will now be enhanced.
nice job!
Gmod4ever: I developed the GUI for the DSRP system inventory, but not the backend due to my given scope. If you would like the interface, PM me. [IMG]http://img180.imageshack.us/img180/3198/invslotrg3.jpg[/IMG] -Stretchable -Repositionable -Multiple-instance-able -Scrollable -Able-able-able
[QUOTE=Night-Eagle]Gmod4ever: I developed the GUI for the DSRP system inventory, but not the backend due to my given scope. If you would like the interface, PM me. [IMG]http://img180.imageshack.us/img180/3198/invslotrg3.jpg[/IMG] -Stretchable -Repositionable -Multiple-instance-able -Scrollable -Able-able-able[/QUOTE] Neat! I can't wait to see this employed in some game modes. Imagine carrying small, reserve air tanks for Life Support Systems mod in a backpack; or carrying desperately needed supplies to a stranded group in an RP game.
Wow, what an awesome script but unfortunatly the link is broken for me.
Filefront is up for me. Maybe it was down 12 hours ago. Thanks guys for the comments and resurrection though. I doubt I need to tell you that without this my Roleplay mod wouldn't get far. [spoiler]Yay eBay![/spoiler] :v:
nice for make the gamemode winter survival for gmod10
This thing is the shit!
How could I implement this into sandbox
can some one make this a cl lua and you can pick up any item, like with the "bag of holding"?
Um... Sorry for being really stupid... But how do you pick stuff up? I'm trying to incorporate this into LightRP, but it's not going very well, since I can't test it... EDIT: I have gotten the inventory menu to show, so it's in the gamemode, but I can't pick stuff up...
We need this in LightRP ! \o/
You need both inventory.lua and cl_inventory.lua added in correct places. cl_ is client, the other is server. If you can't figure out how to include these, how the hell are you making a gamemode? :v:
GUH! Man am I stupid! I forgot to edit the Inventory.GamemodePath :tizzy: EDIT: IN cl_inventory that is, which explains why I could open the menu but not pick stuff up... EDIT EDIT: I still don't know how to pick stuff up. E? Walk-over? Drop on head? Democratic vote? Kickban?
Sorry, you need to Log In to post a reply to this thread.