PDA

View Full Version : Upgrading Portal Gun...


smokes
05-17-2011, 03:47 PM
..how does this work ?

example: i use elevator instances for my sp map and upon spawn, console says 'upgrading portal gun with potato'. so i spawn with glados potato on my portal gun.

how can i change this ? i checked all instances i can't seem to find anything that controls this. :confused:

Fisher122
05-17-2011, 03:50 PM
There are a couple of ways, you can use a weapon_strip to stip the players weapon then give them another one using a weapon_portalgun, or you can use a script to manually give the player the required weapon.

sylcai
05-17-2011, 04:52 PM
entity weapon_portalgun - place it on the player, and the game will auto-upgrade it, player starts with a gun, and no requirement to fuss about with scripts or anything else.

This entity also has things like portal group (chell, P-body, Atlas) So far I noticed, setting this doesn't affect single player settings.

And I think it was upgrade_potatogun or something like that that is fired to make a potato stick on the gun.. but I think the entity has a flag for that aswell.