StrataSource / Portal-2-Community-Edition

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

Portal 1 compatibility enhancement: Return security camera dialogue counter #1562

Open MyGamepedia opened 8 months ago

MyGamepedia commented 8 months ago

Which component should be improved?

Audio

Describe your suggestion

Most players know that cameras can be detached from wall if a portal was placed behind it. In Portal cameras have in the code achievement counter and dialogue counter. The last is count the 33 cameras that can be detached, it sequentially activates one of 5 dialogues depending on how many cameras you detached. It isn't random, a first detached camera will play generic_security_camera_destroyed-2.wav, second generic_security_camera_destroyed-3.wav, third generic_security_camera_destroyed4.wav, thirty third generic_security_camera_destroyed-1.wav, other generic_security_camera_destroyed-5.wav. , Thanks this counter GLaDOS can comment this events. If launch Portal with all needed content in P2CE and detach camera - GLaDOS will not comment because of there is no the needed code. For better compatibility I suggest cvar sv_security_camera_dialogue_counter_enabled 0/1, 0 - disable, 1 - enable, 0 - default value. The counter in original game is also have small issue, it doesn't count while GLaDOS speaking. The developers assumed that you would hear funny phrase when you'll get the achievement. Of course, because of the issue this in most cases you will not hear generic_security_camera_destroyed-5.wav, just because you don't fully listen to her before camera detach. This problem can be fixed literally in one line of code.