Jump to content
  • Advertisement
Sign in to follow this  
Emersont1

Portal gun Source COde

This topic is 1315 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
Advertisement

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!