Difference between revisions of "CBaseToggle (CS)"
m (→Entity Data) |
ConnorMcLeod (talk | contribs) (→Entity Data) |
||
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" | + | + | | 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" | | + | | style="text-align:center" | 76 |
− | | style="text-align:center" | + | + | | 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" | | + | | style="text-align:center" | 77 |
− | | style="text-align:center" | + | + | | 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. |
Revision as of 06:13, 24 April 2012
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)