point_survey

From Valve Developer Community
Revision as of 20:17, 17 May 2024 by PeeBot (talk | contribs) (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
Jump to navigation Jump to search
Info-red.png
This entity is not in the game by default, but got left over in the FGD.
This feature is not available anymore.

point_survey is a cut point entity available in Portal 2 Portal 2. The entity would display a survey on the player's screen based on a script from the folder portal2/scripts/surveys/, and fire an output when it is completed. The survey results were written to a CSV file in the same folder, and the game would also attempt to upload them to a mounted network drive, failing and outputting a console message if said network drive is not present. Presumably, this entity was used during Portal 2's development to get feedback from playtesters.

This entity was still present in the game at launch, but in a March 2023 update (nearly 12 years after Portal 2's release), the entity was removed to fix a security exploit.

Keyvalues

Survey Script Name (surveyname) <string>
Name of a survey keyvalues file, from the 'scripts/surveys' folder.


Inputs

ShowSurvey
Displays the survey.


Outputs

OnSurveyComplete
Fired when the player completes or cancels the survey.