Inventory?

Avatar
superboi
12 Posts
Posted Jan 18, 2019
I am working on a portal 2 mod and I want to add in a inventory system. I am wondering if this can be done at all? I need an inventory for a couple things in my mod to work, so if I can add one in that would be great.
Advertisement
Registered users don't see ads! Register now!
Avatar
Luke18033
27 Posts
Member
Posted Jan 19, 2019
Replied 1 day later
To do it properly, you'd need access to the source code, which is...not easy to get, to say the least. You could implement it with VScript and Hammer logic somehow, but it would be difficult and probably wouldn't work very well.

Out of curiosity, what do you need an inventory for in a Portal mod?

Avatar
superboi
12 Posts
Posted Jan 19, 2019
Replied 1 hour later

Luke18033 wrote:
To do it properly, you'd need access to the source code, which is...not easy to get, to say the least. You could implement it with VScript and Hammer logic somehow, but it would be difficult and probably wouldn't work very well.

Out of curiosity, what do you need an inventory for in a Portal mod?

I wanted to add a health system and if you take enough damage from turrets or anything else that doesn't kill you instantly, you can pull up the inventory to use a healing item. I want to know how I would be able to obtain the source code? I've heard people say that they use it for this kind of stuff before so it's possible to get the source code right?

Avatar
Luke18033
27 Posts
Member
Posted Jan 19, 2019
Replied 2 hours later
It's possible to get the source code, but as I said, it's not easy. I myself don't have source code access, nor do I know exactly how the process of getting it works, but I do know it involves contacting Valve directly and signing a non-disclosure agreement, preventing you from (legally) redistributing or even talking about the code elsewhere. You'll have to talk to someone else about that. I know there are some people on the Discord server who have got access, maybe ask there.
Advertisement
Registered users don't see ads! Register now!
Avatar
superboi
12 Posts
Posted Jan 20, 2019
Replied 11 hours later

Luke18033 wrote:
It's possible to get the source code, but as I said, it's not easy. I myself don't have source code access, nor do I know exactly how the process of getting it works, but I do know it involves contacting Valve directly and signing a non-disclosure agreement, preventing you from (legally) redistributing or even talking about the code elsewhere. You'll have to talk to someone else about that. I know there are some people on the Discord server who have got access, maybe ask there.

Ok, I'll try asking on the discord server and see if I get an answer.