This article's documentation is for the "GoldSrc" engine. Click here for more information.

dod_object

From Valve Developer Community
Jump to navigation Jump to search

dod_object is a point entity available in Day of Defeat Day of Defeat. This entity is used when you want a player to "Pick" an item up and "Use" it.

Examples:

  • The document that has to be returned to your base.
  • The TNT that has the be set at the correct point.

Key Values

Model (model) <model path>
Path to the model to be displayed.
Objects name (object_name) <string>
The name of the object that appears on screen when picked up.
Team that can pick up (m_object_owner) <choices>
Object Owner. This is usually set to the team that doesn't Use the object.
Value Description
0 Both
1 Axis
2 Allies
Group name (group_name) <string>
Enter the name of the Group that the dod_object belongs to, the same one as the dod_object_goal it is associated with.
Sound when taken (object_takesound) <sound>
Path to the *.wav sound that is played when the object is picked up.
Sound when captured (object_capsound) <sound>
Path to the *.wav sound that is played when the object is captured.
Sound when droped (object_dropsound) <sound>
Path to the *.wav sound that is played when the object is dropped.
Sound when returned (object_returnsound) <sound>
Path to the *.wav sound that is played when the object is returned when the Reset time (object_resettime) has expired.
Carry speed (this*speed) (object_carryspeed) <string>
Slows the player down when the object has been taken. This is a multiplier, to make people move at half speed enter 0.5, 1 is normal movement rate.
Reset on touch (object_resetontouch) <choices>
If set to Yes then the object can be Reset when a player walks over it. It will return to where the dod_object was placed in the map.
Value Description
0 Yes
1 No
Reset time (secs, max. 600) (object_resettime) <integer>
The amount of time before an object is returned without a player touching it. Maximal time is 600 seconds.
Points to capturer (object_cappoints) <integer>
Number of points a player gets when the dod_object is taken to the correct dod_object_goal.
Points for teammates (object_otherpoints) <integer>
Number of points a Team gets when the dod_object is taken to the correct dod_object_goal.
Target when complete (object_donetarget) <string>
This is the dod_objects "Target". This name should be the same as the dod_object_goal it is associated with.
Sprite to show above player if carried (object_player_sprite) <sprite>
Path to a sprite file sprite to show above player when carried.
Sprite to show on HUD if carried (object_hud_sprite) <sprite>
Path to a sprite file sprite to show in the HUD when you carrying the object.
Master (master) <targetname>
Name of a master entity.


Flags

Report pickups and Drops : [1]

Allow or supress the Message "(1)Private picked up / lost the TnT" when picked up or dropped.