void CPropThumper::InputEnable( inputdata_t &inputdata ) { m_bEnabled = true; EmitSound( "coast.thumper_startup" ); if ( m_hRepellantEnt ) { variant_t emptyVariant; m_hRepellantEnt->AcceptInput( "Enable", this, this, emptyVariant, 0 ); } }
void CPropThumper::InputDisable( inputdata_t &inputdata ) { m_bEnabled = false; EmitSound( "coast.thumper_shutdown" ); if ( m_hRepellantEnt ) { variant_t emptyVariant; m_hRepellantEnt->AcceptInput( "Disable", this, this, emptyVariant, 0 ); } }