Is there a command to demote the portal gun? [solved]
Quote from Goldenknighttim on September 2, 2013, 6:11 pmIn coop, when a player dies, he respawns with an upgraded portal gun.(When the pti scripts are used.) I want the player to keep the gun, but not be able to use portals after they die in coop. I know there is a command to upgrade the portal gun, so It makes sence that there would be one to downgrade the portal gun. But I have not seen the command. Does anyone know if there is a command to demote the portal gun, and if there is, what is it. If there isn't, is there another way do what I'm trying to do?
In coop, when a player dies, he respawns with an upgraded portal gun.(When the pti scripts are used.) I want the player to keep the gun, but not be able to use portals after they die in coop. I know there is a command to upgrade the portal gun, so It makes sence that there would be one to downgrade the portal gun. But I have not seen the command. Does anyone know if there is a command to demote the portal gun, and if there is, what is it. If there isn't, is there another way do what I'm trying to do?
Quote from GLaDOS CUBE on September 2, 2013, 6:13 pmI would try to use trigger_weapon_strip
Hope that helps.
I would try to use trigger_weapon_strip
Hope that helps.
[spoiler]My Steam Profile http://steamcommunity.com/profiles/76561198027454516/ My YouTube Page http://www.youtube.com/user/GLaDOSCUBE?feature=watchMaps[/spoiler] Maps
[spoiler]SP Bounce http://forums.thinking.withportals.com/downloads.php?view=detail&df_id=1753SP The Part Where http://forums.thinking.withportals.com/downloads.php?view=detail&df_id=2287[/spoiler]
Quote from Goldenknighttim on September 2, 2013, 6:22 pmI don't want to strip the weapon because I want the portal gun to stay for asthetics. I just don't want it to be usable. Atm,I'm looking into stripping the weapon, then upgrading it a moment after. I'm running into some problems, but still troubleshooting that idea.
I don't want to strip the weapon because I want the portal gun to stay for asthetics. I just don't want it to be usable. Atm,I'm looking into stripping the weapon, then upgrading it a moment after. I'm running into some problems, but still troubleshooting that idea.
Quote from Goldenknighttim on September 2, 2013, 6:24 pmWhats making this complicated is that I'm trying to do this while modding my pti.
Whats making this complicated is that I'm trying to do this while modding my pti.

Quote from TeamSpen210 on September 2, 2013, 6:42 pmYou might be able to strip the portal gun from the player then teleport a weapon_portalgun set to not fire either portal to the player. I don't know how the gun will behave if you give a player one of those, you might want to test it first.
You might be able to strip the portal gun from the player then teleport a weapon_portalgun set to not fire either portal to the player. I don't know how the gun will behave if you give a player one of those, you might want to test it first.
[spoiler]- BEE2 Addons | (BEE2)
- Hammer Addons
Maps:
- Crushed Gel
- Gel is Not Always Helpful[/spoiler]
Quote from Goldenknighttim on September 2, 2013, 6:48 pmThen I would be limited in the amount of times the player could die before it would start getting buggy.
Then I would be limited in the amount of times the player could die before it would start getting buggy.
Quote from FelixGriffin on September 2, 2013, 7:00 pmTeamSpen210 wrote:You might be able to strip the portal gun from the player then teleport a weapon_portalgun set to not fire either portal to the player. I don't know how the gun will behave if you give a player one of those, you might want to test it first.Exactly as you'd expect. It's a viewmodel without a weapon effect. If you put one in a template you can use an entitymaker to ForceSpawnAtEntityOrigin red or blue.
Exactly as you'd expect. It's a viewmodel without a weapon effect. If you put one in a template you can use an entitymaker to ForceSpawnAtEntityOrigin red or blue.
Quote from Goldenknighttim on September 2, 2013, 7:14 pmI've been doing some more troubleshooting. I tried to edit the coop door entrance, and I put a trigger in the droppers that would strip the weapon, and a moment later, run the command: upgrade_portalgun.
The weapon is stripped, but the portalgun doesn't upgrade. Thats when I decided to test the command manually, and I found that the command doesn't work in coop. Ill look into trying teamspen's and Felix griffin's idea.
I've been doing some more troubleshooting. I tried to edit the coop door entrance, and I put a trigger in the droppers that would strip the weapon, and a moment later, run the command: upgrade_portalgun.
The weapon is stripped, but the portalgun doesn't upgrade. Thats when I decided to test the command manually, and I found that the command doesn't work in coop. Ill look into trying teamspen's and Felix griffin's idea.

Quote from ChickenMobile on September 2, 2013, 7:46 pmAre you using a point_playercommand to execute the commands (upgrade_portalgun)? Because I know for sure that it does work in Coop.
As for giving a one portal portalgun the gun could be stripped and then equipped by a player_equip.
I do remember making an example for this however (but I cannot find it) so you can see how I did this with the linked portals map I made with LPfreaky90. FreakyChicken's Portals of Doom and Friendship prt1
You're welcome to decompile it and look what I did here to give them one portalguns. - the entities you need are somewhere in the first puzzle room.
Are you using a point_playercommand to execute the commands (upgrade_portalgun)? Because I know for sure that it does work in Coop.
As for giving a one portal portalgun the gun could be stripped and then equipped by a player_equip.
I do remember making an example for this however (but I cannot find it) so you can see how I did this with the linked portals map I made with LPfreaky90. FreakyChicken's Portals of Doom and Friendship prt1
You're welcome to decompile it and look what I did here to give them one portalguns. - the entities you need are somewhere in the first puzzle room.
Quote from FelixGriffin on September 2, 2013, 8:51 pmChickenMobile wrote:Are you using a point_playercommand to execute the commands (upgrade_portalgun)? Because I know for sure that it does work in Coop.As for giving a one portal portalgun the gun could be stripped and then equipped by a player_equip.
I do remember making an example for this however (but I cannot find it) so you can see how I did this with the linked portals map I made with LPfreaky90. FreakyChicken's Portals of Doom and Friendship prt1
You're welcome to decompile it and look what I did here to give them one portalguns. - the entities you need are somewhere in the first puzzle room.Do you mean point_clientcommand or point_servercommand? There is no point_playercommand that I know of.
As for giving a one portal portalgun the gun could be stripped and then equipped by a player_equip.
I do remember making an example for this however (but I cannot find it) so you can see how I did this with the linked portals map I made with LPfreaky90. FreakyChicken's Portals of Doom and Friendship prt1
You're welcome to decompile it and look what I did here to give them one portalguns. - the entities you need are somewhere in the first puzzle room.
Do you mean point_clientcommand or point_servercommand? There is no point_playercommand that I know of.