Difference between revisions of "CBaseToggle (CS)"

From AlliedModders Wiki
Jump to: navigation, search
(Added some contents.)
(Entity Data)
 
(2 intermediate revisions by 2 users not shown)
Line 117: Line 117:
 
| style="text-align:center" | +4
 
| style="text-align:center" | +4
 
| style="text-align:center" | int
 
| style="text-align:center" | int
| Trigger_counter only, # of activations remaining.
+
| ''trigger_counter'' only, # of activations remaining.
 
|- class="t2td"
 
|- class="t2td"
 
| m_flHeight
 
| m_flHeight
Line 143: Line 143:
 
| style="text-align:center" | 65
 
| style="text-align:center" | 65
 
| style="text-align:center" | 70
 
| style="text-align:center" | 70
| style="text-align:center" | +4
+
| style="text-align:center" | +5
 
| style="text-align:center" | Vector
 
| style="text-align:center" | Vector
 
| None.
 
| None.
Line 150: Line 150:
 
| style="text-align:center" | 68
 
| style="text-align:center" | 68
 
| style="text-align:center" | 73
 
| style="text-align:center" | 73
| style="text-align:center" | +4
+
| style="text-align:center" | +5
 
| style="text-align:center" | Vector
 
| style="text-align:center" | Vector
 
| None.
 
| None.
Line 156: Line 156:
 
| m_bitsDamageInflict
 
| m_bitsDamageInflict
 
| style="text-align:center" | 71
 
| style="text-align:center" | 71
| style="text-align:center" | 75
+
| style="text-align:center" | 76
| style="text-align:center" | +4
+
| style="text-align:center" | +5
 
| style="text-align:center" | int
 
| style="text-align:center" | int
 
| DMG_ damage type that the door or tigger does.
 
| DMG_ damage type that the door or tigger does.
Line 163: Line 163:
 
| m_sMaster
 
| m_sMaster
 
| style="text-align:center" | 72
 
| style="text-align:center" | 72
| style="text-align:center" | 76
+
| style="text-align:center" | 77
| style="text-align:center" | +4
+
| style="text-align:center" | +5
 
| style="text-align:center" | string_t
 
| style="text-align:center" | string_t
 
| If this button has a master switch, this is the targetname. A master switch must be of the multisource type. If all of the switches in the multisource have been triggered, then the button will be allowed to operate. Otherwise, it will be deactivated.
 
| If this button has a master switch, this is the targetname. A master switch must be of the multisource type. If all of the switches in the multisource have been triggered, then the button will be allowed to operate. Otherwise, it will be deactivated.
 
|}
 
|}
 
  
 
== HLSDK Reference ==
 
== HLSDK Reference ==
  
 
* [http://svn.tcwonline.org/viewvc.cgi/hlsdk/dlls/cbase.h?view=markup&root=amxmodx cbase.h] ''(line 505)''
 
* [http://svn.tcwonline.org/viewvc.cgi/hlsdk/dlls/cbase.h?view=markup&root=amxmodx cbase.h] ''(line 505)''

Latest revision as of 06:13, 24 April 2012


Basic Information

  • Classname: CBaseToggle.
  • Description: Generic toggle entity.


Class Hierarchy


Entity Data

W = Windows | L = Linux

Name W. Offset L. Offset L. Diff Type Description
m_toggle_state 41 45 +4 TOGGLE_STATE None.
m_flActivateFinished 42 46 +4 float Like attack_finished, but for doors.
m_flMoveDistance 43 47 +4 float How far a door should slide or rotate.
m_flWait 44 48 +4 float None.
m_flLip 45 49 +4 float None.
m_flTWidth 46 50 +4 float For plats.
m_flTLength 47 51 +4 float For plats.
m_vecPosition1 48 52 +4 Vector None.
m_vecPosition2 51 55 +4 Vector None.
m_vecAngle1 54 58 +4 Vector None.
m_vecAngle2 57 61 +4 Vector None.
m_cTriggersLeft 60 64 +4 int trigger_counter only, # of activations remaining.
m_flHeight 61 65 +4 float None.
m_hActivator 62 66 +4 EHANDLE None.
m_pfnCallWhenMoveDone 64 68 +4 void (CBaseToggle::*)(void) None.
m_vecFinalDest 65 70 +5 Vector None.
m_vecFinalAngle 68 73 +5 Vector None.
m_bitsDamageInflict 71 76 +5 int DMG_ damage type that the door or tigger does.
m_sMaster 72 77 +5 string_t If this button has a master switch, this is the targetname. A master switch must be of the multisource type. If all of the switches in the multisource have been triggered, then the button will be allowed to operate. Otherwise, it will be deactivated.

HLSDK Reference