Difference between revisions of "CWorldItem (CS)"

From AlliedModders Wiki
Jump to: navigation, search
(Added contents)
m (HLSDK Reference)
 
Line 17: Line 17:
 
== HLSDK Reference ==
 
== HLSDK Reference ==
  
* [http://svn.tcwonline.org/viewvc.cgi/hlsdk/dlls/items.cpp?view=markup&root=amxmodx effects.cpp] ''(line 64)''
+
* [http://svn.tcwonline.org/viewvc.cgi/hlsdk/dlls/items.cpp?view=markup&root=amxmodx items.cpp] ''(line 64)''
 
 
  
 
== Entity Properties ==
 
== Entity Properties ==

Latest revision as of 13:00, 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 )