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

World items: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(you are checking out wrong engine. This is source. See the linked to source file on this page)
Tag: Undo
(that was kinda waste of time lol)
Line 3: Line 3:
{{obsolete}}
{{obsolete}}
{{CD|CWorldItem|file1=item_world.cpp}}
{{CD|CWorldItem|file1=item_world.cpp}}
{{this is a|point entity|name=world_items}} A leftover from [[GoldSrc]]. This entity spawns a specific item at its [[origin]].
{{this is a|point entity|name=world_items}} A leftover from [[GoldSrc]]. This entity spawns a specific item at its [[origin]]. Probably left in so that porting {{hl}} maps to {{hls}} is simpler and doesn't need much changes and is left-over since.
 
{{note|Only used in {{hls|2}} maps
:c1a0d - 1x battery (see position by using {{cmd|drawcross|-3316 1478 -250}})
:c1a1a - 2x battery (<code>drawcross 600 2196 -816</code>)
:c1a2a - 1x battery (<code>drawcross 330 -348 -220</code>)
:c1a2c - 2x battery (<code>drawcross -1200 -1290 -205; drawcross -1692 -1692 -130</code>)
:c2a5 - 1x battery (<code>drawcross -280 -1064 -1214</code>)
:c2a5b - 1x battery (<code>drawcross 784 -1176 90</code>)
:c3a2d - 3x suit (<code>drawcross 1056 -176 -224; drawcross 1184 -176 -2244; drawcross 1312 -176 -224</code>)
:t0a0b1 - 5x battery (<code>drawcross 764 776 -80; drawcross 764 744 -80; drawcross 1012 1164 -120; drawcross 752 1388 -120; drawcross 500 1600 -120;</code>)
}}


== Keyvalues ==
== Keyvalues ==

Revision as of 00:18, 12 May 2025

Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map because it is almost useless.
Obsolete-notext.png
This entity is obsolete. Its use is discouraged. It may only exist/function in older engine branches.
C++ Class hierarchy
CWorldItem
CBaseAnimating
CBaseEntity
C++ item_world.cpp

world_items is a point entity available in all Source Source games. A leftover from GoldSrc. This entity spawns a specific item at its origin. Probably left in so that porting Half-Life maps to Half-Life: Source is simpler and doesn't need much changes and is left-over since.

Note.pngNote:Only used in Half-Life: Source Half-Life: Source maps
c1a0d - 1x battery (see position by using drawcross -3316 1478 -250)
c1a1a - 2x battery (drawcross 600 2196 -816)
c1a2a - 1x battery (drawcross 330 -348 -220)
c1a2c - 2x battery (drawcross -1200 -1290 -205; drawcross -1692 -1692 -130)
c2a5 - 1x battery (drawcross -280 -1064 -1214)
c2a5b - 1x battery (drawcross 784 -1176 90)
c3a2d - 3x suit (drawcross 1056 -176 -224; drawcross 1184 -176 -2244; drawcross 1312 -176 -224)
t0a0b1 - 5x battery (drawcross 764 776 -80; drawcross 764 744 -80; drawcross 1012 1164 -120; drawcross 752 1388 -120; drawcross 500 1600 -120;)

Keyvalues

type (type) <choices>
Type of item to spawn.
Note.pngNote:To appear, entity from this list must be present in your game. Items it can spawn are only present in Half-Life: Source Half-Life: Source, Half-Life 2 Half-Life 2 or Black Mesa Black Mesa.