Forum for the Leet Lounge Community
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 Inventory system

View previous topic View next topic Go down 
AuthorMessage
austin2011
User
avatar

Posts : 160
Join date : 2009-12-03

PostSubject: Inventory system   Wed Jun 23, 2010 3:09 pm

I don't know if this exists or not (I'm looking it up as I type this) but I believe we need an inventory system. I'm tired of losing all my guns and drugs because i have to leave the server. It'd be cool if there was some addon that would save that information on the server so I can "pocket" the items and come back with them still in the pocket. Of course I believe the inventory shouldn't drop when you die, only pocketed items should. Also, I think that it should have a limit on all that it can carry. It cannot carry full shipments, they have to be out of the box. Stuff like that...

I found something exactly like what I was talking about

http://www.facepunch.com/showthread.php?p=22710261 - Forums link.
http://www.garrysmod.org/downloads/?a=view&id=101600 - Garrysmod.org Link.
Back to top Go down
View user profile
MopeChow
Administrator
Administrator
avatar

Posts : 242
Join date : 2008-11-07
Location : Sun Diego, CA

PostSubject: Re: Inventory system   Wed Jun 23, 2010 7:25 pm

I added theeese one. It looks cool. We'll see about the shipment saving.
Back to top Go down
View user profile http://leetlounge.omgforum.net
MopeChow
Administrator
Administrator
avatar

Posts : 242
Join date : 2008-11-07
Location : Sun Diego, CA

PostSubject: Re: Inventory system   Thu Jun 24, 2010 1:31 am

Hey guys, the inventory system is on thar. It works perfectly Grea find. I need help making a swep for it though... like the pocket one, or noone will notice or use it.

Basicly I need it to make you say "!inv" when you right click to open the menu, and I need it to use the alt + e command that puts the item in your inventory when you left click.

I've been trying to figure this out all day. Anyone good at making simple sweps?
Back to top Go down
View user profile http://leetlounge.omgforum.net
austin2011
User
avatar

Posts : 160
Join date : 2009-12-03

PostSubject: Re: Inventory system   Fri Jun 25, 2010 10:22 am

Maybe there is a console command to open the menu? Then you could have it something like "on fire, run concommand open_inv"... Something to that effect.
And I see that is exactly what you were asking for... lol. I'll attempt it. Nothing to do today at work.
Back to top Go down
View user profile
MopeChow
Administrator
Administrator
avatar

Posts : 242
Join date : 2008-11-07
Location : Sun Diego, CA

PostSubject: Re: Inventory system   Fri Jun 25, 2010 1:53 pm

austin2011 wrote:
Maybe there is a console command to open the menu? Then you could have it something like "on fire, run concommand open_inv"... Something to that effect.
And I see that is exactly what you were asking for... lol. I'll attempt it. Nothing to do today at work.

I have the left click of the weapon open the inventory menu right now, but I'm still trying to get the item pick up with the left button working... The alt + e thing is a real killer.
Back to top Go down
View user profile http://leetlounge.omgforum.net
austin2011
User
avatar

Posts : 160
Join date : 2009-12-03

PostSubject: Re: Inventory system   Fri Jun 25, 2010 4:50 pm

I think you mis-typed, but it seems like you want to put two commands on the same button?
Also, instead of alt + e, it is actually sprint + use. So, have it run those two concommands. (No idea what they are, but sprint is a toggle.)
Back to top Go down
View user profile
MopeChow
Administrator
Administrator
avatar

Posts : 242
Join date : 2008-11-07
Location : Sun Diego, CA

PostSubject: Re: Inventory system   Fri Jun 25, 2010 5:47 pm

I tried that. Its alt + e .... I'm pretty sure... which is +walk and +use .

You got any luck?
Back to top Go down
View user profile http://leetlounge.omgforum.net
austin2011
User
avatar

Posts : 160
Join date : 2009-12-03

PostSubject: Re: Inventory system   Fri Jun 25, 2010 7:12 pm

Have yet to try anything. You could take a quick peek inside the inventory mod and see what alt + e runs from. Maybe it runs a console command from that like inv_pickup. I dunno. If not, make the function into a concommand.
Back to top Go down
View user profile
MopeChow
Administrator
Administrator
avatar

Posts : 242
Join date : 2008-11-07
Location : Sun Diego, CA

PostSubject: Re: Inventory system   Sat Jun 26, 2010 2:42 am

I beleive I already tried that.

Its a function that gets called whenever the E key is pressed (+use)... Inside it then sees if the alt key is also being held down(+walk)... if both then try to pick up the item.
And no I couldn't see any command that it was attached to like the inventory menu was attached to the command drp_showinv .

As for making it into a concommand :/ I tried and failed.
Back to top Go down
View user profile http://leetlounge.omgforum.net
austin2011
User
avatar

Posts : 160
Join date : 2009-12-03

PostSubject: Re: Inventory system   Sat Jun 26, 2010 1:43 pm

Go into the addon, server, and the lua file in there. (Going by memory because I already deleted the addon)


Add

Code:
concommand.Add("drp_plyuse", plyuse)

after

Code:
hook.Add("PlayerUse","DrpPlyUse",plyuse)

And tell me how that works out.
Back to top Go down
View user profile
MopeChow
Administrator
Administrator
avatar

Posts : 242
Join date : 2008-11-07
Location : Sun Diego, CA

PostSubject: Re: Inventory system   Sun Jun 27, 2010 2:13 am

It doesn't appear to work. :/
Back to top Go down
View user profile http://leetlounge.omgforum.net
austin2011
User
avatar

Posts : 160
Join date : 2009-12-03

PostSubject: Re: Inventory system   Sun Jun 27, 2010 8:43 pm

When I tested the addon ingame, I appear to be unable to pick up anything anyway... maybe that's the problem. (Meaning concommand worked but the addon doesn't)
Back to top Go down
View user profile
MopeChow
Administrator
Administrator
avatar

Posts : 242
Join date : 2008-11-07
Location : Sun Diego, CA

PostSubject: Re: Inventory system   Mon Jun 28, 2010 1:34 am

austin2011 wrote:
When I tested the addon ingame, I appear to be unable to pick up anything anyway... maybe that's the problem. (Meaning concommand worked but the addon doesn't)

Nah it worked perfectly for me and a few others on the server.
Back to top Go down
View user profile http://leetlounge.omgforum.net
austin2011
User
avatar

Posts : 160
Join date : 2009-12-03

PostSubject: Re: Inventory system   Mon Jun 28, 2010 1:10 pm

Maybe we could rip the save function from the inventory and add it to the pocket. That way the pocket still has a use. If we do make it save, we would also want to disable the auto-drop-pocket on death.
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Inventory system   

Back to top Go down
 
Inventory system
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Inventory System
» Pre-WotLK System Requirements
» Tau Smart Missile System
» SYSTEM-OF-A-DOWN app
» TCI Official Forum Ranking System

Permissions in this forum:You cannot reply to topics in this forum
Leet Lounge :: Server :: Suggestions-
Jump to: