Dod location: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
[[File:Dod_location.png|thumb|250px|Example of the window after typing %l in the chat.]]
[[File:Dod_location.png|thumb|250px|Example of the window after typing %l in the chat.]]
{{CD|CDODLocation|base=CBaseEntity|file1=dod/dod_location.cpp}}
{{CD|CDODLocation|base=CBaseEntity|file1=dod/dod_location.cpp}}
{{this is a|point entity|<!--sprite=1-->|name=dod_location|engine=Source|game=Day of Defeat: Source}}
{{this is a|point entity|<!--sprite=1-->|name=dod_location|game=Day of Defeat: Source}}


== Entity description ==
== Entity description ==
A way of naming a particular area within a map. If a player puts {{code|%l}} (lower case L) in their "say" text, the name of the closest location or dod_control_point will be put in its place.
A way of naming a particular area within a map. If a player puts {{code|%l}} (lower case L) in their "say" text, the name of the closest {{mono|dod_location}} or {{ent|dod_control_point}} will be put in its place.


== Keyvalues ==
== Keyvalues ==
{{KV Targetname}}
{{KV Targetname}}
{{KV|Name of this location|intn=location_name|string|Name of the current location that appears ingame. Can be either a regular string or a reference to a localization string.}}
{{KV|Name of this location|intn=location_name|string|Name of the current location that appears ingame. Can be either a regular string or a reference to a localization string. Max 63 characters.}}
 
== Inputs ==
{{I Targetname}}
 
== Outputs  ==
{{O Targetname}}

Latest revision as of 12:40, 8 May 2025

Example of the window after typing %l in the chat.
C++ Class hierarchy
CDODLocation
CBaseEntity
C++ dod/dod_location.cpp

dod_location is a point entity available in Day of Defeat: Source Day of Defeat: Source.

Entity description

A way of naming a particular area within a map. If a player puts %l (lower case L) in their "say" text, the name of the closest dod_location or dod_control_point will be put in its place.

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

Name of this location (location_name) <string>
Name of the current location that appears ingame. Can be either a regular string or a reference to a localization string. Max 63 characters.