Dod location: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
 
(35 intermediate revisions by 17 users not shown)
Line 1: Line 1:
{{wrongtitle|title=dod_location}}
{{tabs|dod_location|goldsrc = 1|source = 1|main = source}}
[[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}}
{{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.
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 ==
* '''location_name'''
{{KV Targetname}}
: <string> Name of this location
{{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.}}
 
== See also ==
* [[List_of_DoD:S_entities|List of DoD:S entities]]
 
[[Category:Day of Defeat: Source Entities]]
[[Category:Entities]]
[[Category:Level Design]]

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.