CBaseButton (CS)

From AlliedModders Wiki
Revision as of 17:48, 17 May 2009 by Arkshine (talk | contribs) (Rearranged.)
Jump to: navigation, search


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 ? ? +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.