Common Prefabs for Portal (CP4P) version 1

by GLaDOS · Uploaded Jan 05, 2008

Common Prefabs for Portal (CP4P) version 1

File Size: 0.06 MB

Downloads: 457

Rating: (0 votes)

Description

Useful, &i-able, and documented prefabs for Portal

From the included documentation:

CP4P - Common Prefabs for Portal
Version 1 - Released Jan 05, 2008

=====WHAT IS CP4P?=====
CP4P is a set of prefabs intended for creating common gameplay elements in Portal.

All of the prefabs are designed with the following in mind:

  • Easy alignment to the grid (when feasible)
  • No excess baggage. CP4P prefabs do not have remnants of connections to other entities, nor do they have brushes that are part of the level they were taken from.
  • Consistent naming scheme designed to not conflict with other entities not related to CP4P
  • All prefabs are documented.
  • Prefab origin "makes sense". For instance, A big button will be centered on the x/y plane and resides entirely on or above it's origin in the z plane. Thus, it can be placed at the same height as the floor and appear in the appropriate location.

Most named entities use a naming scheme that is:
* Instance-able. Most named entities use &i somewhere in their name so multiple copies can coexist. Exceptions may exist for entities that should only need to exist once per map, or where multiple entities with the same name is acceptable.
* Named to not conflict with existing entities. All entity names begin with "CP4P_" (and expect similiar)
* Work with wildcards in such a way where additional components of a prefab will not inadvertently be affected as well.

Prefabs try to designate a minimal set of entities for communication with 'the outside world'. For instance, a multipart door only requires a single set of inputs (one to open and one to close) to a single connection point, rather than having to instruct each side of the door to open/close individually.

=====WHAT DOES CP4P INCLUDE?=====
Since version 1:
Ball Catcher
Ball Launcher
Big Button
Common CP4P Dependencies
Doorstate Indicator
Round Door
Round Door (wide)
Slime
Switch (Simple)
Switch (Timed Refreshable)
Switch (Timed)
Switch (Toggle)
Weighted Companion Cube
Weighted Companion Cube Dropper
Weighted Storage Cube
Weighted Storage Cube Dropper

=====INSTALLATION INSTRUCTIONS=====
1. Copy the CP4P folder into your Steam prefabs folder, located at:
STEAMINSTALLDIR\SteamApps\USERNAME\sourcesdk\bin\orangebox\bin\prefabs
(example: C:\Program Files\Steam\SteamApps\johndoe\sourcesdk\bin\orangebox\bin\prefabs)

  1. If you want to look at sample maps (currently only one), copy them from the "samples" folder to the Hammer maps folder, located at:
    STEAMINSTALLDIR\SteamApps\USERNAME\sourcesdk_content\portal\mapsrc
    (example: C:\Program Files\Steam\SteamApps\johndoe\sourcesdk_content\portal\mapsrc)

  2. If you want to play the sample map in-game, compile it normally in Hammer. (The .BSP is not included to save space.) It is assumed that as a mapmaker you are familiar with how to actually get from editing a map to playing it in-game.

Comments

Sign in to comment.