item_nugget

From Valve Developer Community
Jump to: navigation, search
class hierarchy
???
CBaseAnimating
CBaseEntity

item_nugget is a point entity available in Portal 2 Portal 2. It is an "Aperture Incentivizing Nugget", seemingly intended as a collectible item for a scrapped multiplayer mode. Touching the nugget will pick it up, adding to the player's "score", which can be seen only in multiplayer by binding a key to +score and using it to open the scoreboard. Once picked up, the nugget will respawn after a configurable amount of time.

The model used by the entity is a modified version of the Team Fortress 2 neutral capture point hologram, with the beam removed and various colored skins added with the Aperture logo and the point value in the center. In-game, the model is also scaled based on the point value, with 25 points being the largest.

Keyvalues

Group Name (groupname) <string>
"Giving nuggets a group name hints the game that they are intended to be a group." Unknown use.
Respawn Time (RespawnTime) <float>
Number of seconds between when the nugget is collected and when it respawns
Point Value (PointValue) <integer>
Amount of points the nugget gives when collected. Accepts only the following values, others will cause it to be reduced to the nearest allowed value:
  • 1
  • 5
  • 10
  • 25