Difference between revisions of "Portal 2 VCDs"

From Valve Developer Community
Jump to: navigation, search
m (adding link to first page of tables)
m (added link to wip page for coop_scenetable_manual)
Line 6: Line 6:
  
 
* [[Portal_2_VCDs/Coop_SceneTable|Coop Scenetable]]
 
* [[Portal_2_VCDs/Coop_SceneTable|Coop Scenetable]]
 +
* [[Portal_2_VCDs/Coop_SceneTable_Manual|Coop SceneTable Manual]]
  
 
[[Category:Portal_2_Level_Design]]
 
[[Category:Portal_2_Level_Design]]

Revision as of 03:08, 15 April 2012

Under construction.png NB: These pages are currently a work in progress.


Valve uses Squirrel scripts to make Glados (and other characters) talk throughout Portal 2. This is done by the GladosPlayVCD() function. Each piece of dialogue is associated with a unique key. However, Hammer is unable to pass this key to the script (it would require wrapping in quotes, which would mess up the VMF structure). So, Valve also associated dialogue snippets with numbers (or indices) which Hammer can store just fine.

These pages serve as a reference to allow mappers to re-use voice lines as they see fit, by mapping indices to voice lines. The data is categorised according to the defining nut file.