Sign in to follow this  

Portal gun Source COde

This topic is 1102 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello  

 I would like to know if there is a portal gun weapon that I would get free access to (and it's code) for my source mod. I have seen it implemented into Gmod and am wondering if I can do the same without having to manually code it myself. I am intending to mix it with the gravity gun to make a ASHHZPEFMAQTD (Aperture Science HandHeld Zero Point Energy Feild Manipulator And Quantum Tunneling Device).

I already have a copy of the Gravity Gun's code from the SDK
Thank-you in Advance

Share this post


Link to post
Share on other sites

Hi.

 

There is no publicly released code for the Source Engine that will handle Portals for you, but there is currently an Open Source project out there called "GLPortal", which is an engine that handles Portals in a way similar to Valve's game in OpenGL C++. While you can't copy and paste, you can take a look at the syntax and learn how to implement a similar system for yourself. Keep in mind implementing this in your Source Mod won't be easy, because Valve's rendering code is all over the place. Gmod's Portal Gun runs via a lua script and the way it functions is very different to how Valve handles the ASHPD.

Share this post


Link to post
Share on other sites

This topic is 1102 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this