Portal 2 VCDs

From Valve Developer Community
Revision as of 16:23, 13 April 2012 by BEARD! (talk | contribs) (Adding category tab. Links to actual information to follow)

Jump to: navigation, search
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.