Difference between revisions of "CBaseToggle (CS)"
(CBaseToggle offset list) |
ConnorMcLeod (talk | contribs) (→Entity Data) |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | [[Category:CS Class List]] | |
− | [[Category:CS | ||
+ | == Basic Information == | ||
− | *[[CBaseEntity]] | + | * '''Classname''': CBaseToggle. <br /> |
− | ** [[CBaseDelay]] | + | * '''Description''': Generic toggle entity. <br /> |
− | *** [[CBaseAnimating]] | + | |
+ | |||
+ | == Class Hierarchy == | ||
+ | |||
+ | * [[CBaseEntity (CS)|CBaseEntity]] | ||
+ | ** [[CBaseDelay (CS)| CBaseDelay]] | ||
+ | *** [[CBaseAnimating (CS)|CBaseAnimating]] | ||
**** '''CBaseToggle''' | **** '''CBaseToggle''' | ||
− | ***** [[CBaseButton]] | + | ***** [[CBaseButton (CS)|CBaseButton]] |
− | ***** [[CBaseDoor]] | + | ***** [[CBaseDoor (CS)|CBaseDoor]] |
− | ***** [[CBaseMonster]] | + | ***** [[CBaseMonster (CS)|CBaseMonster]] |
− | ***** [[CBasePlatTrain]] | + | ***** [[CBasePlatTrain (CS)|CBasePlatTrain]] |
− | ***** [[CBaseTrigger]] | + | ***** [[CBaseTrigger (CS)|CBaseTrigger]] |
− | ***** [[CFuncIllusionary]] | + | ***** [[CFuncIllusionary (CS)|CFuncIllusionary ''(func_illusionary)'']] |
− | ***** [[CFuncMortarField]] | + | ***** [[CFuncMortarField (CS)|CFuncMortarField ''(func_mortar_field)'']] |
− | ***** [[CMomentaryDoor]] | + | ***** [[CMomentaryDoor (CS)|CMomentaryDoor ''(momentary_door)'']] |
− | ***** [[CMomentaryRotButton]] | + | ***** [[CMomentaryRotButton (CS)|CMomentaryRotButton ''(momentary_rot_button)'']] |
− | ***** [[CMultiManager]] | + | ***** [[CMultiManager (CS)|CMultiManager ''(multi_manager)'']] |
− | ***** [[CRecharge]] | + | ***** [[CRecharge (CS)|CRecharge ''(func_recharge)'']] |
− | ***** [[CWallHealth]] | + | ***** [[CWallHealth (CS)|CWallHealth ''(func_healthcharger)'']] |
+ | |||
+ | == Entity Data == | ||
− | <tt> | + | <tt>W = Windows |</tt><tt> L = Linux</tt> |
{| cellpadding="4" | {| cellpadding="4" | ||
|- class="t2th" | |- class="t2th" | ||
! Name !! W. Offset !! L. Offset !! L. Diff !! Type !! Description | ! Name !! W. Offset !! L. Offset !! L. Diff !! Type !! Description | ||
|- class="t2td" | |- class="t2td" | ||
− | | m_toggle_state | + | | m_toggle_state |
− | | style="text-align:center" | 41 | + | | style="text-align:center" | 41 |
− | | style="text-align:center" | | + | | style="text-align:center" | 45 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | TOGGLE_STATE | | style="text-align:center" | TOGGLE_STATE | ||
| None. | | None. | ||
|- class="t2td" | |- class="t2td" | ||
− | | m_flActivateFinished | + | | m_flActivateFinished |
− | | style="text-align:center" | 42 | + | | style="text-align:center" | 42 |
− | | style="text-align:center" | | + | | style="text-align:center" | 46 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| Like attack_finished, but for doors. | | Like attack_finished, but for doors. | ||
|- class="t2td" | |- class="t2td" | ||
| m_flMoveDistance | | m_flMoveDistance | ||
− | | style="text-align:center" | 43 | + | | style="text-align:center" | 43 |
− | | style="text-align:center" | | + | | style="text-align:center" | 47 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| How far a door should slide or rotate. | | How far a door should slide or rotate. | ||
|- class="t2td" | |- class="t2td" | ||
− | | m_flWait | + | | m_flWait |
− | | style="text-align:center" | 44 | + | | style="text-align:center" | 44 |
− | | style="text-align:center" | | + | | style="text-align:center" | 48 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| None. | | None. | ||
|- class="t2td" | |- class="t2td" | ||
| m_flLip | | m_flLip | ||
− | | style="text-align:center" | 45 | + | | style="text-align:center" | 45 |
− | | style="text-align:center" | | + | | style="text-align:center" | 49 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| None. | | None. | ||
|- class="t2td" | |- class="t2td" | ||
| m_flTWidth | | m_flTWidth | ||
− | | style="text-align:center" | 46 | + | | style="text-align:center" | 46 |
− | | style="text-align:center" | | + | | style="text-align:center" | 50 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| For plats. | | For plats. | ||
|- class="t2td" | |- class="t2td" | ||
| m_flTLength | | m_flTLength | ||
− | | style="text-align:center" | 47 | + | | style="text-align:center" | 47 |
− | | style="text-align:center" | | + | | style="text-align:center" | 51 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| For plats. | | For plats. | ||
Line 78: | Line 86: | ||
| m_vecPosition1 | | m_vecPosition1 | ||
| style="text-align:center" | 48 | | style="text-align:center" | 48 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 52 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | Vector | | style="text-align:center" | Vector | ||
| None. | | None. | ||
Line 85: | Line 93: | ||
| m_vecPosition2 | | m_vecPosition2 | ||
| style="text-align:center" | 51 | | style="text-align:center" | 51 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 55 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | Vector | | style="text-align:center" | Vector | ||
| None. | | None. | ||
Line 92: | Line 100: | ||
| m_vecAngle1 | | m_vecAngle1 | ||
| style="text-align:center" | 54 | | style="text-align:center" | 54 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 58 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | Vector | | style="text-align:center" | Vector | ||
| None. | | None. | ||
Line 99: | Line 107: | ||
| m_vecAngle2 | | m_vecAngle2 | ||
| style="text-align:center" | 57 | | style="text-align:center" | 57 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 61 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | Vector | | style="text-align:center" | Vector | ||
| None. | | None. | ||
Line 106: | Line 114: | ||
| m_cTriggersLeft | | m_cTriggersLeft | ||
| style="text-align:center" | 60 | | style="text-align:center" | 60 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 64 |
− | | style="text-align:center" | + | + | | 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 | ||
| style="text-align:center" | 61 | | style="text-align:center" | 61 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 65 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | float | | style="text-align:center" | float | ||
| None. | | None. | ||
Line 120: | Line 128: | ||
| m_hActivator | | m_hActivator | ||
| style="text-align:center" | 62 | | style="text-align:center" | 62 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 66 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | EHANDLE | | style="text-align:center" | EHANDLE | ||
| None. | | None. | ||
Line 127: | Line 135: | ||
| m_pfnCallWhenMoveDone | | m_pfnCallWhenMoveDone | ||
| style="text-align:center" | 64 | | style="text-align:center" | 64 | ||
− | | style="text-align:center" | | + | | style="text-align:center" | 68 |
− | | style="text-align:center" | + | + | | style="text-align:center" | +4 |
| style="text-align:center" | void (CBaseToggle::*)(void) | | style="text-align:center" | void (CBaseToggle::*)(void) | ||
| None. | | None. | ||
Line 135: | 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" | +5 | + | | style="text-align:center" | +5 |
| style="text-align:center" | Vector | | style="text-align:center" | Vector | ||
| None. | | None. | ||
Line 142: | 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" | +5 | + | | style="text-align:center" | +5 |
| style="text-align:center" | Vector | | style="text-align:center" | Vector | ||
| None. | | None. | ||
Line 149: | Line 157: | ||
| style="text-align:center" | 71 | | style="text-align:center" | 71 | ||
| style="text-align:center" | 76 | | style="text-align:center" | 76 | ||
− | | style="text-align:center" | +5 | + | | 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 156: | Line 164: | ||
| style="text-align:center" | 72 | | style="text-align:center" | 72 | ||
| style="text-align:center" | 77 | | style="text-align:center" | 77 | ||
− | | style="text-align:center" | +5 | + | | 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 == | ||
+ | |||
+ | * [http://svn.tcwonline.org/viewvc.cgi/hlsdk/dlls/cbase.h?view=markup&root=amxmodx cbase.h] ''(line 505)'' |
Latest revision as of 07: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 | +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
- cbase.h (line 505)