This article's documentation is for anything that uses the Source engine. Click here for more information.

Point bonusmaps accessor: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Keyvalues: doesnt just unlock, also can complete)
(logical ent, add example todo)
 
(15 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{wrongtitle|title=point_bonusmaps_accessor}}
{{LanguageBar}}
{{CD|CPointBonusMapsAccessor|file1=1}}
{{this is a|logical entity|name=point_bonusmaps_accessor}} It relays [[Bonus Maps]] changes.
{{todo|add example where it's used officially. Probably in portal ?}}


==Entity Description==
== Keyvalues ==
An entity that relays bonus maps changes.
{{KV Targetname}}
{{KV|File Name|intn=filename|string|Link to a .BNS file with values for this map. Relative to mod's root directory.}}
{{KV|Map Name|intn=mapname|string|Script entry inside above bns file of the map. {{Note|This is '''NOT''' .bsp file name.}}}}


==Availability==
== Inputs ==
This point entity is exclusive to [[Portal]].
{{I|Unlock|Unlocks the filename/map combination.}}
 
{{I|Complete|Completes the filename/map combination.}}
==Keyvalues==
{{I|Save|Saves bonus map data.}}
* {{KV Targetname}}
* '''File Name'''
: Link to a bns file with values for this map
* '''Map Name'''
: Script entry inside above bns file of the map
 
==Inputs==
* {{i targetname}}
* {{i enabledisable}}
* '''Complete'''
: Completes the filename/map combination.
* '''Save'''
: Saves bonus map data.
* '''Unlock'''
: Unlocks the filename/map combination.
 
==Outputs==
* {{o targetname}}
 
[[Category:Portal Entities]]

Latest revision as of 07:34, 29 April 2025

English (en)Translate (Translate)
C++ Class hierarchy
CPointBonusMapsAccessor
CPointEntity
CBaseEntity
C++ point_bonusmaps_accessor.cpp

point_bonusmaps_accessor is a logical entity available in all Source Source games. It relays Bonus Maps changes.

Todo: add example where it's used officially. Probably in portal ?

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

File Name (filename) <string>
Link to a .BNS file with values for this map. Relative to mod's root directory.
Map Name (mapname) <string>
Script entry inside above bns file of the map.
Note.pngNote:This is NOT .bsp file name.

Inputs

Unlock
Unlocks the filename/map combination.
Complete
Completes the filename/map combination.
Save
Saves bonus map data.