Difference between revisions of "CBaseButton (CS)"

From AlliedModders Wiki
Jump to: navigation, search
(Rearranged.)
(Entity Data)
 
Line 26: Line 26:
 
|- class="t2td"
 
|- class="t2td"
 
| m_fStayPushed
 
| m_fStayPushed
 +
| style="text-align:center" | 73
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
| style="text-align:center" | ?  
+
| style="text-align:center" | ?
| style="text-align:center" | +5
 
 
| style="text-align:center" | BOOL
 
| style="text-align:center" | BOOL
 
| Button stays pushed in until touched again?
 
| Button stays pushed in until touched again?
 
|- class="t2td"
 
|- class="t2td"
 
| m_fRotating
 
| m_fRotating
 +
| style="text-align:center" | 74
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
| style="text-align:center" | +5
 
 
| style="text-align:center" | float
 
| style="text-align:center" | float
 
| A rotating button?  default is a sliding button.
 
| A rotating button?  default is a sliding button.
 
|- class="t2td"
 
|- class="t2td"
 
| m_strChangeTarget
 
| m_strChangeTarget
 +
| style="text-align:center" | 75
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
| style="text-align:center" | +5
 
 
| style="text-align:center" | string_t
 
| style="text-align:center" | string_t
 
| If this field is not null, this is an index into the engine string array.
 
| If this field is not null, this is an index into the engine string array.
Line 49: Line 49:
 
|- class="t2td"
 
|- class="t2td"
 
| m_ls.sLockedSound
 
| m_ls.sLockedSound
 +
| style="text-align:center" | 76
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
| style="text-align:center" | +5
 
 
| style="text-align:center" | string_t
 
| style="text-align:center" | string_t
 
| Sound a door makes when it's locked.
 
| Sound a door makes when it's locked.
 
|- class="t2td"
 
|- class="t2td"
 
| m_ls.sLockedSentence
 
| m_ls.sLockedSentence
 +
| style="text-align:center" | 77
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
| style="text-align:center" | ?  
+
| style="text-align:center" | ?
| style="text-align:center" | +5
 
 
| style="text-align:center" | string_t
 
| style="text-align:center" | string_t
 
| Sentence group played when door is locked.
 
| Sentence group played when door is locked.
 
|- class="t2td"
 
|- class="t2td"
 
| m_ls.sUnlockedSound
 
| m_ls.sUnlockedSound
 +
| style="text-align:center" | 78
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
| style="text-align:center" | +5
 
 
| style="text-align:center" | string_t
 
| style="text-align:center" | string_t
 
| Sound a door makes when it's unlocked.
 
| Sound a door makes when it's unlocked.
 
|- class="t2td"
 
|- class="t2td"
 
| m_ls.sUnlockedSentence
 
| m_ls.sUnlockedSentence
 +
| style="text-align:center" | 79
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
| style="text-align:center" | ?  
+
| style="text-align:center" | ?
| style="text-align:center" | +5
 
 
| style="text-align:center" | string_t
 
| style="text-align:center" | string_t
 
| Sentence group played when door is unlocked.
 
| Sentence group played when door is unlocked.
 
|- class="t2td"
 
|- class="t2td"
 
| m_ls.iLockedSentence
 
| m_ls.iLockedSentence
 +
| style="text-align:center" | 80
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
| style="text-align:center" | ?  
+
| style="text-align:center" | ?
| style="text-align:center" | +5
 
 
| style="text-align:center" | int
 
| style="text-align:center" | int
 
| Which sentence in sentence group to play next.
 
| Which sentence in sentence group to play next.
 
|- class="t2td"
 
|- class="t2td"
 
| m_ls.iUnlockedSentence
 
| m_ls.iUnlockedSentence
 +
| style="text-align:center" | 81
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
| style="text-align:center" | +5
 
 
| style="text-align:center" | int
 
| style="text-align:center" | int
 
| Which sentence in sentence group to play next.
 
| Which sentence in sentence group to play next.
 
|- class="t2td"
 
|- class="t2td"
 
| m_ls.flwaitSound
 
| m_ls.flwaitSound
 +
| style="text-align:center" | 82
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
| style="text-align:center" | +5
 
 
| style="text-align:center" | float
 
| style="text-align:center" | float
 
| Time delay between playing consecutive 'locked/unlocked' sounds.
 
| Time delay between playing consecutive 'locked/unlocked' sounds.
 
|- class="t2td"
 
|- class="t2td"
 
| m_ls.flwaitSentence
 
| m_ls.flwaitSentence
 +
| style="text-align:center" | 83
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
| style="text-align:center" | +5
 
 
| style="text-align:center" | float
 
| style="text-align:center" | float
 
| Time delay between playing consecutive sentences.
 
| Time delay between playing consecutive sentences.
 
|- class="t2td"
 
|- class="t2td"
 
| m_ls.bEOFLocked
 
| m_ls.bEOFLocked
 +
| style="text-align:center" | 84
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
| style="text-align:center" | +5
 
 
| style="text-align:center" | BOOL
 
| style="text-align:center" | BOOL
 
| True if hit end of list of locked sentences.
 
| True if hit end of list of locked sentences.
 
|- class="t2td"
 
|- class="t2td"
 
| m_ls.bEOFUnlocked
 
| m_ls.bEOFUnlocked
 +
| style="text-align:center" | 85
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
| style="text-align:center" | +5
 
 
| style="text-align:center" | BOOL
 
| style="text-align:center" | BOOL
 
| True if hit end of list of unlocked sentences.
 
| True if hit end of list of unlocked sentences.
 +
|- class="t2td"
 +
| m_sounds
 +
| style="text-align:center" | 86
 +
| style="text-align:center" | ?
 +
| style="text-align:center" | ?
 +
| style="text-align:center" | int
 +
| None.
 
|- class="t2td"
 
|- class="t2td"
 
| m_bLockedSound
 
| m_bLockedSound
 +
| style="text-align:center" | 87
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
| style="text-align:center" | ?  
+
| style="text-align:center" | ?
| style="text-align:center" | +5
 
 
| style="text-align:center" | BYTE
 
| style="text-align:center" | BYTE
 
| Ordinals from entity selection.
 
| Ordinals from entity selection.
 
|- class="t2td"
 
|- class="t2td"
 
| m_bLockedSentence
 
| m_bLockedSentence
 +
| style="text-align:center" | 88
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
| style="text-align:center" | +5
 
 
| style="text-align:center" | BYTE
 
| style="text-align:center" | BYTE
 
| For plats.
 
| For plats.
 
|- class="t2td"
 
|- class="t2td"
 
| m_bUnlockedSound
 
| m_bUnlockedSound
 +
| style="text-align:center" | 89
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
 
| style="text-align:center" | ?  
| style="text-align:center" | +5
 
 
| style="text-align:center" | BYTE
 
| style="text-align:center" | BYTE
 
| For plats.
 
| For plats.
 
|- class="t2td"
 
|- class="t2td"
 
| m_bUnlockedSentence
 
| m_bUnlockedSentence
 +
| style="text-align:center" | 90
 
| style="text-align:center" | ?
 
| style="text-align:center" | ?
| style="text-align:center" | ?
+
| style="text-align:center" | ?  
| style="text-align:center" | +5
 
 
| style="text-align:center" | BYTE
 
| style="text-align:center" | BYTE
| None.
 
|- class="t2td"
 
| m_sounds
 
| style="text-align:center" | ?
 
| style="text-align:center" | ?
 
| style="text-align:center" | +5
 
| style="text-align:center" | int
 
 
| None.
 
| None.
 
|}
 
|}

Latest revision as of 16:29, 27 August 2009


Basic Information

  • Classname: CBaseButton.
  • Description: Generic button.


Class Hierarchy


Entity Data

W = Windows | L = Linux

Name W. Offset L. Offset L. Diff Type Description
m_fStayPushed 73 ? ? BOOL Button stays pushed in until touched again?
m_fRotating 74 ? ? float A rotating button? default is a sliding button.
m_strChangeTarget 75 ? ? string_t If this field is not null, this is an index into the engine string array.

When this button is touched, it's target entity's TARGET field will be set to the button's ChangeTarget. This allows you to make a func_train switch paths, etc.

m_ls.sLockedSound 76 ? ? string_t Sound a door makes when it's locked.
m_ls.sLockedSentence 77 ? ? string_t Sentence group played when door is locked.
m_ls.sUnlockedSound 78 ? ? string_t Sound a door makes when it's unlocked.
m_ls.sUnlockedSentence 79 ? ? string_t Sentence group played when door is unlocked.
m_ls.iLockedSentence 80 ? ? int Which sentence in sentence group to play next.
m_ls.iUnlockedSentence 81 ? ? int Which sentence in sentence group to play next.
m_ls.flwaitSound 82 ? ? float Time delay between playing consecutive 'locked/unlocked' sounds.
m_ls.flwaitSentence 83 ? ? float Time delay between playing consecutive sentences.
m_ls.bEOFLocked 84 ? ? BOOL True if hit end of list of locked sentences.
m_ls.bEOFUnlocked 85 ? ? BOOL True if hit end of list of unlocked sentences.
m_sounds 86 ? ? int None.
m_bLockedSound 87 ? ? BYTE Ordinals from entity selection.
m_bLockedSentence 88 ? ? BYTE For plats.
m_bUnlockedSound 89 ? ? BYTE For plats.
m_bUnlockedSentence 90 ? ? BYTE None.