Please or Register to create posts and topics.

Spawn without Portal gun

PreviousPage 3 of 3

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.

Happy Mapping

http://www.tophattwaffle.com/ - My site for Source Engine Level Design
http://therewillbescience.com/ - Portal 2, Lab Rat
http://www.moddb.com/mods/portal-2-lab-rat - Portal 2, Lab Rat (MODDB)

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.

Happy Mapping

http://www.tophattwaffle.com/ - My site for Source Engine Level Design
http://therewillbescience.com/ - Portal 2, Lab Rat
http://www.moddb.com/mods/portal-2-lab-rat - Portal 2, Lab Rat (MODDB)

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

Just when I think I understand the system, it changes on me.

Hooray! Happy mapping my friend.

Happy Mapping

http://www.tophattwaffle.com/ - My site for Source Engine Level Design
http://therewillbescience.com/ - Portal 2, Lab Rat
http://www.moddb.com/mods/portal-2-lab-rat - Portal 2, Lab Rat (MODDB)

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

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.

?????????????????????????????TWP Releases | My Workshop
PreviousPage 3 of 3