Difference between revisions of "CBaseToggle (CS)"
(Added some contents.) |
m (→Entity Data) |
||
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. |
|- class="t2td" | |- class="t2td" | ||
| m_flHeight | | m_flHeight | ||
Line 168: | Line 168: | ||
| 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)'' |
Revision as of 08:00, 29 August 2009
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 | +4 | Vector | None. |
m_bitsDamageInflict | 71 | 75 | +4 | int | DMG_ damage type that the door or tigger does. |
m_sMaster | 72 | 76 | +4 | 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)