Please or Register to create posts and topics.

Paint Gun / Parenting to Portal Gun

Page 1 of 2Next

Hi everyone,

I'm working on a map using a special object, which is supposed to "attach" to the portal gun and stay in front of it, and use a game_ui to take over the portal gun attack buttons.

But I haven't figured out a way to make it move up and down as well: I tried SetParent !player, but that doesn't work. Now I'm working with a func_tank, but it lags and still doesn't move vertically.

I'd seen Omnicoder's paint gun instances, which did something like this, but it seems that they were lost with MyApertureLabs. Does anyone know where I could get a copy? (Or of another entity I could use instead of func_tank?)

Falsi sumus crusto!

A func_tank is probably how they did it, however in order for the tank to be affected by the view of the player you need to make the player activate it (with the use key or through an output) and it needs to be in an appropriate place to be parented so it doesn't look unnatural.

I tried to do something similar to this by attaching a weapon_portalgun to one of the coop bots so each of their portals were linked... did not turn out well.

Motanum has a map where you have a 'holdable' paint gun: post68921.html#p68921
Perhaps you can ask permission to use it.

?????????????????????????????TWP Releases | My Workshop

If it were me, I'd use a laser cube and replace the model with something different. It always faces outward so hard to go wrong there.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.
msleeper wrote:
If it were me, I'd use a laser cube and replace the model with something different. It always faces outward so hard to go wrong there.

Question is... does it face the correct direction when you are not holding the cube and will it get in the way of anything?

?????????????????????????????TWP Releases | My Workshop

I guess it depends on the mechanics of the puzzle. Disable it OnPickup to deal with the first problem.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.

I tried that, and it works the same as parenting to the player--it doesn't turn upwards or downwards. For my puzzle that's necessary. :(

Falsi sumus crusto!

I had the same problem with my superphyscannon, rocket launcher, raygun, and freezegun. very frustrating.

My YouTube Channel: https://www.youtube.com/user/Camben24
Aperture Science: We do our science asbestos we can!
FelixGriffin wrote:
it doesn't turn upwards or downwards. For my puzzle that's necessary. :(

Portals.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.

Maybe use the command sv_enableholdrotation
and use a prop_physics?

If you use a prop_physics you can set preferred carry angles, which means you can specify the angle it points when you are holding it. Then disable putting it down once you've picked it up, use some simple game_ui and item placement and you're golden. Cave Johnson, we're done here. Until someone makes another post.

My Maps:
[spoiler][SP] Alternate[/spoiler]
Page 1 of 2Next