Leet Lounge
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Forum for the Leet Lounge Community
 
HomeLatest imagesSearchRegisterLog in

 

 Inventory system

Go down 
2 posters
AuthorMessage
austin2011
User
austin2011


Posts : 160
Join date : 2009-12-03

Inventory system Empty
PostSubject: Inventory system   Inventory system I_icon_minitimeWed 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
MopeChow
Administrator
Administrator
MopeChow


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

Inventory system Empty
PostSubject: Re: Inventory system   Inventory system I_icon_minitimeWed 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
http://leetlounge.omgforum.net
MopeChow
Administrator
Administrator
MopeChow


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

Inventory system Empty
PostSubject: Re: Inventory system   Inventory system I_icon_minitimeThu 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
http://leetlounge.omgforum.net
austin2011
User
austin2011


Posts : 160
Join date : 2009-12-03

Inventory system Empty
PostSubject: Re: Inventory system   Inventory system I_icon_minitimeFri 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
MopeChow
Administrator
Administrator
MopeChow


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

Inventory system Empty
PostSubject: Re: Inventory system   Inventory system I_icon_minitimeFri 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
http://leetlounge.omgforum.net
austin2011
User
austin2011


Posts : 160
Join date : 2009-12-03

Inventory system Empty
PostSubject: Re: Inventory system   Inventory system I_icon_minitimeFri 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
MopeChow
Administrator
Administrator
MopeChow


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

Inventory system Empty
PostSubject: Re: Inventory system   Inventory system I_icon_minitimeFri 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
http://leetlounge.omgforum.net
austin2011
User
austin2011


Posts : 160
Join date : 2009-12-03

Inventory system Empty
PostSubject: Re: Inventory system   Inventory system I_icon_minitimeFri 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
MopeChow
Administrator
Administrator
MopeChow


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

Inventory system Empty
PostSubject: Re: Inventory system   Inventory system I_icon_minitimeSat 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
http://leetlounge.omgforum.net
austin2011
User
austin2011


Posts : 160
Join date : 2009-12-03

Inventory system Empty
PostSubject: Re: Inventory system   Inventory system I_icon_minitimeSat 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
MopeChow
Administrator
Administrator
MopeChow


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

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

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


Posts : 160
Join date : 2009-12-03

Inventory system Empty
PostSubject: Re: Inventory system   Inventory system I_icon_minitimeSun 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
MopeChow
Administrator
Administrator
MopeChow


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

Inventory system Empty
PostSubject: Re: Inventory system   Inventory system I_icon_minitimeMon 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
http://leetlounge.omgforum.net
austin2011
User
austin2011


Posts : 160
Join date : 2009-12-03

Inventory system Empty
PostSubject: Re: Inventory system   Inventory system I_icon_minitimeMon 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
Sponsored content





Inventory system Empty
PostSubject: Re: Inventory system   Inventory system I_icon_minitime

Back to top Go down
 
Inventory system
Back to top 
Page 1 of 1
 Similar topics
-
» With Concerns toward the new application system.

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