Ejemplo n.º 1
0
//-----------------------------------------------------------------------------
// Purpose: Starts the client-side version thinking
//-----------------------------------------------------------------------------
void C_WeaponStunStick::OnDataChanged( DataUpdateType_t updateType )
{
	BaseClass::OnDataChanged( updateType );
	if ( updateType == DATA_UPDATE_CREATED )
	{
		SetNextClientThink( CLIENT_THINK_ALWAYS );
		SetupAttachmentPoints();
	}
}
//-----------------------------------------------------------------------------
// Purpose: 
// Output : Returns true on success, false on failure.
//-----------------------------------------------------------------------------
bool CWeaponStunStick::Deploy( void )
{
	SetStunState( true );
#ifdef CLIENT_DLL
	//Tony; we need to just do this
	SetupAttachmentPoints();
#endif

	return BaseClass::Deploy();
}
void C_WeaponStunStick::ThirdPersonSwitch( bool bThirdPerson )
{
	SetupAttachmentPoints();
}