Taking the portal gun off the player?

Avatar
E1025
104 Posts
Posted Dec 21, 2007
Is it possible to strip the gun off the player so they are left weaponless?
Advertisement
Registered users don't see ads! Register now!
Avatar
NocturnalGhost
200 Posts
Posted Dec 21, 2007
Replied 2 hours later
The point entity player_weaponstrip is supposed to do this.

However, there seems to be a bug with it in Portal. Even though it works, it seems to leave the portal gun model "hanging" on one side of the player, instead of removing it completely. From the thirdperson view, Chell is still holding the weapon, but is unable to fire it.

You may have to make the portal gun "broken" instead of removed, in order to explain this.

If I find a workaround, I will let you know.

Avatar
Hurricaaane
189 Posts
Posted Dec 21, 2007
Replied 4 hours later
This is not the case on my side.
Avatar
NocturnalGhost
200 Posts
Posted Dec 21, 2007
Replied 27 minutes later
Really? I just tried it again on a virtually blank map consisting of only the portal gun, the player_weaponstrip, and a trigger_once.

The behaviour was the same as I descibed in my last post. I tried first with the "strip" comand, and also with the "strip weapons and suit" command. Both seemed to have the same effect. The gun lowered from the centre of view and was unable to fire, but was still slightly visible on my lower right side. Looking through two cornered portals, I could see the weapon still in Chell's hand.

Can anyone else confirm whether it works for them? Do I have some kind of bug?

Avatar
E1025
104 Posts
Posted Dec 22, 2007
Replied 1 day later

NocturnalGhost wrote:
Really? I just tried it again on a virtually blank map consisting of only the portal gun, the player_weaponstrip, and a trigger_once.

The behaviour was the same as I descibed in my last post. I tried first with the "strip" comand, and also with the "strip weapons and suit" command. Both seemed to have the same effect. The gun lowered from the centre of view and was unable to fire, but was still slightly visible on my lower right side. Looking through two cornered portals, I could see the weapon still in Chell's hand.

Can anyone else confirm whether it works for them? Do I have some kind of bug?

I tested this and the portal gun lowers to the bottom right, it does not work for me either.

Avatar
volt
104 Posts
Posted Dec 22, 2007
Replied 22 minutes later
Try using the volume based entity "trigger_weapon_strip"

Not sure if this is going to be buggy or not, but it's worth a shot.

Avatar
NocturnalGhost
200 Posts
Posted Dec 22, 2007
Replied 26 minutes later
That seems to do the job properly. Nice one Volt.

I never even knew that entity existed, even though I have scrolled through the list hundreds of times

I guess I should pay more attention to these things lol.

Avatar
Hober
1,180 Posts
Posted Dec 22, 2007
Replied 1 hour later
Add to the wiki FAQ?
Avatar
Hurricaaane
189 Posts
Posted Dec 23, 2007
Replied 12 hours later

NocturnalGhost wrote:
That seems to do the job properly. Nice one Volt.

I never even knew that entity existed, even though I have scrolled through the list hundreds of times

I guess I should pay more attention to these things lol.

Oops, when I replied to you I used the volume entity, which was the only weapon stripping entity on my knowledge.

Avatar
volt
104 Posts
Posted Dec 23, 2007
Replied 54 minutes later
Pardon me if this is incredibly apparent and I'm blowing wind, but...

In case you need to make it so that it's based on an output or action (i.e. push a button, instead of a player movement trigger) make the trigger so that it encompasses the entire map, start it disabled, and have a trigger or output enable then disable the trigger on the output.

Advertisement
Registered users don't see ads! Register now!
Avatar
E1025
104 Posts
Posted Dec 23, 2007
Replied 5 hours later
I can now strip the portal gun off the player with out any side effects using the trigger_weapon_strip. Thanks.