Difference between revisions of "CBaseButton (CS)"

From AlliedModders Wiki
Jump to: navigation, search
(Fixed links)
Line 1: Line 1:
[[Category:CS Offset List]]
+
[[Category:CS Class List]]
  
  
* [[CBaseEntity Offset List (Counter-Strike)|CBaseEntity]]
+
* [[CBaseEntity (CS)|CBaseEntity]]
** [[CBaseDelay Offset List (Counter-Strike)| CBaseDelay]]
+
** [[CBaseDelay (CS)| CBaseDelay]]
*** [[CBaseAnimating Offset List (Counter-Strike)|CBaseAnimating]]
+
*** [[CBaseAnimating (CS)|CBaseAnimating]]
**** [[CBaseToggle Offset List (Counter-Strike)|CBaseToggle]]
+
**** [[CBaseToggle (CS))|CBaseToggle]]
 
***** '''CBaseButton'''
 
***** '''CBaseButton'''
****** [[CRotButton Offset List (Counter-Strike)|CRotButton ''(func_rot_button)'']]
+
****** [[CRotButton (CS)|CRotButton ''(func_rot_button)'']]
  
  

Revision as of 16:30, 17 May 2009



W = Windows | L = Linux

Name W. Offset L. Offset L. Diff Type Description
m_fStayPushed ? ? +5 BOOL Button stays pushed in until touched again?
m_fRotating ? ? +5 float A rotating button? default is a sliding button.
m_strChangeTarget ? ? +5 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 ? ? +5 string_t Sound a door makes when it's locked.
m_ls.sLockedSentence ? ? +5 string_t Sentence group played when door is locked.
m_ls.sUnlockedSound ? ? +5 string_t Sound a door makes when it's unlocked.
m_ls.sUnlockedSentence ? ? +5 string_t Sentence group played when door is unlocked.
m_ls.iLockedSentence ? ? +5 int Which sentence in sentence group to play next.
m_ls.iUnlockedSentence ? ? +5 int Which sentence in sentence group to play next.
m_ls.flwaitSound ? ? +5 float Time delay between playing consecutive 'locked/unlocked' sounds.
m_ls.flwaitSentence ? ? +5 float Time delay between playing consecutive sentences.
m_ls.bEOFLocked ? ? +5 BOOL True if hit end of list of locked sentences.
m_ls.bEOFUnlocked ? ? +5 BOOL True if hit end of list of unlocked sentences.
m_bLockedSound ? ? +5 BYTE Ordinals from entity selection.
m_bLockedSentence ? ? +5 BYTE For plats.
m_bUnlockedSound ? ? +5 BYTE For plats.
m_bUnlockedSentence ? ? +5 BYTE None.
m_sounds ? ? +5 int None.