Spawn without Portal gun

Avatar
TopHATTwaffle
113 Posts
Posted Mar 08, 2013
Replied 6 minutes later
There also may be a impulse command to hide the gun, but I can't remember what it is. Just remember that when you want the player to have the gun back, you NEED to set r_drawviewmodels 1.
Advertisement
Registered users don’t see ads! Register now!
Avatar
TopHATTwaffle
113 Posts
Posted Mar 08, 2013
Replied 3 minutes later
Just looked up the impulse command. It is Impulse 200 (If it's not 200, then it's 2000. I'm at work and I've opened my VMFs in notepad, this string is a bit confusing, stupid instances)

The impulse command should also have a nice put away animation.

Avatar
Fracture
797 Posts
Posted Mar 08, 2013
Replied 11 minutes later
okay i think I have everything set up, for losing the gun, getting a new one, swapping weapons and keeping the gun off on respawning. All I got to worry about is the rest of the map.

Thanks so much Waffles

Avatar
TopHATTwaffle
113 Posts
Posted Mar 08, 2013
Replied 3 minutes later
Hooray! Happy mapping my friend.
Avatar
goderick
1 Posts
Posted Mar 27, 2013
Replied 18 days later
I have a system which drops the player into a weapon stripper, but it still keeps the left click for blue portal thing on screen, so is there a way that means the player doesn't spawn with the gun?


Was it only by dreaming a spring assisted knives that I could find out what I thought?
Joan Didion

Advertisement
Registered users don’t see ads! Register now!
Avatar
ChickenMobile
2,460 Posts
Posted Mar 27, 2013
Replied 48 minutes later

goderick wrote:
I have a system which drops the player into a weapon stripper, but it still keeps the left click for blue portal thing on screen, so is there a way that means the player doesn't spawn with the gun?

You could always disable the crosshair (crosshair 0) OR find the culprit for the portal gun giving. The latter has been discussed before.

Short explanation: the portalgun is given to you automatically through Valve's transition script. The transition script also teleports the player to the elevator and starts the descend. Using custom elevators are a good way to go, because that way it doesn't rely on 'static' valve scripts.