Item nugget: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(oops, this is portal 2 only)
m (Classifying as model entity)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{entity|type=e0|game=Portal 2|item_nugget}} 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 <code>+score</code> and using it to open the scoreboard. Once picked up, the nugget will respawn after a configurable amount of time.
{{CD|???|base=CBaseAnimating}}
{{this is a|model entity|name=item_nugget|game=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 <code>+score</code> 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 [[team_control_point|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 down by about 50% compared to what is shown in Hammer.
The model used by the entity is a modified version of the [[Team Fortress 2]] neutral [[team_control_point|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 ==
== Keyvalues ==
{{KV|Group Name|intn=groupname|string|"Giving nuggets a group name hints the game that they are intended to be a group." Unknown use.}}
{{KV|Group Name|intn=groupname|string|"Giving nuggets a group name hints the game that they are intended to be a group." Unknown use.}}
{{KV|Respawn Time|intn=RespawnTime|float|Number of seconds between when the nugget is collected and when it respawns}}
{{KV|Respawn Time|intn=RespawnTime|float|Number of seconds between when the nugget is collected and when it respawns}}
{{KV|Point Value|intn=PointValue|int|Amount of points the nugget gives when collected. Accepts any value, but only the following will produce proper skins:
{{KV|Point Value|intn=PointValue|int|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
:* 1
:* 5
:* 5
Line 13: Line 13:
:* 25
:* 25
}}
}}
{{KV BaseAnimating|portal2=1}}
{{KV BaseEntity|l4d2=1}}
== Inputs ==
{{I BaseAnimating|portal2=1}}
{{I BaseEntity|as=1}}
== Outputs ==
{{O BaseAnimating|portal2=1}}
{{O BaseEntity}}

Latest revision as of 04:32, 19 May 2025

C++ Class hierarchy
???
CBaseAnimating
CBaseEntity

item_nugget is a model 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