CBaseToggle (CS)
Basic Information
- Classname: CBaseToggle.
- Description: Generic toggle entity.
Class Hierarchy
- CBaseEntity
- CBaseDelay
- CBaseAnimating
- CBaseToggle
- CBaseAnimating
- CBaseDelay
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 | +4 | 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
- cbase.h (line 505)