Difference between revisions of "CWorldItem (CS)"

From AlliedModders Wiki
Jump to: navigation, search
(Added contents)
Line 1: Line 1:
[[Category:CS Offset List]]
+
[[Category:CS Class List]]
  
  
* [[CBaseEntity Offset List (Counter-Strike)|CBaseEntity]]
+
== Basic Information ==
 +
 
 +
* '''Classname''': CWorldItem. <br />
 +
* '''Linked Entity''': world_items.<br />
 +
* '''Description''': This entity allows you to spawn various items. Its function was replaced by the individual item_ entities, so it's not normally used. <br />
 +
 
 +
 
 +
== Class Hierarchy ==
 +
 
 +
* [[CBaseEntity (CS)|CBaseEntity]]
 
** '''CWorldItem''' ''(world_items)''
 
** '''CWorldItem''' ''(world_items)''
  
 +
 +
== HLSDK Reference ==
 +
 +
* [http://svn.tcwonline.org/viewvc.cgi/hlsdk/dlls/items.cpp?view=markup&root=amxmodx effects.cpp] ''(line 64)''
 +
 +
 +
== Entity Properties ==
  
 
<tt>''W = Windows'' |</tt><tt> ''L = Linux''</tt>
 
<tt>''W = Windows'' |</tt><tt> ''L = Linux''</tt>
Line 23: Line 39:
 
</pawn>
 
</pawn>
 
|}
 
|}
 +
 +
 +
== Entity Attributes ==
 +
 +
* '''Name''' (''targetname'') - Property used to identify entities.
 +
* '''Pitch Yaw Roll''' (''angles'') - Sets the pitch (up / down), yaw (left / right) and roll (bank) respectively. The compass in WorldCraft / Hammer corresponds to Yaw. The settings are not always (or not all) used.
 +
* '''Target''' (''target'') - When an entity is activated, it triggers the entity with the name specified by Target.
 +
* '''Delay before trigger''' (''delay'') - Usually the time in seconds before an entity should trigger its target (after being triggered itself). Under other SmartEdit names, delay might also be the time to wait before performing some other action.
 +
* '''KillTarget''' (''killtarget'') - When an entity is triggered, it will remove from the game the entity specified by this property.
 +
* '''Types''' (''type'') - World item to spawn:<BR>
 +
:42 = Antidote
 +
:43 = Security Card
 +
:44 = Battery
 +
:45 = Suit
 +
 +
 +
== Entity Flags ==
 +
 +
None.
 +
 +
 +
== Notes ==
 +
 +
None.
 +
 +
 +
 +
''( source : [http://twhl.co.za/wiki.php?id=211 TWHL] )''

Revision as of 12:47, 25 April 2009


Basic Information

  • Classname: CWorldItem.
  • Linked Entity: world_items.
  • Description: This entity allows you to spawn various items. Its function was replaced by the individual item_ entities, so it's not normally used.


Class Hierarchy


HLSDK Reference


Entity Properties

W = Windows | L = Linux

Name W. Offset L. Offset L. Diff Type Description
m_iType 34 ? 39 +5 int
 
42 = Antidote 
43 = Security Card
44 = Battery
45 = Suit


Entity Attributes

  • Name (targetname) - Property used to identify entities.
  • Pitch Yaw Roll (angles) - Sets the pitch (up / down), yaw (left / right) and roll (bank) respectively. The compass in WorldCraft / Hammer corresponds to Yaw. The settings are not always (or not all) used.
  • Target (target) - When an entity is activated, it triggers the entity with the name specified by Target.
  • Delay before trigger (delay) - Usually the time in seconds before an entity should trigger its target (after being triggered itself). Under other SmartEdit names, delay might also be the time to wait before performing some other action.
  • KillTarget (killtarget) - When an entity is triggered, it will remove from the game the entity specified by this property.
  • Types (type) - World item to spawn:
42 = Antidote
43 = Security Card
44 = Battery
45 = Suit


Entity Flags

None.


Notes

None.


( source : TWHL )