StrataSource / Portal-2-Community-Edition

Task tracker for Portal 2: Community Edition
https://www.portal2communityedition.com
149 stars 3 forks source link

Bug: SP Campaign "sp_a1_intro3" requires sv_cheats 1 to pickup portal gun #1690

Open JonathanKrzeszewski opened 4 months ago

JonathanKrzeszewski commented 4 months ago

Describe the bug

When I try to pickup the portal gun it disappears and does not give it to me. I need to enable sv_cheats 1 before picking it up

console: [engine] This game doesn't allow cheat command give in single player, unless you have sv_cheats set to 1.

im positive its talking about give_portalgun

video: https://github.com/StrataSource/Portal-2-Community-Edition/assets/173852606/438a07fc-4527-4e31-8ff4-6b52116256d7

Issue Map

sp_a1_intro3

To Reproduce

  1. Open console and type map sp_a1_intro3 and hit enter
  2. Go to the portal gun and try to pick it up
  3. If sv_cheats 1 is not enabled, it will vanish
  4. Restart map with sv_cheats 1
  5. Attempt to pick up portal gun, and it should give it to you.

Operating System

No response

TeamSpen210 commented 4 months ago

The map should be using the GivePlayerPortalgun() VScript command as of DLC1 to fix this exact issue, maybe it's the old version?