Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Randomized Old Cubes - A Mod for Portal 2

never know what your gonna get!

Welcome to an experimental new type of skin: the randomized model.

If you install this correctly; all of the old-aperture cubes will automatically be randomized between a handful of different looks!

the different styles of cube that you can randomly get are:
  • hl2 crate
  • super 8 crate
  • slightly-more-modern old cube
  • old cube with a geodome in it
  • the plain old vanilla old-aperture cube
If you're wondering how this works: it works using an edited version of the sp transition list script which the game runs on every map load. the script checks every tick to see if a new old-aperture cube has come into existence, and if so, it promptly runs the cube randomization script on that cube then adds it to a list so it doesn't randomize that specific cube again. meanwhile, the actual cube randomizer script chooses a random number between 0 and 4 and sets the cube's body group accordingly. the cube's model has been customized to have multiple appearances through the body group.

It's slightly hacky, BUT: the benefit of doing it this way is that it works across all pre-existing maps without having to change the map in any way! :D my hope is that this will inspire other "scripted skins" for portal 2 that use similar methods to make things change appearance dynamically.